zen of coding

Take control over your "bake" and "scaffold" HTML templates

Excellent tips from Mark Story, which popped up on IRC yesterday… They are very useful to some, I can imagine… so here it goes… How to modify your scaffolding HTML (If using var $scaffold for prototyping your app) Go into: cake/libs/views/scaffolds Notice the 3 files there (add/edit actions work in[…]

Read More »

Take control over your “bake” and “scaffold” HTML templates

Excellent tips from Mark Story, which popped up on IRC yesterday… They are very useful to some, I can imagine… so here it goes… How to modify your scaffolding HTML (If using var $scaffold for prototyping your app) Go into: cake/libs/views/scaffolds Notice the 3 files there (add/edit actions work in[…]

Read More »

Convention over Configuration – what's the big deal?

While writing a little about jQuery and CakePHP (part 1 and part 2), which I promise I am not quite done with yet… … another topic slowly entered my brain… Why do we love CakePHP so much? (And why do others equally hate it for the same reason?) Here’s what[…]

Read More »

JQuery in the CakePHP world (part 2 – is client side code all that great?)

(part 1) Now, how is this an introduction to jQuery + CakePHP?… well, let’s see in a minute. First, I’d like to say that with the advent of frameworks such as jQuery, better browsers, which do a nicer job of supporting standards, and even faster PC’s and larger/better monitors, we[…]

Read More »

JQuery in the CakePHP world (part 1 – the basics)

Update (03/14/2014): An intro post to CakePHP + jQuery auto-complete that’s more up to date. Update (08/25/2010): There have been quite a few changes in CakePHP 1.3.3 and the Javascript/AJAX engines. (For one you are no longer “stuck” with prototype). Yet, everything in this post is still relevant and I[…]

Read More »

Can we talk enough about requestAction()?

Apparently not… And I do mean that in a good way. You know, this topic has been brought up a number of times before, but a recent post on google group, inspired me to do some copy/pasting. First, I think, Martin Westin did an excellent job of explaining the basis[…]

Read More »

Modified something in your database? Be sure to clear the model cache!!!

This point deserves its own post. Those who hang out on the friendly and helpful IRC channel, probably see this come up every week at least 3 times :) Remembering to clear the cache every time the Data Base is modified, will hopefully save some people a few hours of[…]

Read More »

Kayak-like filter sliders using jQuery and AJAX pagination in CakePHP

Let’s try to build a nice slider widget to filter your data… kind of like the ones you’d find on kayak.com (do a search for any flight to see a sample). First we need to enable our data to be paginated via AJAX. For this, I am relying on an[…]

Read More »

Getting Auth and Admin Routing to play nicely together

Here I’m going to show how to use CakePHP’s built-in Auth component and Admin Routing to easily build a protected, administrative area for your application. I guess this post is somewhat on an intermediate level and I hope you know a little about Auth (or maybe even here) and Admin/Prefix[…]

Read More »

Another way to think about MVC

This is just a simple intro post to the concepts of MVC. It is intended for those who are starting to grasp the basics, but are having a bit of a hard time understanding some of the rules and concepts. We’ll use this interesting analogy that I thought works quite[…]

Read More »
%d bloggers like this: