Posted on May 3rd, 2007 by Ian
Have you ever been stuck 10 - 20 miles out in the middle of nowwhere with a broken down car? Gas looks fine, temp. is fine. The engine turns but just not quite enough to start. You’re faced with a question. Walk the 20 miles which you know will get you […]
Filed under: Learning Cakephp | No Comments »
Posted on April 30th, 2007 by Ian
So I just read my last post about the javascript helper and I realized it makes little to no sense.
I was in a rush and just wanted to document the finding. Here’s a second try at explaining the js helper:
Using Javascript on your site.
1. Add the helper to the controller.
To use javascript in your cakephp […]
Filed under: Learning Cakephp | No Comments »
Posted on April 1st, 2007 by Ian
Dieter Plaetinck has created a really well thought-out user authentication system, dAuth for cakephp.
Php security can be a tricky beast, and web programmers can never learn enough about it. Dieter has evolved this project in bakery articles and it’s very useful to go through and read them all. Once you have and you understand how […]
Filed under: Learning Cakephp | No Comments »
Posted on March 30th, 2007 by Ian
How does the javascript helper work?
$javascript->link() function.
Youl’d think there’d be a section in the manual under the helpers saying:
Css helper, called by $css->function(). Here’s a list of fuctions.
Javascript helper, called by $javascript->function(). etc.
It looks like the rule of thumb is the full word, lowercase, prefixed with a $ sign, and be sure to add the […]
Filed under: Learning Cakephp | No Comments »
Posted on March 23rd, 2007 by Ian
clipped from cake-php.blogspot.com
Unless you delve in to the API, there are some very useful model functions at your disposal you might not know exist. I highly recommend reading over the Model Class Reference at least once. Here’s a few key functions I wasn’t aware of that I found to be very useful:
generateList() […]
Filed under: Learning Cakephp | No Comments »
Posted on March 23rd, 2007 by Ian
When first getting started I was quite perplexed as how to build a page that has more than one model and controller attached to it.
If /users/index runs the Users::index() function and the users controller uses the User model then how do I look at data from, say a Profile model on that page? What if […]
Filed under: Learning Cakephp | No Comments »
Posted on March 23rd, 2007 by Ian
To use cakephp’s framework to the fullest, you need to utilize its conventions. To modify the default template for your site copy:
/cake/libs/view/templates/layouts/default.thtml
to /app/views/layouts/
You then edit that copied file. The presence of
/app/views/layouts/default.thtml
tells cake to stop looking at the old layout and look at the new one.
So you’d think that it would work the same way […]
Filed under: Learning Cakephp | No Comments »
Posted on March 23rd, 2007 by Ian
“Hi Ian”
I’m a new developer that has been happily <a href=”http://bakery.cakephp.org/articles/view/159″>seduced</a> into doing a project or two in the Cakephp framework.
I’m starting this blog because I feel that the learning curve is still a little bit to high, and despite some very good efforts from the cakephp <a href=”http://bakery.cakephp.org/”>community</a> and <a href=”https://www6.software.ibm.com/developerworks/education/os-php-cake1/”>others</a> to welcome newcomers […]
Filed under: Learning Cakephp | 2 Comments »