Accessing a module's action rendered output

Posted by Flavius on Stack Overflow See other posts from Stack Overflow or by Flavius
Published on 2010-02-05T21:30:10Z Indexed on 2010/03/14 13:25 UTC
Read the original article Hit count: 326

Filed under:

Hi.

I'm writing an "Account" module which should take care of everything about accounts: registration, login/logout, user administration, password recovery, account activation, etc.

So I thought it would be best to reuse whatever the module's DefaultController::actionRegister() generates to show on the main page.

So my question is: how to create a new "sub request" (similar to CController::forward()) from any controller (either SiteController, read: from views/layouts/main.php, or another controller, eventually of another submodule) to a given module/controller/action?

I've tried with $this->forward() from within my application layout without success: it shows a blank page, no error whatsoever.

Thanks

© Stack Overflow or respective owner

Related posts about yii