Thursday, July 15, 2010

error in documentation of php-cake blog tutorial

hii !!
recently while working over php-cake I found that "delete" action was not working.
After some debugging & rolling over documentation; I found that "id" was not set in a proper way.
here goes the solution:
Replace

echo $html->link('Delete', array('action' => 'delete', 'id' => $post['Post']['id']), null, 'Are you sure?' )?>

to

link('Delete', array('action' => 'delete', $post['Post']['id']), null, 'Are you sure?' )?>

Sorry to say but php-cake has a real poor community; even basic tutorials are not updated on site. It lack far behind in community support as compared to ROR.

kind regards!!