选择语言 :

 Core_Controller::execute

执行新控制

若采用非内部调用,则会等同于浏览器的URI执行,请注意防止陷入死循环

string Core_Controller::execute( string $uri [, boolean $print = bool true , boolean $use_route = bool true , boolean $is_internal = bool true ] )

参数列表

参数 类型 描述 默认值
$uri string 新的uri
$print boolean 是否直接输出 bool true
$use_route boolean 是否在路由中寻找,默认:是 bool true
$is_internal boolean 是否内部调用,默认:是 bool true
返回值
  • string 返回新控制器执行的html
File: ./core/classes/controller.class.php
public static function execute($uri, $print = true, $use_route = true, $is_internal = true)
{
    return HttpIO::execute($uri, $print, $use_route, $is_internal);
}