Problems related to multiple controllers in a zendframework module

Source: Internet
Author: User
Tags zend framework
Zendframework is a beginner with multiple controllers in one module. I am working on a module, but I want to separate controllers based on the business (I don't want to write all Actoin into IndexController), so I created a WorkController under the IndexController directory, A work zend framework with multiple controllers in one module is created under/views \ scripts \.
Newbie, ga new.
I am working on a module, but I want to separate controllers based on the business (I don't want to write all Actoin into IndexController), so I created a WorkController under the IndexController directory, you have created a work folder under/views \ scripts \. can this be done? In this case, it seems that there is a problem with the attributes in the common layout class. do you need to set special settings? Please give me some advice. For example, if you need to pay attention to the specific path or something, it is very grateful to the younger brother who has a comprehensive Zend Framework...

Mailbox ryueiketu@gmail.com

------ Solution --------------------
Configuration file/application/configs/application. ini

Resources. layout. layoutPath = APPLICATION_PATH "/layouts/scripts /"

Layout file storage location
/Application/layouts/scripts/layout. phtml
Content
---

Layout ()-> content;?>

---


You can.

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.