MoroGasper / yii-usergroups

Automatically exported from code.google.com/p/yii-usergroups
0 stars 0 forks source link

wrong path #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I used giix extension to generate cruds (about 70 tables)
2.Did a fresh usergroups installation
3.put the .htaccess on my app root folder 
4.the class GxController extends CController so I put the line 

public static $_permissionControl = array('read' => false, 'write' => false, 
'admin' => false);

into Gxcontroller.php 

What is the expected output? What do you see instead?

1. Try to log in //myapp/userGroups i got 404
2. I do login with the path //myapp/index.php/userGroups
It mapped all 70 controllers, but when I try to add a group or user I got 404 .

What version of the product are you using? On what operating system?

usergroups vesion 1.5
ubuntu 10.4
PHP Version 5.3.2
Apache/2.2.14 (Ubuntu) 

Please provide any additional information below.

I edited the form (using firebug) and put the /index.php/, so I get user and 
group records on database.
but when I try to login with the new user it goes to the yii default user 
control  /admin/

Original issue reported on code.google.com by serge.me...@gmail.com on 2 May 2011 at 1:36

GoogleCodeExporter commented 9 years ago
did you copy the new filter as well into the giix controller?

did you try to use 
'showScriptName' => false,

in the urlManager?
that should get rid of the index.php part of your links.

Original comment by nic...@creationgears.com on 2 May 2011 at 1:43

GoogleCodeExporter commented 9 years ago
thanks for your quick reply

yes I did  copy of public static $_permissionControl and the public function
filterUserGroupsAccessControl into gixx controller

yep i got not found for  app/userGroups  but still working if I put
/index.php/ on each url except forms

 I unzipped the userGroups into modules folder not the extensions one, could
be the issue?

Original comment by serge.me...@gmail.com on 2 May 2011 at 2:26

GoogleCodeExporter commented 9 years ago
no, it's right to use into the modules folder... set showScriptName to false 
into your application config file:
/protected/config/main.php

that's what you are supposed to do to get rid of the index.php part of the 
link...

you may have some issues too with the htaccess file... can you access other 
urls inside your application without the index.php part?

Original comment by nic...@creationgears.com on 2 May 2011 at 2:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It´s working!
Btw great app, congratulations and thanks for your help!

Original comment by serge.me...@gmail.com on 4 May 2011 at 9:43

GoogleCodeExporter commented 9 years ago
you are welcome ^^

Original comment by nic...@creationgears.com on 5 May 2011 at 12:31