Template Parser & Disabling PHP execution

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.

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.