tabutnas Posted August 12, 2015 Share Posted August 12, 2015 (edited) Hello, well i want to use functions of wordpress like " get_header.php" on default theme of prestashop, i do it following steps for do that; Edit: Index.php and add require '../wp-blog-header.php'; Edit: classes/Controllers/FrontController.php and add on line 582~ $this->context->smarty->assign(array( 'HOOK_HEADER' => Hook::exec('displayHeader'), 'header_wp' =>get_header(), Edit: /themes/default-bootstrap/header.tpl and add {$header_wp} This works... but is super slow and a lot of times don't charge the content or say Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 125966 bytes) in /usr/home/xxx.es/web/prototype/prestashop/classes/controller/Controller.php on line 520 This is just boring... what i do it wrong? prestashop should do able php code in template file... i think charge this libs on smarty array is worng way because the server will do things like this... Thanks in advance, Edited August 12, 2015 by tabutnas (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now