Names Posted April 15, 2014 Share Posted April 15, 2014 I need a custom page able to run a .php parse returned from remote database. I have gone through a few tuts today but none seem to work, I just want pointed in the right direction for something that will assuredly work with 1.6 Thank you. Link to comment Share on other sites More sharing options...
NemoPS Posted April 16, 2014 Share Posted April 16, 2014 This method should still work on 1.6 http://nemops.com/creating-new-pages-in-prestashop/#.U04_evna6r0 Link to comment Share on other sites More sharing options...
Names Posted April 16, 2014 Author Share Posted April 16, 2014 I have followed this to a point. Please understand I am not a programer and that is why I left zencart If I follow the tutorial and create the .TPL file then my content is where it belongs, but because its a tpl file it is not parsed proper as php? if I just call the php file my content is at the top of the page and not "in " the page... but it is running proper how can I nest the php running in the page? Sorry, I know I am close, any help? Link to comment Share on other sites More sharing options...
Names Posted April 16, 2014 Author Share Posted April 16, 2014 Ok , So i modded the smarty config to allow for the {php} tag and all is well for now but I know this is not the correct way to go about it but I only need a tiny snippet of code to work on one page.... Any pointers on correctly nesting the php in the page and I will gladly give it a shot...... Will the change in the smarty config bite me later?? Link to comment Share on other sites More sharing options...
NemoPS Posted April 18, 2014 Share Posted April 18, 2014 Can't you just run the code from the controller, and assign the result as smarty variable so you can use it in the template? Link to comment Share on other sites More sharing options...
Recommended Posts