Yii Framework Forum: Use Rights With Caction For Generate Items - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Use Rights With Caction For Generate Items Rate Topic: -----

#1 User is offline   chamara 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 47
  • Joined: 05-June 13
  • Location:srilanka

Posted 08 October 2013 - 02:35 AM

<?php
/**
 * user controller class
 *
 * @author chamara bandara
 */
Yii::import('application.extensions.simple_image');

class UserController extends Controller {
   public $layout = '//layouts/column2';
  
   public function filters() {
      return array(
          'accessControl', // perform access control for CRUD operations
              'rights',
      );
   }

   public function actions() {
      return array(
          'index' => 'application.modules.users.controllers.user.IndexAction',
          'create' => 'application.modules.users.controllers.user.CreateAction',
          'view' => 'application.modules.users.controllers.user.ViewAction',
          'update' => 'application.modules.users.controllers.user.UpdateAction',
          'delete' => 'application.modules.users.controllers.user.DeleteAction',
          'admin' => 'application.modules.users.controllers.user.AdminAction',
          'ajaxChangePassword' => 'application.modules.users.controllers.user.AjaxChangePasswordAction',
          'UpdatePassword' => 'application.modules.users.controllers.user.UpdatePasswordAction',
          'approve' => 'application.modules.users.controllers.user.ApproveAction',
          'reject' => 'application.modules.users.controllers.user.RejectAction',
      );
   }
}


this is my controller with there action,

i am using rights but above actions can't get to Generate items list

how i do that plz help me?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users