How does zend view messages sent to the controller?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.