I inherited a project. The project has clients that have locations that have sites. The database has a client table, a location table and a site table. All the site/login code was co-mingled with the site table stuff. I didn’t like that.
I moved all the login code to directory mni and changed main.php components to
'user' => array( 'class' => 'WebUser', 'loginUrl' => array ( 'mni/index' ), 'returnUrl' => array ( 'index.php?r=mni/index' ), 'allowAutoLogin'=>true, ),
This broke CRUD. If I go to the create client page, fill in the blanks, hit submit; it goes to
and says I am not authorized to perform this action.
I’ve played with returnURL but haven’t gotten it right. Is this the right direction? Should the returnURL be part of the submitButton? I tried variations of that too without success.