本文整理汇总了PHP中ViewFactory::factory方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewFactory::factory方法的具体用法?PHP ViewFactory::factory怎么用?PHP ViewFactory::factory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ViewFactory
的用法示例。
在下文中一共展示了ViewFactory::factory方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
$this->addonName = $this->getAddonName();
$this->addonPath = APP_ADDON_PATH . $this->addonName . '/';
$this->configFile = $this->addonPath . 'config.php';
$this->view = ViewFactory::factory();
}
示例2: __construct
/**
* 构造函数
*/
public function __construct()
{
Hook::listen('CONTROLLER_START', $this->options);
//视图对象
$this->view = ViewFactory::factory();
//子类如果存在auto方法,自动运行
if (method_exists($this, "__init")) {
$this->__init();
}
}
示例3: __construct
public function __construct()
{
/**
* 视图对象
*/
$this->view = ViewFactory::factory();
$this->setAddonConfig();
if (method_exists($this, '__init')) {
$this->__init();
}
}
示例4: __construct
/**
* 构造函数
*/
public function __construct()
{
Hook::listen('CONTROLLER_START', $this->options);
/**
* 视图对象
*/
$this->view = ViewFactory::factory();
/**
* 自动运行的魔术方法
*/
if (method_exists($this, "__init")) {
$this->__init();
}
}
示例5: __construct
/**
* 构造函数
*/
public function __construct()
{
Hook::listen('CONTROLLER_START', $this->options);
$this->addonName = $this->getAddonName();
$this->addonPath = APP_ADDON_PATH . $this->addonName . '/';
$this->configFile = $this->addonPath . 'config.php';
/**
* 视图对象
*/
$this->view = ViewFactory::factory();
/**
* 自动运行的魔术方法
*/
if (method_exists($this, "__init")) {
$this->__init();
}
}
示例6: getViewObj
private function getViewObj()
{
if (is_null($this->view)) {
$this->view = ViewFactory::factory();
}
}
示例7: getViewObj
/**
* 获得视图对象
* @access private
* @return void
*/
private function getViewObj()
{
if (is_null($this->view)) {
//获得视图驱动含hd模板引擎与smarty引擎
require_cache(HDPHP_DRIVER_PATH . 'View/ViewFactory.class.php');
$this->view = ViewFactory::factory();
}
}
示例8: getViewObj
/**
* 获得视图对象
* @access private
* @return void
*/
private function getViewObj()
{
if (is_null($this->view)) {
//获得视图驱动含hd模板引擎与smarty引擎
$this->view = ViewFactory::factory();
}
}