Ho creato una tabella User:
CREATE TABLE IF NOT EXISTS `User` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(120) NOT NULL, `email` varchar(240) NOT NULL, `password` varchar(40) NOT NULL, PRIMARY KEY (`id`) )
Ho modificato il file di configurazione:
'components' => array(
'user' => array(
'class' => 'RWebUser',
'allowAutoLogin' => true,
),
'authManager' => array(
'class' => 'RDbAuthManager'
),Ho caricato il modulo per l'installazione:
'rights' => array(
'install' => true
),Ho generato, da console, il model per la tabella User.
Pare tutto ok, ma se poi lancio index.php?r=rights leggo:
Error 403 There must be at least one superuser!
Avete qualche suggerimento?

Help













