PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, February 22, 2022

[FIXED] how to install a cake 3 webapp under a different directory but same url?

 February 22, 2022     cakephp, cakephp-3.0     No comments   

Issue

I have a url called http://cake.dev and I want http://cake.dev/cake3 to point to a cake3 web app.

I have successfully gotten the webpages to work, but all the urls pointing to various assets like base.css are wrong.

This is because the various HtmlHelpers are outputting /css/base.css when I need them to be /cake3/css/base.css

How do I change this system-wide?


Solution

Take a look at the config/app.php

under App, you can set your 'base' to 'cake3'



Answered By - topherW
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing