示例#1
0
 function __construct()
 {
     parent::__construct();
     $this->CI->load->model('topic_model');
     $this->CI->load->model('score_model');
     $this->CI->load->model('student_mark_model');
     $this->CI->load->library('commonobj');
 }
示例#2
0
 function __construct()
 {
     parent::__construct();
     $this->CI->load->library('PhpOffice/PHPExcel');
     if (PHP_SAPI == 'cli') {
         die('This example should only be run from a Web Browser');
     }
 }
示例#3
0
 function __construct()
 {
     parent::__construct();
     $this->CI->load->model('storage_model');
     $this->CI->load->model('storage_question_model');
     $this->CI->load->model('storage_answer_model');
     $this->CI->load->library(['components/word', 'utils', 'form_validation']);
 }
示例#4
0
 function __construct()
 {
     parent::__construct();
     Autoloader::register();
     Settings::loadConfig();
     Settings::setTempDir(getcwd() . TMPDIR_WORD);
     // Set writers
     $writers = array('Word2007' => 'docx', 'ODText' => 'odt', 'RTF' => 'rtf', 'HTML' => 'html', 'PDF' => 'pdf');
     // Set PDF renderer
     if (Settings::getPdfRendererPath() === null) {
         $writers['PDF'] = null;
     }
     // Return to the caller script when runs by CLI
     if (PHP_SAPI == 'cli') {
         return;
     }
 }
示例#5
0
 function __construct()
 {
     parent::__construct();
     $this->CI->load->library(['form_validation']);
 }
示例#6
0
 function __construct()
 {
     parent::__construct();
     $this->CI->load->library(['form_validation']);
     $this->CI->load->model('student_info_model');
 }