source: pro-violet-viettel/www/deploy/20150304/application/modules/ajax/controllers/preview.php @ 789

Last change on this file since 789 was 789, checked in by quyenla, 10 years ago

preview

File size: 766 bytes
Line 
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
3
4class Preview extends MX_Controller
5{
6
7        public function __construct() {
8                parent::__construct();
9                $user = $this->session->userdata ( 'userInfo' );
10                $this->vservices->setApiUrl($this->config->item('api_url'));
11                $this->vservices->setConnection($this->curl);
12                $this->vservices->setUserId($user['us_id']);
13        }
14       
15        public function getPreview () {
16            $fileId =  $this->input->post('fileId',TRUE);
17            $data = $this->vservices->getPreview($fileId);
18            $data=  json_encode($data);
19            $this->load->view('preview/index', $data);
20        }
21
22}
23
24/* End of file privatecontent.php */
25/* Location: ./application/modules/ajax/controllers/privatecontent.php */
Note: See TracBrowser for help on using the repository browser.