Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->model->load('Category');
     $this->category = new Category_Model();
     self::$process = '/category/show';
     self::$object = $this->category;
     $this->validate = new Validate_Library($this->category->getRules());
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->model->load('User');
     $this->user = new User_Model();
     self::$process = '/user/show';
     self::$object = $this->user;
     $this->validate = new Validate_Library($this->user->getRules());
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->model->load('Product');
     $this->product = new Product_Model();
     self::$process = '/product/show';
     self::$object = $this->product;
     $this->validate = new Validate_Library($this->product->getRules());
 }
Example #4
0
 public function __construct($is_controller = true)
 {
     parent::__construct($is_controller);
 }