Err: Method 'action_index' of 'product_controller' is not exists!
- /www/wwwroot/sqzhongming.com/protected/include/core.php on line 92
87.
88.
$controller_name = $__controller.'_controller';
89.
$action_name = 'action_'.$__action;
90.
if(!class_exists($controller_name, true)) {header('location:/404.html');exit();}
91.
$controller_obj = new $controller_name();
92.
93.
if(!method_exists($controller_obj, $action_name)) err("Err: Method '$action_name' of '$controller_name' is not exists!");
94.
$controller_obj->$action_name();
95.
96.
function url($c = 'main', $a = 'index', $param = array())
97.
{
- /www/wwwroot/sqzhongming.com/index.php on line 5
1.
<?php
2.
define('APP_DIR', realpath('./'));
3.
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
4.
define('INCL_DIR', APP_DIR.DS.'protected'.DS.'include');
5.
require(INCL_DIR.DS.'core.php');