Link to my page where grocery CRUD instance is, for example
index.php/users
.
When I add a new user, URL of the form is
index.php/users/index/add
, and I use link from external page, that points directly to
http://domain.com/index.php/users/index/add
to add new user without displaying the CRUD table first.
Now, I would like to set some default value via GET, for example
index.php/users/index/add?foo=bar
, and set some field's default value to bar if $_GET['foo'] is set.
How can I achieve this?