renderFile with Layout


Am I stupid or what? :)

I want to render a view out of a different folder then the current controller folder.

No problem I thought, I use renderFile, but renderFile don’t use the layout! Why??

Can I solve my problem?

Best regards

Well i use normal render like this

Lets say im in SiteController but i want to render a Categories View

$this->render("/categories/list", Array());

The problem is, I will do the render process out of a module and the view is not in a controller folder

the view is under


and there is no ProfileController.

So if I do render("/profile/login") from the module I get the error message that the view can’t be found!



that should work, but you probabily shouldnt be rendering non module views, inside a module.