Speed up development with full-stack environments for every branch.

Learn More

How to do Ajax in Codeigniter [PHP]

24621 Runs 100992 Views 18393 Copies
Saved

Saved

praful 60

praful
published 4 years ago

    <?php
    /**
     * CodeIgniter
     *
     * An open source application development framework for PHP 5.2.4 or newer
     *
     * NOTICE OF LICENSE
     *
     * Licensed under the Academic Free License version 3.0
     *
     * This source file is subject to the Academic Free License (AFL 3.0) that is
     * bundled with this package in the files license_afl.txt / license_afl.rst.
     * It is also available through the world wide web at this URL:
     * http://opensource.org/licenses/AFL-3.0
     * If you did not receive a copy of the license and are unable to obtain it
     * through the world wide web, please send an email to
     * [email protected] so we can send you a copy immediately.
     *
     * @package		CodeIgniter
     * @author		EllisLab Dev Team
     * @copyright	Copyright (c) 2008 - 2013, EllisLab, Inc. (http://ellislab.com/)
     * @license		http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
     * @link		http://codeigniter.com
     * @since		Version 1.0
     * @filesource
     */
    defined('BASEPATH') OR exit('No direct script access allowed');
    
    class Welcome extends CI_Controller {
    
    	/**
    	 * Index Page for this controller.
    	 *
    	 * Maps to the following URL
    	 * 		http://example.com/index.php/welcome
    	 *	- or -
    	 * 		http://example.com/index.php/welcome/index
    	 *	- or -
    	 * Since this controller is set as the default controller in
    	 * config/routes.php, it's displayed at http://example.com/
    	 *
    	 * So any other public methods not prefixed with an underscore will
    	 * map to /index.php/welcome/<method_name>
    	 * @see http://codeigniter.com/user_guide/general/urls.html
    	 */
    	public function index()
    	{
    		$this->load->view('form-view');
    	}
    }
    
    /* End of file welcome.php */
    /* Location: ./application/controllers/Welcome.php */
    Please login/signup to get access to the terminal.

    Your session has timed out.

    Dismiss (the page may not function properly).