snytkine / LampCMS

Open source Question and Answer program similar to StackOverflow and Quora in PHP + MongoDB. Follow @snytkine on Twitter
http://support.lampcms.com
324 stars 104 forks source link

Add namespaces to Templates #66

Open snytkine opened 13 years ago

snytkine commented 13 years ago

Rewrite template class. Individual templates should have own namespaces. That way we can better organize templates - they can be in folders and sub-folders. For example: \tpl\Question\View.php or \tpl\Answer\Form.php

Also include the VTEMPLATES_DIR in html comments when adding debug comments to templates in debug mode.

Possibly move templates root directory out of the 'www' folder, there is no reason for templates to be in the web directory.