本文整理汇总了PHP中GO::view方法的典型用法代码示例。如果您正苦于以下问题:PHP GO::view方法的具体用法?PHP GO::view怎么用?PHP GO::view使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GO
的用法示例。
在下文中一共展示了GO::view方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionInit
protected function actionInit($params)
{
if (!empty($params['SET_LANGUAGE'])) {
\GO::config()->language = $params['SET_LANGUAGE'];
}
$this->loadInit();
// $this->render('index');
// $view = \GO::view();
$this->view->layout = 'html';
if (!$this->view->findViewFile('Login')) {
//for backwards theme compat
require \GO::view()->getTheme()->getPath() . 'Layout.php';
} else {
if (\GO::user()) {
$this->render('Init');
} else {
$this->render('LoginHtml');
}
}
}
示例2: getUrl
/**
* Get the full path to the main theme folder with trailing slash.
*
* @return string
*/
public function getUrl()
{
return \GO::view()->getUrl() . 'themes/' . $this->getName() . '/';
}
示例3:
<?php
require \GO::view()->getTheme()->getPath() . 'Layout.php';
示例4:
<div id="checker-icon"></div>
<script type="text/javascript">Ext.get("load-status").update("<?php
echo \GO::t('loadingLogin');
?>
");</script>
<script type="text/javascript">
Ext.onReady(GO.mainLayout.login, GO.mainLayout);
</script>
<?php
}
if (\GO::user() && !\GO::user()->mute_sound) {
?>
<object width="0" height="0" id="alarmSound">
<param name="movie" value="<?php
echo \GO::view()->getTheme()->getUrl();
?>
reminder.swf" />
<param name="loop" value="false" />
<param name="autostart" value="false" />
<embed src="<?php
echo \GO::view()->getTheme()->getUrl();
?>
reminder.swf" autostart=false loop="false" width="0" height="0" name="alarmSound"></embed>
</object>
<?php
}
require \GO::view()->getTheme()->getPath() . 'footer.php';
示例5:
<?php
$favicon = !empty(\GO::config()->favicon) ? \GO::config()->favicon : \GO::view()->getTheme()->getUrl() . "images/groupoffice.ico?";
?>
<link href="<?php
echo $favicon;
?>
" rel="shortcut icon" type="image/x-icon">
<title><?php
echo \GO::config()->title;
?>
</title>
<?php
\GO::view()->addStylesheet(\GO::view()->getPath() . 'ext/resources/css/ext-all.css', \GO::view()->getUrl() . 'ext/resources/css/');
\GO::view()->addStylesheet(\GO::view()->getPath() . 'themes/Group-Office/xtheme-groupoffice.css', \GO::view()->getUrl() . 'themes/Group-Office/');
\GO::view()->addStylesheet(\GO::view()->getPath() . 'themes/Group-Office/style.css', \GO::view()->getUrl() . 'themes/Group-Office/');
\GO::view()->loadModuleStylesheets();
?>
<link href="<?php
echo \GO::view()->getCachedStylesheet();
?>
" type="text/css" rel="stylesheet" />
<?php
if (!empty(\GO::config()->custom_css_url)) {
echo '<link href="' . \GO::config()->custom_css_url . '" type="text/css" rel="stylesheet" />';
}
//$this is \GO\Core\Controller\Auth
GO::router()->getController()->fireEvent('head');
?>
</head>
<body>
示例6:
<script type="text/javascript">
Ext.BLANK_IMAGE_URL = '<?php
echo \GO::config()->host;
?>
views/Extjs3/ext/resources/images/default/s.gif';
Ext.state.Manager.setProvider(new GO.state.HttpProvider());
<?php
if (isset(\GO::session()->values['security_token'])) {
echo 'Ext.Ajax.extraParams={security_token:"' . \GO::session()->values['security_token'] . '"};';
}
GO::router()->getController()->fireEvent('inlinescripts');
?>
</script>
<?php
if (file_exists(\GO::view()->getTheme()->getPath() . 'MainLayout.js')) {
echo '<script src="' . \GO::view()->getTheme()->getUrl() . 'MainLayout.js" type="text/javascript"></script>';
echo "\n";
}
?>
<script type="text/javascript">
<?php
//these parameter are passed by dialog.php. These are used to directly link to
//a dialog.
if (isset($_REQUEST['f'])) {
if (substr($_REQUEST['f'], 0, 9) == '{GOCRYPT}') {
$fp = \GO\Base\Util\Crypt::decrypt($_REQUEST['f']);
} else {
$fp = json_decode(base64_decode($_REQUEST['f']), true);
}
\GO::debug("External function parameters:");
\GO::debug($fp);