unset_list
- Single Page
Posted 24 March 2012 - 21:43 PM
Another arb request - anyway there is a unset_list() method? Basically the user will only be able to see the edit page and edit / view his data here. I ahve already unset the delete and add. I used jQuery to hide the "Back to list" text but was wondering if there is a built in function? Or do you see this is rather useless
EDIT: Oh ya also when you press cancel to change the redirect URL?
thanks!!!!
Posted 25 March 2012 - 12:33 PM
It was just that it was not so quick to do as I need to remove the back to list go back on update, the cancel button and small things like that. Perhaps I will add it to the next version , we 'll see. It always depends of how much time I have.
Thanks
Posted 25 March 2012 - 17:17 PM
I did something like this for now to force them to always see the edit page:
if($this->uri->segment(4) != $this->Globals->get_client_id()) {
redirect('profile/index/edit/'.$this->Globals->get_client_id());
}
The delete and add have been unset, and if it doesn't detect an ID in the URI then it forces to redirect. This for now solves me needs. I totally get you on the laziness part haha....Grocery CRUD has changed the way I do things now time is valuable - quicker code gets done the better!!!!
Posted 27 March 2012 - 03:19 AM
Gotta write a lot of fields or make the ones i dont want hidden.
Im also ansious for the READ part in the groceryCRUD(native). As soon as i get my international credit card(and some money), i will surelly make a donation for your project.
Thanks for the work! I appreciate it.
Posted 27 March 2012 - 19:24 PM
And yes you are right. The unset_field, unset_add_field and unset_edit_field will be useful too. Not promising anything but probably will be at the next version .
Posted 27 March 2012 - 20:34 PM
Here is your unset_add_fields, unset_edit_fields and unset_fields - https://github.com/s...0b87a70e304228f
I think you don't need any documentation for how to use it.
Posted 28 March 2012 - 03:40 AM
Not promising anything but probably will be at the next version .
[/quote]
1 Hour later... Here is your(not mine, maybe our?) unset_add_fields, unset_edit_fields and unset_fields - https://github.com/s...0b87a70e304228f
Im already using it, hehe. Thanks for the attention.