예제 #1
0
 function __construct()
 {
     parent::__construct();
     $this->avatar_path_temp = FCPATH . 'uploads/avatar/tmp';
     $this->avatar_path = FCPATH . 'uploads/avatar/';
     $this->uid = $this->session->userdata('uid');
     if ($this->uid) {
         $this->path = $this->avatar_path . $this->get_dir($this->uid);
         $this->avatar_path_url = base_url('uploads/avatar/' . $this->get_dir($this->uid));
         if (!file_exists($this->path)) {
             mkdir($this->path, 0777, true);
         }
     }
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('myclass');
 }
예제 #3
0
 function __construct()
 {
     parent::__construct();
 }