Hi all,
I create some app using yii, then i want to use seperated Login theme as guest landing page and others themes as users landing page (when users logged in)
here my themes folder structure:
myapp/
-----/protected
-----/themes/
----------guest/
----------users/
in my Controller.php i set init rule below:
if GUEST then
use guest_theme
else
use users_theme
then i replace code into main.php in guest/layout folder from myapp/protected/views/site/login.php.
Error below are appeared:
Undefinied variable: model
My question are how to connect guest themes with yii login system so it would handle all login process.
Thansk a lot