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.