Hello all, i need to post this to my index.php , i got no ideal where i should put it, can anyone one help? the code is blow
<?php require_once 'inc/app.init.php'; /** * Set Page Template */ $template = "frontend/index.tpl"; /** * Set Smarty Caching */ $smarty->setCaching(Smarty::CACHING_LIFETIME_SAVED); $smarty->setCacheLifetime(60); // 1 Minute of Caching /** * Initiate Database Connection */ $db = Database:btain(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE); $db->connect(); /** * Assign Dynamic Data into Smarty Variable */ generateBanner($smarty); generate_main_menu($smarty); generate_footer_menu($smarty); /** * Check if Page is cached or not. If the Page is not cached, then generate fresh data. */ if(!$smarty->isCached($template)) { /** * Assign Recently Updated Domains */ recent_domains($smarty, '15'); /** * Assign Page Title */ $smarty->assign('page_title', BASE_TITLE_WEB . TITLE_SEPERATOR . BASE_TITLE_TAG); } /** * Close MySQL Connection to free up memory */ $db->close(); /** * Assign Meta for Homepage */ $meta = array ( '' ); $smarty->assign('additional_meta', $meta); /** * Finally Display the results to User */ $smarty->display($template); ?>[php]$meta = array (
‘’,
‘’
);[/php]
thank you, i try there, but it won’t work
the whole system blow up
it come out like this
Parse error: syntax error, unexpected T_STRING, expecting ‘)’ in /home/freesite/public_html/index.php on line 55