public function test1() { $framework_path = root_framework_path() . "application/"; //echo "framework_path : ".$framework_path; //$this->load->add_package_path($framework_path); $this->load->model("some_model"); $this->some_model->call(); $this->load->model("root_shop_model"); $this->root_shop_model->call(); //$_GET["txt_username"]= "******"; $this->load->library('form_validation'); $this->form_validation->allRequest(); $this->form_validation->set_rules('txt_username', 'trim|required|numeric'); $this->form_validation->set_rules('txt_password', 'required'); $this->formCheck(); resOk(); }
function root_system_path() { return root_framework_path() . "system/"; }
public function __construct() { parent::__construct(); $this->load->add_package_path(root_framework_path() . "application/"); $this->start(); }