Welcome To Snipplr


Everyone's Recent Snippets Tagged cakephp



[Google's "AJAX Libraries API"](http://code.google.com/apis/ajaxlibs/) is great and all, but can slow things down if you're doing a lot of refreshing/cache clearing while debugging. Here's a neat trick: stuff something like this in the `<head>` of yo...
1 325 posted 12 years ago by jdbartlett
When you have a URL like this http://mysite/newsletters/index/2007 The find('first') method adds the 2007 value as ID parameter WTF!?
0 243 posted 12 years ago by sveggiani
This code within your CakePHP Controller to include a Model.
0 277 posted 12 years ago by jdbartlett
1 244 posted 12 years ago by resurge
3 360 posted 12 years ago by sveggiani
0 343 posted 12 years ago by ping_ch
3 409 posted 12 years ago by ping_ch
1 254 posted 12 years ago by gerhardsletten
0 272 posted 12 years ago by gerhardsletten
0 248 posted 12 years ago by gerhardsletten
0 271 posted 12 years ago by gerhardsletten
0 327 posted 12 years ago by sveggiani
2 287 posted 12 years ago by gerhardsletten
0 267 posted 12 years ago by gerhardsletten
This code within your CakePHP controller to include a component.
0 247 posted 12 years ago by jdbartlett
With this code you can pull all admin view files for a particular CakePHP controller in their own admin folder rather than renaming each file admin_whatever. Line 779 in cake/libs/view/view.php
0 245 posted 12 years ago by madmanlear
0 277 posted 12 years ago by Wiederkehr
0 240 posted 13 years ago by TimHaslam
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0 404 posted 13 years ago by zingo
1 281 posted 13 years ago by jesse
This class var creates a belongsTo association between this and another Model
1 246 posted 13 years ago by jesse
This class var definition configures a Model to have a OneToOne relationship with a Model of another class.
1 245 posted 13 years ago by jesse
This is the basic edit action suggested by the CakePHP Manual
1 216 posted 13 years ago by jesse
2 304 posted 13 years ago by halbtuerke
0 295 posted 13 years ago by haimuiba
reference for create own ajax helper in CakePHP
1 324 posted 14 years ago by juno