CORE_DIR/init.php [ 173 ]
168 $load_file = $controller_dir.'/'.$controller_name.'.php';
169 if(is_readable($load_file)){
170 require_once $load_file;
171 $class_name = $controller_name.'_controller';
172 }else{
173 throw new except('controller '.$controller_name.' not found',404);
174 }
175 $action = request::getActionName();
176 $action = $action.'Action';
177 $controller = new $class_name();
178 $controller->$action();
-
CORE_DIR/init.php [ 159 ] » dispatcher::_dispatch()
154 } 155 156 class dispatcher{ 157 private static $_dispatch_num = 0; 158 public static function run(){ 159 self::_dispatch(); 160 } 161 162 private static function _dispatch(){ 163 self::$_dispatch_num++; 164 $loadController = false;
-
CORE_DIR/init.php [ 76 ] » dispatcher::run()
71 72 public static function run(){ 73 request::init(); 74 router::parse_url(); 75 self::do_plugin('pre_dispatch'); 76 dispatcher::run(); 77 if(view::has_template() === false){ 78 $template = request::getControllerName().'_'.request::getActionName().'.tpl'; 79 if(request::get_module_name()) 80 { 81 $template = request::get_module_name().'/'.$template;
-
APP_DIR/public/index.php [ 10 ] » framework::run()
5 $pos = strpos($_SERVER['HTTP_HOST'], '.'); 6 $domain = substr($_SERVER['HTTP_HOST'], $pos); 7 @ini_set("session.cookie_domain",$domain); 8 require '../../library/init.php'; 9 //framework::set_plugin('tg_plugin'); 10 framework::run(); 11 ?>