Codeigniter
Downloading and Installing CodeIgniter In this tutorial i am going to explain how to install and configure codeigniter. Lets start by downloading CodeIgniter.Go to http://codeigniter.com/downloads/ and download the latest version of Codeigniter. Current latest version is 2.0 and it has some changes in the way it is used compared to previous versions. Now extract [...]
Introduction to PHP Templates with Codeigniter Parser and Views Templates in php are used to separate user interface html code from the server side php code. Main functionality in templates is to separate the design elements so that even designers can change the templates without bothering about php code. Hence both the programmers and designers [...]
Set and Get Codeigniter Session Variables in Controllers Codeigniter provides a built in session library to manage all the session related activities in your application. Since most parts of your applicationion requires session handling, its better to load the session library automatically by configuring in the autoload.php file. Otherwise you will have to load the [...]
Introduction to Codeigniter htaccess and Url Codeigniter framework handles all the request through the index.php file. So the index.php file is included in the urls. We can improve the search engine optimization of the page by having clean and meaningful url. Consider the sample url given below. http://www.example.com/index.php/blog/my_post_title Above url will call the my_post_title method [...]
Codeigniter session timeout value is specified in the config.php file inside the config directory. You can change the default value of 7200 seconds to any value you want using the sess_expiration variable. Session timeout can be avoided by setting the value to 0. // Session will expire in 10 seconds $config['sess_expiration'] = 10; // Session [...]
Introduction to Codeigniter Form Validation In this post i am going to discuss about the various methods of using the codeigniter validation library. Lets start by doing a simple example. Here is our form for this example. This form is contained in the view file.