本文整理汇总了PHP中Gdn_Controller::clearCssFiles方法的典型用法代码示例。如果您正苦于以下问题:PHP Gdn_Controller::clearCssFiles方法的具体用法?PHP Gdn_Controller::clearCssFiles怎么用?PHP Gdn_Controller::clearCssFiles使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gdn_Controller
的用法示例。
在下文中一共展示了Gdn_Controller::clearCssFiles方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: homeController_homepage_create
/**
* Homepage of VanillaForums.org.
*
* @param Gdn_Controller $sender
*/
public function homeController_homepage_create($sender)
{
try {
$AddonModel = new AddonModel();
$Addon = $AddonModel->getSlug('vanilla-core', true);
$sender->setData('CountDownloads', val('CountDownloads', $Addon));
$sender->setData('Version', val('Version', $Addon));
$sender->setData('DateUploaded', val('DateInserted', $Addon));
} catch (Exception $ex) {
}
$sender->title('The most powerful custom community solution in the world');
$sender->setData('Description', "Vanilla is forum software that powers discussions on hundreds of thousands of sites. Built for flexibility and integration, Vanilla is the best, most powerful community solution in the world.");
$sender->Head->addTag('meta', array('name' => 'description', 'content' => $sender->data('Description')));
$sender->clearJsFiles();
$sender->addJsFile('jquery.js', 'vforg');
$sender->addJsFile('easySlider1.7.js', 'vforg');
saveToConfig('Garden.Embed.Allow', false, false);
// Prevent JS errors
$sender->clearCssFiles();
$sender->addCssFile('vforg-home.css', 'vforg');
$sender->MasterView = 'empty';
$sender->render('index', 'home', 'vforg');
}