syntax error "tpl_body:6" line 1 "{assign 'MyClass' cgsimple::get_root_alias()|default:$page_alias}" access to static class 'cgsimple' not allowed by security setting
Is it a bug or something? Don't know what to do honestly. If anyone has a clue... Thank you.
We implemented the smarty security policy to try to ensure that most users couldn't do silly things (without at least knowing that they were doing silly things) in the templates, including calling functions that they shouldn't be.
This means, that by default from now on only a limited set of php functions can be called from within smarty. Stuff like, isset(), count(), strlen(), is_array(), etc. basically php functions that are display related, and not related to gathering or modifying data. (it's all about view/controller type logic).
That being said... there is no way we can have this 'security policy' be tight for most sites that need it (the sites that allow anonymous users to enter data AND pass that data through smarty), and allow the advanced users to do cool stuff.
Therefore, there is now a new config variable available in $config (there are actually a few, you should look at the reference doc included in the install). that allows you to put whatever you want into smarty.
$config['permissive_smarty'] = 1;
will do the trick.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
-------------------- If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.