In OSX, Phalcon cannot access controllers other than indexAction in IndexController.

Source: Internet
Author: User
Environment: OSX10.10.5Yosemiteapache2.4.16 (with built-in) php5.6.14 I used php5.6 and phalcon installed in Homebrew. After a series of settings, I followed the tutorial to achieve & amp; lt; this step & amp; gt; the problem is:... environment: OS X 10.10.5 Yosemite/apache 2.4.16 (included)/php 5.6.14

I used Homebrew to install php 5.6 and phalcon. After a series of settings, I followed the tutorial and did <this step>,

The problem occurs: Except for the indexAction method in IndexController, the output content of the controller is the content in the index. phtml template.

I checked for a long time and found <this post> On stackoverflow. The question is similar to me. According to the practice in the answer, I changed the apache settings and still cannot solve the problem.

I have also <asked a question> on the official forum, but the problem persists.

Later, I inserted $ this-> getContent () in index. phtml. The result is that the output content of other controllers and indexAction content overlap.

I tested those codes on Windows 7 (XAMPP). Isn't that true? Who knows how to solve it?

Reply content:

Environment: OS X 10.10.5 Yosemite/apache 2.4.16 (included)/php 5.6.14

I used Homebrew to install php 5.6 and phalcon. After a series of settings, I followed the tutorial and did <this step>,

The problem occurs: Except for the indexAction method in IndexController, the output content of the controller is the content in the index. phtml template.

I checked for a long time and found <this post> On stackoverflow. The question is similar to me. According to the practice in the answer, I changed the apache settings and still cannot solve the problem.

I have also <asked a question> on the official forum, but the problem persists.

Later, I inserted $ this-> getContent () in index. phtml. The result is that the output content of other controllers and indexAction content overlap.

I tested those codes on Windows 7 (XAMPP). Isn't that true? Who knows how to solve it?

After downloading the official code, we found that no corresponding folder was created for IndexController,
It should be:/views/index. phtml
Incorrect:/views/index. phtml

The result is that the/views/index. phtml... tables (tables _ tables) tables are always accessed.

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.