Jump to content

is it possible to group all tpl files into one?


Recommended Posts

is it possible to include all tpl files into one.
so if i design the theme in photoshop then create the css and html
and 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

is it possible to include all tpl files into one.
so if i design the theme in photoshop then create the css and html
and 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


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 have

return $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 :P
Link to comment
Share on other sites


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 have

return $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 :P

Oh! wish you susscess with your idea....
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...