本文整理汇总了PHP中ApplicationController::init方法的典型用法代码示例。如果您正苦于以下问题:PHP ApplicationController::init方法的具体用法?PHP ApplicationController::init怎么用?PHP ApplicationController::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApplicationController
的用法示例。
在下文中一共展示了ApplicationController::init方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
parent::init();
$this->getView()->breadcrumb[] = array('Home', array('module' => 'admin', 'controller' => 'index', 'action' => 'index'));
$this->getView()->setLayout('default');
$this->getView()->setScriptPath(APPLICATION_PATH . DS . 'modules' . DS . 'Admin' . DS . 'views');
//$this->getView()->assign('breadcrumb', $this->breadcrumb);
}
示例2: time
if (is_file($crontabFile)) {
include $crontabFile;
}
if (WEB_CRONTAB && is_writable($crontabFile) && ((!isset($crontab) || $crontab['date_last_success'] != getDateFromTimestamp(time())) && (!is_file($crontabFile) || isset($crontab) && $crontab['time_last_try'] < time() - TIME_TO_WAIT_FOR_PARALLEL_ARCHIVE))) {
$crontab['time_last_try'] = time();
$crontab['date_last_success'] = '2000-12-31';
saveConfigFile($crontabFile, $crontab, "crontab");
printDebug('==========================<br>
CRONTAB BEGIN/ <br>
==========================<br>
');
require_once INCLUDE_PATH . '/core/include/PmvConfig.class.php';
require_once INCLUDE_PATH . '/core/include/ApplicationController.php';
$r =& Request::getInstance();
$r->setModuleName('send_mail');
$r->setCrontabAllowed();
ApplicationController::init();
printDebug('==========================<br>
CRONTAB END/ <br>
==========================<br>
');
$crontab['date_last_success'] = getDateFromTimestamp(time());
saveConfigFile($crontabFile, $crontab, "crontab");
}
$db->close();
redirectToUrlIfNecessary();
loadImage($logo, $idSite);
// flush content for display
if (DEBUG) {
ob_end_flush();
}
示例3: init
/**
* Implement frontend application options for better seo
**/
public function init()
{
parent::init();
}
示例4: init
public function init()
{
parent::init();
$this->getView()->setLayoutPath($this->getConfig()->application->directory . "/modules" . "/Admin" . "/views" . "/layouts");
}