예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $child_model = $this->child_entity_type . '_model';
     $this->load->model($child_model);
     $this->children = $this->{$child_model};
     $this->children->parent = $this;
     $this->load->library('BN_College', NULL, 'bookstore');
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('post_model', 'posts');
     $this->load->model('user_model', 'users');
 }