The call to zendframeworkmodels is just a learning framework. I have read an example in the manual. It seems to be starting with an index. php. See the following: & lt ;? Phprequire_once 'zend/Controller/Front. php'; Zend_Controller_Front: run ('./applicatio Zend framework models call
I just learned the framework and read an example in the manual.
It seems to be starting with an index. php.
See the following:
Require_once 'zend/Controller/Front. php ';
Zend_Controller_Front: run ('./application/controllers );
?>
If you do not change the default settings. The file application \ controllers \ indexCtroller. php and application \ views \ scripts \ index. phtml will be called.
Problem:
If the application \ controllers \ directory contains an index2ctroler. php file, I want to call index2ctroler. php instead of indexctroler. php, so that the controller I want to call can be called.
I tried to write it like this (don't joke)
Require_once 'zend/Controller/Front. php ';
Zend_Controller_Front: run ('./application/controllers/index2Ctroller. php );
?>
The result is a lot of errors.
Q:
How can I call index2Ctroller. php.
Thank you!
------ Solution --------------------
Zend is a good thing. I also learned how to help the landlord.
------ Solution --------------------
At the beginning, you should first read the PDF tutorial. the manual is just a reference,
If you know something, try the manual again. The examples of the manual are for specific purposes and do not consider other related things.
------ Solution --------------------
Dude, your controller is wrong! Index2Ctroller. php
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