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); } } }
function __construct() { parent::__construct(); $this->load->library('myclass'); }
function __construct() { parent::__construct(); }