Welcome Guest, Not a member yet? Register   Sign In
Template Parser & Disabling PHP execution
#1

[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.
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB