예제 #1
0
파일: connect.php 프로젝트: piranon/gae
 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();
 }
예제 #2
0
function root_system_path()
{
    return root_framework_path() . "system/";
}
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->add_package_path(root_framework_path() . "application/");
     $this->start();
 }