CodeIgniter Lab
CodeIgniter Lab
com
Outline
- References (http://bit.ly/1fofKSV) - Lab 01: Introduction CodeIgniter 2.1.3 - Lab 02: HMVC - Lab 03: Grocery CRUD 1.3.3 - Lab 04: Eden Library 3.1 - Lab 05: Doctrine 2
Github
https://github.com/leonguyen/CILab
Lab 01
Introduction to CodeIgniter
Outline
- Download and config CI - Write a Hello world program
Exercise 1
CodeIgniter
Task 1 - Download CI
- Goto CI download site http://ellislab.com/codeigniter/userguide/installation/downloads.html
Task 2 - Unzip CI
- Unzip CI zip file.
Task 7 - Run CI
- Enter the url http://localhost/cilab/ on the browser.
Task 8 - Userguide CI
- Enter the url http://localhost/cilab/user_guide/ on the browser.
Exercise 2
Lab 02
HMVC
HMVC (cont)
- Modularization: Reduction of dependencies between the disparate parts of the application. - Organization: Having a folder for each of the relevant triads makes for a lighter work load. - Reusability: By nature of the design it is easy to reuse nearly every piece of code. - Extendibility: Makes the application more extensible without sacrificing ease of maintenance.
Outline
- Download and config HMVC modular. - Create sample 'Foo' modules.
Exercise 1
Exercise 2
Lab 03
Grocery CRUD
Intro
- Grocery CRUD is a library that makes a developer's life easier. Just few lines of code and you can create a full stable CRUD with nice views. A totally automatic system that even a newbie in PHP can work with.
Task 1: Download
- Go to www.grocerycrud.com
Task 2: Installation
- Unzip 'grocery_CRUD.zip' and copy all files to your CI project.
Task 4: Run
- Enter the url http://localhost/CILab/examples/ on the browser.
Lab 04
Eden Library
Intro
- Eden is a PHP library designed for rapid prototyping, with less code. Yes, Really. - Eden simply a set of reusable components, that works with any PHP framework and CMS. Eden makes code logical and readable with dead simple syntax.
Task 1: Download
- Go to www.eden-php.com
Task 2: Installation
- Unzip 'eden.zip' and copy all files to 'libraries' folder of your CI project.
Task 4: Run
- Enter the url http://localhost/CILab/edenhello/ on the browser. Note: You have access to a server with at least PHP 5.3.x
Lab 05
Doctrine 2
Intro
- Doctrine is a very powerful ORM in php and it is possible to easily integrate and use doctrine with codeigniter as ORM
Task 1: Download
- Go to github.com/doctrine and download + ORM: github.com/doctrine/doctrine2 + Common: github.com/doctrine/common + DBAL: github.com/doctrine/dbal and Cache, Annotations, Lexer