DooPHP IRC channel


what is the relationship between files in view viewc

This is for general DooPHP discussion. Ask your questions here.

what is the relationship between files in view viewc

Postby leezi » Thu May 03, 2012 2:43 pm

http://localhost/demos/blog

"$this->render('error', $this->data);"
the code above use error.html in view folder to render the page,but i found there exists another error.php file in viewc file,if I delete the error.php and request the url ,the deleted file will appear again,and if I modify the error.php,and this will reflact in the page.who can tell me why ?

what i found is that the system will use error.html to produce error.php,and will use error.php later if the file exists,if not ,produce it.
leezi
 
Posts: 2
Joined: Fri Apr 27, 2012 7:35 am

Re: what is the relationship between files in view viewc

Postby RichardM » Thu May 03, 2012 3:21 pm

Its a cacheing mechanism to avoid having to recompile view templates on every page load.
Note: code samples my not be 100% accurate.
RichardM
 
Posts: 1329
Joined: Sun Aug 30, 2009 6:03 pm
Location: Cumbria, UK


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron