Setting up Cakephp for Application Development
Posted on | July 5, 2009 | No Comments
I like to keep the CAKPHP ROOT files (/cake/) in a folder of its own and my /app in the working folders. This way, the CAKEPHP ROOT files are not SVNed and that keeps my repos smaller.
My folder structure:
D:\www\cakephp_1_2
D:\www\video_tutorial\app
D:\www\video_tutorial\vendors
D:\www\project 1\app
D:\www\project 1\vendors
All my vendors files for all projects are stored in D:\www\cakephp_1_2\vendors. If it is project specific, it goes to the project’s own folder.
In the project’s folder, index.php in webroot folder, change the CAKE_CORE_INCLUDE_PATH constant to allow the app to locate the CAKEPHP ROOT files and include them.
D:\www\video_tutorial\app\webroot\index.php
/**
* The full path to the directory which holds "app", WITHOUT a trailing DS.
*
*/
if (!defined('ROOT')) {
define('ROOT', dirname(dirname(dirname(dirname(__FILE__)))));
}
/**
* The actual directory name for the "app".
*
*/
if (!defined('APP_DIR')) {
define('APP_DIR', basename(dirname(dirname(dirname(__FILE__)))).DS.'app');
}
/**
* The absolute path to the "cake" directory, WITHOUT a trailing DS.
*
*/
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.'cakephp_1_2');
}
Give Me Cake now on iPhone
Posted on | July 2, 2009 | No Comments
Browse to Give Me Cake on your iPhone to see this Blog in iPhone Theme. This is made possible by using WPtouch.

This is how givemecake.dev-work.com looks like in Safari with iPhone user agent string.
Some cool features of WPtouch mentioned:
- Support for FlickrRSS plugin, Blip.it video plugin
- Automatic Archives page layout (if you have or create a page called ‘Archives’)
- Automatic Photo page layout with Flickr (if you have or create a page called ‘Photos’ and have the FlickrRSS plugin installed)
- Automatic Links page layout with your blogroll links listed with their favicons (if you have or create a page called ‘Links’)
Visit the BraveNewCode website for more information on WPtouch.




















