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 357 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 265 posted 12 years ago by sveggiani
This code within your CakePHP Controller to include a Model.
0 298 posted 12 years ago by jdbartlett
1 256 posted 12 years ago by resurge
3 386 posted 12 years ago by sveggiani
0 359 posted 12 years ago by ping_ch
3 428 posted 12 years ago by ping_ch
1 273 posted 12 years ago by gerhardsletten
0 289 posted 12 years ago by gerhardsletten
0 262 posted 12 years ago by gerhardsletten
0 288 posted 12 years ago by gerhardsletten
0 344 posted 12 years ago by sveggiani
2 302 posted 12 years ago by gerhardsletten
0 278 posted 12 years ago by gerhardsletten
This code within your CakePHP controller to include a component.
0 262 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 254 posted 13 years ago by madmanlear
0 301 posted 13 years ago by Wiederkehr
0 248 posted 13 years ago by TimHaslam
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0 439 posted 13 years ago by zingo
1 296 posted 13 years ago by jesse
This class var creates a belongsTo association between this and another Model
1 258 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 257 posted 13 years ago by jesse
This is the basic edit action suggested by the CakePHP Manual
1 227 posted 13 years ago by jesse
2 325 posted 13 years ago by halbtuerke
0 305 posted 14 years ago by haimuiba
reference for create own ajax helper in CakePHP
1 338 posted 14 years ago by juno