Yii Framework Forum: Module In YII - Yii Framework Forum

Jump to content

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

Module In YII module created but getting 403 error

#1 User is offline   Deepak Singh Kushwah 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 29-October 11
  • Location:India

Posted 29 October 2011 - 12:52 AM

Hi All,

I have created a module from gii tools named "manager". I want to use this modules as admin tool for various tasks. I have create a model in this modules "staticPages". A table created with id, page_name, page_body fields and modal class is associated with it. Then I created a curd section from gii tool for this model. I can add/edit/delete the static_pages entry but when I click on "manage static pages" link (grid view of all entries), it shows me 403 error (not authorized). URL of this page is manager/staticPages/admin. Could you please tell me where I've been mistaken or forgot any settings. I have added 'manager' module entry in main configuration file.

Please Help.

Kind Regards
0

#2 User is offline   Adiel Cristo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 09-December 11
  • Location:Brazil

Posted 09 December 2011 - 07:20 PM

Hi,

Perhaps you are using the default user demo, created with the application.

Did you tried to log in as the admin user?

Regards,
0

#3 User is offline   mastermunj 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 12-July 11

Posted 23 January 2012 - 03:44 AM

Either try logging in using admin user.

OR

If you are not much worried about authentication and access rights, comment out filters() & accessRules() methods from controller.

OR

You could modify the accessRules() method to get a blend of access rights and allow the particular action you need to do without any authentication.
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