php - Yii 1.1.14 access control specify actions -


I leave one controller ,

So if I apply the code [-], then is it okay?

  Public Function Filters () {Return Array ('accesscontrol - actionId1, actionId2',); }  

Or there is some error in the code, and do I do it any other way?

This will work but you

  array ('allow', 'Actions' = & gt; array (' actionId1 ',' actionId2 '),' user = & gt; array ('*'),)  

in acessRules ( ) for which you do not want a rule

>

Note: - 'users' = & gt; The array ('*') provides access to all of these tasks


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -