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