How to prevent user from being able to add new entries in a standard CRUD View in Agile Toolkit?
$this->add('CRUD')->setModel('User');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CRUD has a property
$allow_addwhich would disable add functionality. You should use this code to set the initial value of object property in Agile Toolkit:Alternatively you can use Grid, if you don’t wish to have editing or you want to customize editing page: