how to access static variable in cakephp 2 -


i using following code check logged in user's group (cakephp 1.3)

session->read('auth.user.user_group_id') != user::userlevel_user) :?> (this in .ctp file)

and migrating cakephp 2. , code not working. cant find results when googled .

could shed light on this

in cakephp 2.x you're sending variables view, don't have access user class. should instance of class in controller , send variable view.

please use plugin improve debugging skills: https://github.com/cakephp/debug_kit


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -