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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:44:56
Original
971 people have browsed it

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

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

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template