How does zend view send messages to the controller? Dear heroes, I want to modify a zend program. I am very anxious to find some points that I don't understand. I hope you can tell me the following statements in index.html: & lt; a & nbsp; href = "& lt ;? Php & nbsp; echo & nbsp; $ this-& gt; preurl & nbsp ;? & Gt;/v: How does zend view how messages are sent to the controller?
You guys, I want to modify a zend program. I am very anxious to find some points I don't understand. please kindly advise:
The following statements are available in index.html:
Preurl?> /View/memberlist "target =" contentframe "> view the user list
Click the hyperlink above to execute a memberlistAction function in application/modules/admin/controller/ViewController. php, as shown below:
Class Admin_ViewController extends Kslf_Controller_Action_Admin
{
Public function memberlistAction (){
$ Request = $ this-> getRequest ();
$ This-> view-> headTitle ('View user list ');
$ Auth = Zend_Auth: getInstance ();
$ Options = array ();
// Some operation code is omitted.
$ This-> view-> memberlist = $ list-> itemlist;
$ This-> view-> status_translation_arr = $ status_translation_arr;
$ This-> view-> allowEdit = ($ auth-> getIdentity ()-> user_type = 'admin ')? True: false;
}
Go to the template/scripts/view/memberlist.html page.
I know this is the mechanism of the MVC framework. how can I define an action controller of my own, such as memberlist2Action (), to implement the effect of executing my action controller?
------ Solution --------------------
Add a method in Admin_ViewController: public function memberlist2Action (){}
The page link is changed to: preurl?> /View/memberlist2"
Click this link to execute your method: memberlist2Action
------ Solution --------------------
Get/post
This is true for web applications.