• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple CRUD example

[eluser]Robertson Freitas[/eluser]
I just posted on my blog a simple CRUD example with pagination and validation using CodeIgniter 1.7.1:

The post is in Portuguese, but the code has comments in English.

My example uses this one as a base, which I consider a good model for those who are starting to learn CI:

I would greatly appreciate your opinion, particularly related to:

- Security
- Best practices
- Thin Model / Fat controller
- Validation

[eluser]Robertson Freitas[/eluser]
An update to this post, with some changes:

- The version of CodeIgniter was updated to 1.7.2.
- Layout settings moved to the right place.
- Use of the function set_value, as recommended in the manual.
- Small adjustments in the controller.

Good work.

The message library is overkill, look into using $this->load->vars() to pass your messages to the views.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.