Re: checkRight function on the LiveUser object
Lukas Smith <[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Organization | BackendMedia GbR |
| Message-ID | <[email protected]> |
Hi,
> 'permContainer' => array(
> 'type' => 'Complex',
> 'alias' => array(),
> 'storage' => array(
> "DB" => array(
> 'connection' => $db,
> 'dsn' => $dsn,
you only want to specify either the 'connection' or the 'dsn' .. but it
shouldnt hurt that much if you do it this way, aside from the fact that
LiveUser may decide to disconnect your connection instance if you call
disconnect(), since the containers check if a dsn was passed to
determine if its the job of LiveUser to disconnect any storage ressources.
> 'prefix' => 'liveuser_',
> 'tables' => array(),
> 'fields' => array(),
> 'alias' => array(),
> // 'force_seq' => false
> ),
> ),
> ),
> );
This looks ok to me.
> /**
> * Create the $LU object from the $conf and put it into our Application
> Registry
> */
> $LU = & LiveUser::singleton($conf);
>
> if (!$LU->init()) {
> var_dump( $LU->getErrors() );
> die("failed to init liveuser");
> }
Hmm and you are not getting an errors returns by init()?
Are you using the current CVS code?
> $LU->config = $conf;
why are you doing this?
regards,
Lukas Smith
[email protected]
_______________________________
BackendMedia
www.backendmedia.com
[email protected]
Linn Zwoch Smith GbR
Pariser Str. 44
D-10707 Berlin
Tel +49 30 83 22 50 00
Fax +49 30 83 22 50 07