Skip to content

Update Grocery_CRUD.php#484

Open
peppelauro wants to merge 1 commit intoscoumbourdis:masterfrom
peppelauro:patch-1
Open

Update Grocery_CRUD.php#484
peppelauro wants to merge 1 commit intoscoumbourdis:masterfrom
peppelauro:patch-1

Conversation

@peppelauro
Copy link

Allow the overriding of views so you can customize the CRUD forms as you need

Allow the overriding of views so you can customize the CRUD forms as you need
Akir4d added a commit to Akir4d/ci_boostrap_3 that referenced this pull request Mar 20, 2020
link: scoumbourdis/grocery-crud#484 (comment)

This the description:
	 * Set custom views: allow to override default views as edit.php, add.php, ...
	 * $views is an associative array like ('edit.php' => 'myedit.php', 'add.php'=>'myadd.php)

Also added an example myedit.php on my theme, to call it just do;
$crud->set_custom_views(array('edit.php' => 'myedit.php'));
@Akir4d
Copy link

Akir4d commented Mar 20, 2020

It works great, I just added this patch on my github fork and installed one example at https://github.com/Akir4d/ci_boostrap_3

@peppelauro
Copy link
Author

I works great, I just added this patch on my github fork and installed one example at https://github.com/Akir4d/ci_boostrap_3

Thanks, I am so happy to hear that it is useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants