CodeIgniter Forums
Template Parser & Disabling PHP execution - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Template Parser & Disabling PHP execution (/showthread.php?tid=31236)



Template Parser & Disabling PHP execution - El Forum - 06-10-2010

[eluser]Unknown[/eluser]
Codeigniter executes any php script in encounters inside view files. Is there any known way to disable that?

Part of the idea behind a template parser is to greatly reduce the power granted to someone who edits view files. Codeigniter's template parser isn't much use if we can't somehow forbid php script found inside view files from executing.

Any thoughts, comments, reaction, are welcome.


Template Parser & Disabling PHP execution - El Forum - 06-10-2010

[eluser]WanWizard[/eluser]
CI view file ARE php files, quite difficult to disable that.

If you don't want PHP inside your templates, use a third party template engine that comes with it's own syntax. There are several available. For some, like p.e. Smarty, integration instructions are available.