[英]Setting up baseurl in CakePHP
I am really new to CAKEPhP
so need some assistance. 我对CAKEPhP
真的很CAKEPhP
所以需要一些帮助。 I used to work in Codeigniter
before where i used to set the base_url
and it set up all the paths. 我以前在Codeigniter
工作,之前曾用来设置base_url
和它设置所有路径。 Recently i downloaded a website that is made in cakephp
. 最近,我下载了一个用cakephp
创建的cakephp
。 Placed it in folder in htdocs
named as abc
. 将其放在名为abc
htdocs
中的文件夹中。 Configured all the database stuff. 配置所有数据库资料。 Now when i try run it on localhost
, it seems that everything is pointing to the root folder. 现在,当我尝试在localhost
上运行它时,似乎所有内容都指向根文件夹。 Here is the snapshot of the missing file errors i receive in console. 这是我在控制台中收到的丢失文件错误的快照。
Any idea where i can set the base_url
thing in cakephp
so that it can start pointing to right folder? 任何想法,我可以在cakephp
设置base_url
东西,以便它可以开始指向正确的文件夹吗?
Thanks. 谢谢。
App.imageBaseUrl Web path to the public images directory under webroot. App.imageBaseUrl到webroot下公共图像目录的Web路径。 If you are using a CDN you should set this value to the CDN's location. 如果使用的是CDN,则应将此值设置为CDN的位置。
http://book.cakephp.org/3.0/en/development/configuration.html#bootstrapping-cakephp http://book.cakephp.org/3.0/en/development/configuration.html#bootstrapping-cakephp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.