Return to Snippet

Revision: 23444
at February 8, 2010 00:15 by mattstopa


Initial Code
<?php

class Form extends Controller {
	
	function index()
	{
		$this->load->helper(array('form', 'url'));
		
		$this->load->library('validation');
				
		if ($this->validation->run() == FALSE)
		{
			$this->load->view('myform');
		}
		else
		{
			$this->load->view('formsuccess');
		}
	}
}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Code Igniter Validation 2 - Proper Version

Initial Tags

                                

Initial Language
PHP