ZEND Controllers -- How to call an action from a different controller -
I want to display a page that has 2 forms Top page is unique to this page, but the bottom form is the first Only a separate controller can be sung from. I am using the following code to call the action of another form, but I keep this error:
"Message: ID is not specified" # 0 ... / Library / Zend / Controller / Router / Rewrite.php (441): Zend_Controller_Router_Route-> Gather (array, true, true)
My code:
First Controller:
Abc_Controller public function someAction () {$ this- & gt; _Helper-> Action stack ('other', 'xyz'); } Second Controller: xyz_Controller Public Function Other Action () {// code}
Desired Results :
When the phone / ABC / calls something, I want to present "some" content with the XIG / other content. I think I followed the doctor correctly () but because of the error, no help was found when I find out the code (using XDebug), xyz / other action is completed, But when ABC / Some action reaches the end, the error is thrown away during the dispatch or routing.
Any help is greatly appreciated.
You can complete this in your phtml for some of your actions. then some. Put in the Phtml and This will render the form found in the second action of XyzController
Comments
Post a Comment