Rich text editor - About the problem of reading php files in the web/bundles path in symfony

WBOY
Release: 2016-08-18 09:16:02
Original
1464 people have browsed it

My problem is this: I developed it locally and made a rich text editor UEditor. For convenience, I followed the original configuration and put the php file under js. The whole path is like this: http:/ /localhost/msk/web/bund..., this is the path for local development. Among them, msk is a project folder in the root directory. There is no problem at this time. Everything in rich text can be uploaded. But when I uploaded it to the server online, the path I got was like this: http://host ip/bundles/msk/public/js/php/controller.php?action=config&&noCache=1471224486130, but at this time A 404 error was generated. I would like to ask, is the developer mode of symfony different from the normal mode? Is it necessary to read the route registration method? Also, in order to test whether the path is correct, I put a picture up, but it can also be read. Is it just that the php file cannot be read? Thank you for your generous advice.

Reply content:

My problem is this: I developed it locally and made a rich text editor UEditor. For convenience, I followed the original configuration and put the php file under js. The whole path is like this: http:/ /localhost/msk/web/bund..., this is the path for local development. Among them, msk is a project folder in the root directory. There is no problem at this time. Everything in rich text can be uploaded. But when I uploaded it to the server online, the path I got was like this: http://host ip/bundles/msk/public/js/php/controller.php?action=config&&noCache=1471224486130, but at this time A 404 error was generated. I would like to ask, is the developer mode of symfony different from the normal mode? Is it necessary to read the route registration method? Also, in order to test whether the path is correct, I put a picture up, but it can also be read. Is it just that the php file cannot be read? Thank you for your generous advice.

What is the server you use? It is most likely nginx or apache. All the files ending with .php are forwarded to the entry file app.php,

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template