CakePHP: Fields not populating in Edit screen
问题 Simple question from an absolute n00b. I'm trying to create an edit content screen based on the code given in the Blog Tutorial on the Cake site. Here's my edit function in the controller (it's named Contents): function edit( $id = null ) { $this->Content->id = $id; Debugger::dump( $this->Content->id ); if( empty( $this->data ) ) { $this->data = $this->Content->read(); Debugger::dump( $this->Content ); } else { if( $this->Content->save( $this->data ) ) { $this->Session->setFlash( 'Content has