How to prevent user from being able to add new entries in a standard CRUD View in Agile Toolkit?
$this->add('CRUD')->setModel('User');
How to prevent user from being able to add new entries in a standard CRUD View in Agile Toolkit?
$this->add('CRUD')->setModel('User');
CRUD has a property $allow_add
which would disable add functionality. You should use this code to set the initial value of object property in Agile Toolkit:
$this->add('CRUD',array('allow_add'=>false))->setModel('User');
Alternatively you can use Grid, if you don't wish to have editing or you want to customize editing page:
$this->add('Grid')->setModel('User');