• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
deactivate PHP in views

#8
[eluser]Olivier69[/eluser]
OK, i found a simple solution not to deactivate PHP in the back Office of the CMS.

I just check in /application/core/MY_Loader.php if the view path is 'manager' or not :
Code:
if(strrpos($_ci_path, 'views/'.$this->config->item('backend')) !== false)
{
     include($_ci_path); // include() vs include_once() allows for multiple views with the same name
}
else
{
     echo file_get_contents($_ci_path); // On d√©sactive PHP dans les vues du Frontend
}
It's not very elegant but it works.

Thank's for help, really.


Messages In This Thread
deactivate PHP in views - by El Forum - 04-11-2011, 04:13 PM
deactivate PHP in views - by El Forum - 04-12-2011, 02:23 AM
deactivate PHP in views - by El Forum - 04-12-2011, 03:14 AM
deactivate PHP in views - by El Forum - 04-12-2011, 06:47 AM
deactivate PHP in views - by El Forum - 04-12-2011, 07:53 AM
deactivate PHP in views - by El Forum - 04-12-2011, 08:43 AM
deactivate PHP in views - by El Forum - 04-12-2011, 10:17 AM
deactivate PHP in views - by El Forum - 04-12-2011, 04:02 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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