Revision: 14449
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 4, 2009 11:44 by sveggiani
Initial Code
function index( $year = null ){ // ultimo newsletter activo $last_newsletter = $this->Newsletter->find( 'first', array('conditions' => array('Newsletter.id IS NOT NULL') ) ); $this->set('last_newsletter', $last_newsletter); }
Initial URL
Initial Description
When you have a URL like this http://mysite/newsletters/index/2007 The find('first') method adds the 2007 value as ID parameter WTF!?
Initial Title
Avoid Cakephp auto adding ID parameter in some finds
Initial Tags
cakephp
Initial Language
PHP