CodeIgniter
CodeIgniter Simple Login Form With Sessions
In this tutorial, we are going to learn about creating a simple login form in CodeIgniter. In login form, we made registration module, login module and admin panel using sessions. We also have a paid ready-to-use advance login & registration module built on CodeIgniter that you can check out at CodeIgniter Login Registration Form. Creating sessions […]
Fundamentals of Web Design
Designing a web site needs careful thinking and planning. The most important thing is to KNOW YOUR AUDIENCE. Users are Scanners A typical visitor will NOT read the entire content of your Web page! No matter how much useful information you put into a Web page, a visitor will only spend a few seconds scanning […]
Simple Pagination with CodeIgniter Framework and Bootstrap
Introduction Pagination is a feature that is used to restrict the display of the data that is not too long and neater. As seen in the illustration on the front of this article. Use pagination commonly used to display large amounts of data, so it can be separated / selected how the data will be […]
File Uploading System Using CodeIgniter
In This Tutorial I will discuss How to Make File Upload System Using PHP CodeIgniter Framework. At Essentially in CodeIgniter to do upload file we have given her class to help us developers, and this time we will discuss the class. Let’s discussed step by step below: Create upload_form.php file and place it in the […]
HTML Table Class in CodeIgniter
HTML Table Class The Table Class provides functions that enable you to auto-generate HTML tables from arrays or database result sets. Using the Table Class Initializing the Class Like most other classes in CodeIgniter, the Table class is initialized in your controller using the $this->load->library()method: $this->load->library(‘table’); Once loaded, the Table library object will be available […]
Active Record Pattern SELECT and INSERT Active record in CodeIgniter
Standard Insert $sql = “INSERT INTO mytable (title, name) VALUES (“.$this->db->escape($title).”, “.$this->db->escape($name).”)”; $this->db->query($sql); echo $this->db->affected_rows(); Active Record Query The Active Record Pattern gives you a simplified means of retrieving data: $query = $this->db->get(‘table_name’); foreach ($query->result() as $row) { echo $row->title; } The above get() function retrieves all the results from the supplied table. The Active […]
Database Quick Start: Example Code
The following page contains example code showing how the database class is used. For complete details please read the individual pages describing each function. Initializing the Database Class The following code loads and initializes the database class based on your configuration settings: $this->load->database(); Once loaded the class is ready to be used as described below. […]
Adding external (Menu) JavaScript, CSS and Images in a project using CodeIgniter
Originally posted on Technology Story:
Open config.php file (Under application/config folder) and change the following line $config[‘base_url’] = “”; to $config[‘base_url’] = “http://localhost/cimenu”; //here cimenu is the folder where all the files of CodeIgniter is Now open autoload.php file (Under application/config folder) and change the following line $autoload[‘helper’] = array(); to $autoload[‘helper’] = array(‘url’, ‘form’);…