mythinking / doophp

Automatically exported from code.google.com/p/doophp
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

DOOview->render force compilation #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $this->render('filename',$data,true,true);
2. Uses dynamic insertion of files
3. Files are transferred as a variable, not compiled, as well as their changes 
need to fix, forced compilation

What is the expected output? What do you see instead?
Error file not found, or see an old compiled version

What version of the product are you using? On what operating system?
Latest

Original issue reported on code.google.com by bestxp2...@gmail.com on 25 Jun 2010 at 8:10

GoogleCodeExporter commented 9 years ago
If you use render('filename',$data, true,true), the view file 'filename.php' 
must be updated/changed/touched then only the files included dynamically in 
filename.php will be updated. If the main view file is not updated, the file 
included won't be updated too.

Use the config setting TEMPLATE_COMPILE_ALWAYS = true instead if you need all 
to be compiled. 

Original comment by darkredz on 25 Jun 2010 at 8:29

GoogleCodeExporter commented 9 years ago
tnx 

Original comment by bestxp2...@gmail.com on 25 Jun 2010 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by darkredz on 25 Jun 2010 at 9:14

GoogleCodeExporter commented 9 years ago

$ Config ['TEMPLATE_COMPILE_ALWAYS'] = TRUE;

and

$ Config ['APP_MODE'] = 'dev';

still do not want to force all files to compile.

Original comment by bestxp00@gmail.com on 29 Jun 2010 at 10:45