Yii Framework Forum: [module] userGroups - Yii Framework Forum

Jump to content

  • (10 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[module] userGroups module for managing user, groups and their permissions Rate Topic: -----

#21 User is offline   Dave_D 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 28-April 11
  • Location:Surrey, England

Posted 02 May 2011 - 04:04 AM

Quote

i'll release a bugfix within today


Blimey, go any faster and you'll be releasing fixes before the problem is reported :)

Thanks very much

Dave
0

#22 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 02 May 2011 - 06:32 AM

done ^^ new version released, you should not have any problems now... let me know anyway!
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#23 User is offline   shizo971 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 13-February 11
  • Location:Guadeloupe

Posted 02 May 2011 - 01:38 PM

i'm obliged to use "urlManager" ?

after this installation:
'modules'=>array(
    'userGroups'=>array(
        'accessCode'=>'type here your access code',
    )
),


i can't access to the configuration of userGroups with this link:

http://yii.localhost...tapp/userGroups
0

#24 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 02 May 2011 - 01:49 PM

the module wasn't truly tested without urlManager setted in that way...

anyway that's a basic urlManager setting, nothing fancy.
the urls you get with urlManager are also better for google indexing
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#25 User is offline   Dave_D 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 28-April 11
  • Location:Surrey, England

Posted 03 May 2011 - 08:03 AM

Hi,

Couple of things

1. spelling error "Successfully" incorrect in UGMail.php (line 220), AdminController.php (359) & UserController.php (294 & 318)

2. Get the following error using a registration view when using a profile extension:

Quote

get_class() expects parameter 1 to be object, array given

in protected\modules\userGroups\controllers\UserController.php line 194


Dave
0

#26 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 03 May 2011 - 04:42 PM

i'll be damned... it's a small bug, i'll release the fix tomorrow, thanks a lot Dave.

unfortunately i'm about to turn in a project tomorrow, sorry if i didn't check it before.
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#27 User is offline   Panurge 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 16-March 11
  • Location:Minas Gerais

Posted 04 May 2011 - 07:20 AM

Hi.

I've installed the module sucessfully. But on login in the first time the operation frezes just after submiting the login form. No error.

I did the configurations mentioned in the module page on Yii 1.1.7 and userGroups 1.6.6

:unsure:

Liked the module specs.. waiting for the project release :)
0

#28 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 05 May 2011 - 07:29 AM

done guys... i made the new release and tested everything profile related, now you shouldn't have any more issues with it.
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#29 User is offline   alichen 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-July 09

Posted 10 May 2011 - 03:50 AM

Declaration of WebUserGroups::changeIdentity() should be compatible with that of CWebUser::changeIdentity() 


usergroups 1.6.7 and yii 1.1.7 in xampp 1.7.4

plz tell me how can i fix it?first install steping
0

#30 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 10 May 2011 - 03:57 AM

View PostDave_D, on 30 April 2011 - 09:37 AM, said:

Bad form to reply to own post but I've found the answer.

PHP reports this error if E_STRICT error reporting is switched on. It was reported as a bug (#46851) back in 2008 but is still knocking around

Dave



here you can see what is triggering the error.

on next release i'll some changes to try to avoid the error.
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#31 User is offline   peili 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 28-August 10
  • Location:Germany - Munich

Posted 12 May 2011 - 01:11 PM

Error: Class XXXController does not have a property named _permissionControl

What if I do not want to extend my other module's controllers?

Is there a way?

Best regards,

Philipp
0

#32 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 12 May 2011 - 01:20 PM

your other modules are obviously not extending the controller located inside your application component folder.

all you have to do is create that property inside the controller you module's controller are extending or in every controller of your module
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#33 User is offline   peili 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 28-August 10
  • Location:Germany - Munich

Posted 12 May 2011 - 04:02 PM

View Postnickcv, on 12 May 2011 - 01:20 PM, said:

your other modules are obviously not extending the controller located inside your application component folder.

all you have to do is create that property inside the controller you module's controller are extending or in every controller of your module


I use about 4 modules and 60 Controllers. The all have CController as the same base.
I don't want to touch the code in my modules.

Is there no way to use userGroups just for my application and exclude my modules?

Regards,

Philipp
0

#34 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 12 May 2011 - 04:05 PM

View Postpeili, on 12 May 2011 - 04:02 PM, said:

I use about 4 modules and 60 Controllers. The all have CController as the same base.
I don't want to touch the code in my modules.

You have a problem.

This is the reason why most - if not all - Yii samples use Controller rather than CController as base class.
You just need a quick search and replace.
That will help you in the long run, not only with userGroups, but all common controller code/logic as well.
"Less noise - more signal"
0

#35 User is offline   alichen 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-July 09

Posted 15 May 2011 - 09:00 PM

View Postalichen, on 10 May 2011 - 03:50 AM, said:

Declaration of WebUserGroups::changeIdentity() should be compatible with that of CWebUser::changeIdentity() 


usergroups 1.6.7 and yii 1.1.7 in xampp 1.7.4

plz tell me how can i fix it?first install steping


is there anybody has a problem like this?
0

#36 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 16 May 2011 - 05:51 AM

now it's fixed, that problem should never occur again with the new release.
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#37 User is offline   alichen 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-July 09

Posted 16 May 2011 - 10:47 PM

View Postnickcv, on 16 May 2011 - 05:51 AM, said:

now it's fixed, that problem should never occur again with the new release.

glad to see new release :P
0

#38 User is offline   KRR 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 17-March 09

Posted 18 May 2011 - 04:22 PM

The installer is telling me to add this code :

'user'=>array( 
// enable cookie-based authentication
 'allowAutoLogin'=>true, 
 'class'=>'userGroups.components.WebUserGroups', 
  ),


I have added it to my ...\protected\config\main.php file but after refresh I get this error:

Property "CWebApplication.user" is read only.

C:\xampp\htdocs\yii\framework\base\CModule.php(467)

455         }
456     }
457 
458     /**
459      * Configures the module with the specified configuration.
460      * @param array $config the configuration array
461      */
462     public function configure($config)
463     {
464         if(is_array($config))
465         {
466             foreach($config as $key=>$value)
467                 $this->$key=$value;
468         }
469     }
470 
471     /**
472      * Loads static application components.
473      */
474     protected function preloadComponents()
475     {
476         foreach($this->preload as $id)
477             $this->getComponent($id);
478     }


What am I doing wrong?
0

#39 User is offline   Dave_D 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 28-April 11
  • Location:Surrey, England

Posted 18 May 2011 - 04:48 PM

Hi,

About to show how much of a newbie I am ;) but having successfully created a profile with it's View, Edit and Register forms, how the heck do I access the profile data in my application?

For example I know I can get the current username with 'Yii::app()->user->name' and in my profile I have a field called firstname, I tried 'Yii::app()->user->firstname' but it doesn't work.

Help please

Dave
0

#40 User is offline   KRR 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 17-March 09

Posted 18 May 2011 - 05:21 PM

View PostKRR, on 18 May 2011 - 04:22 PM, said:

The installer is telling me to add this code :

'user'=>array( 
// enable cookie-based authentication
 'allowAutoLogin'=>true, 
 'class'=>'userGroups.components.WebUserGroups', 
  ),


I have added it to my ...\protected\config\main.php file but after refresh I get this error:

Property "CWebApplication.user" is read only.

C:\xampp\htdocs\yii\framework\base\CModule.php(467)

455         }
456     }
457 
458     /**
459      * Configures the module with the specified configuration.
460      * @param array $config the configuration array
461      */
462     public function configure($config)
463     {
464         if(is_array($config))
465         {
466             foreach($config as $key=>$value)
467                 $this->$key=$value;
468         }
469     }
470 
471     /**
472      * Loads static application components.
473      */
474     protected function preloadComponents()
475     {
476         foreach($this->preload as $id)
477             $this->getComponent($id);
478     }


What am I doing wrong?


Never mind, my fault..... It should be added under the components section.
0

Share this topic:


  • (10 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • 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