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 -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -