Give Me Cake

CakePHP Baking, Internet Marketing, SEO, Design and more

Something Print Designers would be happy with…

Posted on | September 22, 2009 | No Comments

Baseline CSS

http://baselinecss.com/grid.html

Something designers working with frequently request is for the text to be aligned to the baseline. That is equal baseline for text even if they are in different DIV. These different DIV might have different padding or margins making them aligned to whatever other DIV needed.

Will take the CSS library for a test drive to find out if that works.

Twittering soon

Posted on | September 15, 2009 | No Comments

Working on adding twitter to Give Me Cake.

Leading Zeros removed by Spreadsheet?

Posted on | September 2, 2009 | No Comments

Use =”000123″ when exporting zero padded numbers in CSV to prevent the leading zeros from being removed. Works in Excel and OpenOffice

$csv->addField(’=”‘.$student['Cda']['branch_code'].’”‘);

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.

« go backkeep looking »
  • Give me Cake?

    Givemecake.dev-work.com a collection of web application development tips, tutorials and resources.
  • See Your Ads Here

  • See Your Ads Here

  • Meta