Hi, guys,
I have a core module which has a login portlet. In the user controller I’ve got the action Login, which renders a view that contains the code to insert the core.components.login portlet in the page.
Portlet works fine, but it gets rendered outside the main layout.
As I’m using a theme, I’ve created a folder called LoginPortlet to customize the look of the loginPortlet view.
Structure:
/protected
|_modules
| |_core
| |_controllers
| | UserController.php
| |
| |_components
| | LoginPortlet.php
| | |_views
| | loginPortlet.php
| |
| |_views
| | |_user
| | login.php //this calls $this->widget(core.components.LoginPortlet);
/themes
| |_custom
| |_views
| |_LoginPortlet
| loginPortlet.php //its ok, renders this view instead of the one in core module
Curiously, in localhost the portlet is rendered in the right place (inside the layout).
The resultant HTML is this: http://www.meubulldogingles.com.br/manage (plz use up-to-dated browser)
I’ve tried removing the code $this->widget from login.php view and the content is rendered in the right place.
The problem seems to appear whenever I call the portlet login inside the view. Other widgets are working very fine.
Could somebody please give me a hint?
Thank you very much