Code Igniter
Today is the first day I start working on Victor's website and it's the first time I start learning the Code Igniter Framework. I watched the two videos and went through the sample of creating a Blog in 20 minutes, then I start implementing the website. It's the first time I use the Model-View-Controller (MVC) approach to build a website and I found the concept of using segments in the URL to represent the MVC approach is interesting. The URI segments is like:
www.your-site.com/class/function/ID
- The first segment represents the controller class that should be invoked.
- The second segment represents the class function, or method, that should be called.
- The third, and any additional segments, represent the ID and any variables that will be passed to the controller.
I also encountered some problems which were tough to a newbie like me:
- I couldn't make the views and controllers work if they are in the subfolders of /views/ and /controllers/.
- I couldn't make the form validation work.
- Database class - very fast abstracted class and support Active Record patterns.
- Pagination class - very easy to customize, but it is a little tricky to make it work with database query. Here is the hint.


0 Comments:
Post a Comment
<< Home