本文整理汇总了PHP中JSite::getPathway方法的典型用法代码示例。如果您正苦于以下问题:PHP JSite::getPathway方法的具体用法?PHP JSite::getPathway怎么用?PHP JSite::getPathway使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSite
的用法示例。
在下文中一共展示了JSite::getPathway方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param array $app
* @param array $config
* @throws AppException
*/
public function __construct($app, $config = array())
{
parent::__construct($app, $config);
$this->_jbrequest = $this->app->jbrequest;
$task = $this->_jbrequest->getWord('task');
$ctrl = $this->_jbrequest->getCtrl();
if (!method_exists($this, $task)) {
throw new AppException('Action method not found! ' . $ctrl . ' :: ' . $task . '()');
}
// internal vars
$this->application = $this->app->zoo->getApplication();
$this->_params = $this->application->getParams('frontpage');
$this->joomla = $this->app->system->application;
$isSite = $this->app->jbenv->isSite();
if (!$isSite) {
$this->app->document->addStylesheet("root:administrator/templates/system/css/system.css");
$this->app->jbassets->uikit(true, true);
$this->_setToolbarTitle();
} else {
$this->params = $this->joomla->getParams();
$this->pathway = $this->joomla->getPathway();
$this->app->jbassets->setAppCSS();
$this->app->jbassets->setAppJS();
}
$this->_config = JBModelConfig::model();
}