In the index Action of siteController, I’d like call the Show action of companyController.
What is the code to accomplish this?(I haven’t seen anybody doing this) or maybe this design structure is not good.
siteController extends Controller
{
public function actionIndex()
{
/* <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />? how to call the Show action of companyController <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />? */
}
}
Please let me know your thoughts. Thank you!
Regards,
Nicolas Xu