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 »