本文整理汇总了PHP中LeftAndMain::set_application_link方法的典型用法代码示例。如果您正苦于以下问题:PHP LeftAndMain::set_application_link方法的具体用法?PHP LeftAndMain::set_application_link怎么用?PHP LeftAndMain::set_application_link使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeftAndMain
的用法示例。
在下文中一共展示了LeftAndMain::set_application_link方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$databaseConfig = array(
"type" => 'MySQLDatabase',
"server" => 'localhost',
"username" => 'root',
"password" => 'root',
"database" => 'FuelDemo2016',
"path" => '',
);
*/
// ******* LIVE Database Settings ******
global $databaseConfig;
$databaseConfig = array("type" => 'MySQLDatabase', "server" => 'localhost', "username" => 'fuel2', "password" => 'coyote5.!6', "database" => 'fuel2', "path" => '');
// Initial acmin account set-up - can be removed
Security::setDefaultAdmin('neil@fuel.ie', 'apples');
// Sets the CMS logo link to go to the site base URL
LeftAndMain::set_application_link(Director::baseURL());
// Set the site locale
i18n::set_locale('en_GB');
date_default_timezone_set('Europe/London');
//Enable Site Search **
//FulltextSearchable::enable();
Object::add_extension('SiteConfig', 'CustomSiteConfig');
//Force redirect to www.
Director::forceWWW();
//Show errors while in development only (to be removed)
error_reporting(E_ALL);
// Customise TinyMCE options
HtmlEditorConfig::get('cms')->setOption('theme_advanced_blockformats', 'p,h1,h2,h3,h4');
HtmlEditorConfig::get('cms')->setOption('theme_advanced_disable', 'styleselect');
// TinyMCE cleanup on paste
HtmlEditorConfig::get('cms')->setOption('convert_fonts_to_spans', 'false');