sarmenhb Posted April 28, 2009 Share Posted April 28, 2009 is it possible to include all tpl files into one. so if i design the theme in photoshop then create the css and htmland place all the hooks where i want them to appear and just work from one tpl file.would that be possible if yes how would i approach it?thanks. Link to comment Share on other sites More sharing options...
Ánh Nga Posted April 29, 2009 Share Posted April 29, 2009 is it possible to include all tpl files into one. so if i design the theme in photoshop then create the css and htmland place all the hooks where i want them to appear and just work from one tpl file.would that be possible if yes how would i approach it?thanks. No! It imposible to do that, because it use for smarty template engine work correctly..... Link to comment Share on other sites More sharing options...
sarmenhb Posted April 29, 2009 Author Share Posted April 29, 2009 No! It imposible to do that, because it use for smarty template engine work correctly..... i think it is possible because if you notice in a few php files that initiate the tpl files, so for example (this line)return $this->display(__FILE__, 'newsletter.tpl');instead of that havereturn $this->display(TEMPLATE_DIR,'newsletter.tpl');then in the template folder inside index.tpl use the smarty method of including files where necessary.i think im going to try it Link to comment Share on other sites More sharing options...
Ánh Nga Posted May 1, 2009 Share Posted May 1, 2009 No! It imposible to do that, because it use for smarty template engine work correctly..... i think it is possible because if you notice in a few php files that initiate the tpl files, so for example (this line)return $this->display(__FILE__, 'newsletter.tpl');instead of that havereturn $this->display(TEMPLATE_DIR,'newsletter.tpl');then in the template folder inside index.tpl use the smarty method of including files where necessary.i think im going to try it Oh! wish you susscess with your idea.... 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