您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

前辈ZF框架的一些有关问题

2024/3/15 22:01:05发布23次查看
请教各位前辈zf框架的一些问题。。。。。。。。
$application = bll_application::newinstance($this);
$application->run();
--------------------------
function __call($methodname, $args)
  {
  return $this->_forward('notfound','error','mobile');
  }
各位前辈能否解释下以上的几行代码,谢了。
------解决方案--------------------
$application = bll_application::newinstance($this); //取得 bll_application 类的实例
$application->run(); //执行其中的 run 方法;
function __call($methodname, $args)
{
return $this->_forward('notfound','error','mobile');
}
当调用了类中未定义的方法时,就进入这里
------解决方案--------------------
实实例化一个类
引用并运行
定义一个函数,
返回一个值。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product