Watch this video to learn how to install laravel on windows xammp server
...
How to do form validation in codeigniter

Form validation in CodeIgniter using its form validation library
Before explaining CodeIgniter's approach to data validation, let's describe the ideal scenario:
A form is displayed.
You fill it in and submit it.
If you submitted something invalid, or perhaps missed a required item, the form is redisplayed containing your data along with an error message describing the problem.
This process continues until you have...
How to set cookie in codeigniter
Cookies in codeigniter
To use cookies in codeigniter we have to use its helper class.The Cookie Helper file contains functions that assist in working with cookies.
Below is the example to set cookies in get its values.So we create controller cookies_demo.php.Add the some method like the below example:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class cookies_demo extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('cookie');
}
//...
CodeIgniter From Scratch : Select records from database

Select records from database for CodeIgniter CRUD
In previous tutorials we learn how to set up out project directory for codeigniter crud.In this we learn how to fetch data from database using MVC of codegniter.
Let's go to our controller i.e. data.php and add some stuff to make CRUD work. Add the some method like the below example:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class data extends...
CodeIgniter From Scratch : Directory Setup for CRUD

Directory Setup And Database Setup For CodeIgniter CRUD.
Step 1: Download Codeigniter and check this Link to set up codeigniter
After Proper Setup Your Page get look like this as seen below
Step 2: Now we are ready to configure our database for our codeigniter project.To do that goto your codeigniter /appication/config/database.php.Open that file in your editor it will look like this.
<?php if ( ! defined('BASEPATH')) exit('No...
Powered by Blogger.