CakePHP Integration With Other Apps

I just had one hell of a time integrating BBPress into a CakePHP site I'm putting together.

See, the problem with integrating something into CakePHP is that it will automatically try to wrap it within the framework, for example, if I want to add a blog, the url I'm shooting for will be: www.mysite.com/blog/, but if I just stick a directory under CakePHP and call it 'blog', then it throws up controller errors. The key then is to stick the directory under 'webroot', but alas we run into another problem. If you type in the url www.mysite.com/blog/ it will automatically send you to www.mysite.com/app/webroot/blog/, and that's not pretty.

Where's the answer then? It's in your .htaccess file of course! So, I started searching...

At first I started off with the keywords: 'cakephp' and 'subdirectories', but all I got were tips on how to install CakePHP into a subdirectory, not quite what I was searching for.

I then thought of the types of software other people might look to integrate into their searches, because I was 100% sure I wasn't the first. I settled on 'Wordpress', 'cakephp', and 'integration'. Which landed me on my answer here: Wordpress into CakePHP: The right way! I then proceeded to kick myself for not having looked at PlanetCakePHP.org in the first place.

Your Ad Here
Rhapsody In Blue >>> George Gershwin >>> 2 Years, 3 Weeks, 2 Days, 20 Hours, 31 Minutes

Flickr

Latest Read

feeds

Resume