Welcome To Snipplr
Everyone's Recent Snippets Tagged cakephp
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
[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
877
posted 15 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
674
posted 15 years ago by sveggiani
This code within your CakePHP Controller to include a Model.
0
695
posted 15 years ago by jdbartlett
This code within your CakePHP controller to include a component.
0
640
posted 15 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
616
posted 16 years ago by madmanlear
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0
1043
posted 16 years ago by zingo
This class var creates a belongsTo association between this and another Model
1
656
posted 16 years ago by jesse
This class var definition configures a Model to have a OneToOne relationship with a Model of another class.
1
647
posted 16 years ago by jesse