本文整理匯總了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();
}
}