Codeigniter is a PHP MVC framework that is small, fast, and promotes cleaner code through its MVC architecture and features. It provides a standardized file structure and URL routing. Models handle database operations, views generate HTML output, and controllers contain business logic and load views. Codeigniter also includes libraries for common tasks like interacting with Twitter and checking for spam comments, and supports many third party libraries.
6. CI Models<?phpclass User_Model extends CI_Model {[] function getAllActiveUsers($id) { [] $this->db->from(users); $this->db->where(active, true); return $this->db->get()->result(); }}CRUD operations on database.
7. CI - Views<body><h1>Welcome to CodeIgniter!</h1><p>The page you are looking at is being generated dynamically by CodeIgniter.</p></body>HTML content, output to browser.
8. CI - Controllersclass Welcome extends CI_Controller { function index() { $this->load->view('welcome_message'); }}Business Logic, Validations
9. CI Twitter LibraryFetch public timeline<?php$this->load->library('twitter');$this->twitter->call('get', 'users/show', array('screen_name' => interviewstreet'));?>Search$this->twitter->search(array('q' => helloworld'));
10. CI Askimet Library$this->load->library('akismet');$comment =array('comment_author' => Harishankaran','comment_author_email' => hari@interviewstreet.com','comment_content' => 'So, can you check if this comment is a spam.');$status = $this->akismet->check($comment);
11. And lots moreCalendarShopping cartEmailEncryptionFile UploadImage ManipulationPaginationXML-RPCand many many more 3rd party libraries