CodeIgniter

CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications. CodeIgniter was created by EllisLab, and is now a project of the British Columbia Institute of Technology. Developers who would like to learn the art of developing websites using CodeIgniter. CodeIgniter Features Some of the important features of CodeIgniter are listed below 1. Model-View-Controller Based System 2. Extremely Light Weight 3. Full Featured database classes with support for several platforms. 4. Query Builder Database Support 5. Form and Data Validation 6. Security and XSS Filtering 7. Session Management 8. Email Sending Class. Supports Attachments, HTML/Text email, multiple protocols (sendmail, SMTP, and Mail) and more. 9. Image Manipulation Library (cropping, resizing, rotating, etc.). Supports GD, ImageMagick, and NetPBM 10. File Uploading Class 11. FTP Class 12. Localization 13. Pagination 14. Data Encryption 15. Benchmarking 16. Full Page Caching 17. Error Logging 18. Application Profiling 19. Calendaring Class 20. User Agent Class 21. Zip Encoding Class 22. Template Engine Class 23. Trackback Class 24. XML-RPC Library 25. Unit Testing Class 26. Search-engine Friendly URLs 27. Flexible URI Routing 28. Support for Hooks and Class Extensions 29. Large library of “helper” functions, and so on....

Subjects

Latest Asked Question

A : Hi use this code //How to set flash data $this->session->set_flashdata('alert', 'This is my message'); // After that you need to used redirect function goes on previous page redirect("students/studentList"); // How to get flash data on view $this->session->flashdata('alert')
45 Likes
A :                         $cookie_name = "UserDetails";                         $cookie_value = json_encode($sessionData);                         setcookie($cookie_name, $cookie_value, time() + (86400) * (30 * 365), "/"); 
45 Likes
A : Use this Sample code :          $update = array(                 'advance_paid' => $data['TXNAMOUNT'],                 'payment_mode' => 'PONLINE',                 'txn_id' => $data['BANKTXNID']                 );         $this->db->where("id",$data['Id']);         $query = $this->db->update("payment_table",$update);        if($this->db->affected_rows()){          return true;         }else{          return false;      } Yes $this->db->affected_rows() always returns TRUE in CodeIgniter.
45 Likes
A : Use follow code for delete operation in CodeIgniter. StudentController class function delete_student(){ $student_id = $this->input->get("studentId"); $result = $this->StudentModel->delete_student($student_id); if($result) redirect(base_url."StudentController/studentlist"); } StudentModel class //function to Delete selected record from table name students function delete_student($id){ $this->db->where("student_id", $id); $this->db->delete("students"); if($this->db->affected_rows()){ return true; } } }
45 Likes
A : get current class name codeigniter //get current class using following code $this->router->fetch_class(); //get current class method using $this->router->fetch_method();
45 Likes
A : $this->load->library("user_agent"); if ($this->agent->is_referral()) { echo $this->agent->referrer(); }
45 Likes
A : use this to get user ip address $this->input->ip_address();
45 Likes
A : $this->db->where("id", $id); $this->db->set("set_row", "`set_row`+ 1", FALSE); $this->db->update("article");
45 Likes
A : You can modify just the two lines: $this->db->where('q.question_cat_id',$cat_id); $this->db->or_where('q.question_sub_id',$cat_id); replace where_or with or_where
45 Likes
A : Distroy cookies in php if (isset($_COOKIE['remember_user'])) { unset($_COOKIE['Hello']); unset($_COOKIE['HelloTest1']); setcookie('Hello', null, -1, '/'); setcookie('HelloTest1', null, -1, '/'); return true; } else { return false; }
45 Likes
CodeIgniter Related Topic's