Our View: get.php
<?php
echo heading('Retrieve Data', 2);
// print out table
echo $datagrid;
// print out pagination
echo $pagination;
Our View: update.php
<?php
echo heading('Form', 2);
echo form_open(current_url());
// echo the generated form
echo $form;
// echo any error on insert or update
echo $error;
echo form_submit('submit', 'Send');
echo form_close();
As you can time to code our views especially for form validation process has been cut into half.
Conclusion
This is not the best approach and may not be suitable to some scenarios. However by using this class/library you can definitely make better use of the development time by automating some of the frequently repeating process. By far I only showed you one of the possible ways to utilize the CRUD Library. I hope I would be able to share with you in another time.



Recent Comments