Home  >  Article  >  Backend Development  >  前辈ZF框架的一些有关问题。

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

WBOY
WBOYOriginal
2016-06-13 13:17:17958browse

请教各位前辈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');
}
当调用了类中未定义的方法时,就进入这里
------解决方案--------------------
实实例化一个类
引用并运行

定义一个函数,
返回一个值。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn