Welcome Guest, Not a member yet? Register   Sign In
form_validation error
#2

This is a template class for using the CodeIgniter Super Object.

PHP Code:
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

/**
 * ---------------------------------------------------------------
 * Editor   : PhpStorm
 * Date     : 8/25/2017
 * Time     : 7:13 AM
 * Authors  : Raymond L King Sr.
 * ---------------------------------------------------------------
 *
 * Class        Register
 *
 * @project     citest
 * @author      Raymond L King Sr.
 * @link        http://www.procoversfx.com
 * @copyright   Copyright (c) 2009 - 2017 Custom Software Designers, LLC.
 * @license     http://www.procoversfx.com/license
 * ---------------------------------------------------------------
 */


class Register
{
    
/**
     * Class variables - public, private, protected and static.
     * -------------------------------------------------------------------
     */

    /**
     * @var  CI_Controller
     * CodeIgniter's Super Object - this is the correct way to use it
     * Access using $this->CI->method
     */
    
protected $CI;

    
/**
     * __construct ()
     * -------------------------------------------------------------------
     *
     * Class    Constructor
     *
     * NOTE:    Not needed if not intializing class or variables.
     */
    
public function __construct()
    {
        
$this->CI =& get_instance(); 
    }

    
  // End of Register Class.


/**
 * ---------------------------------------------------------------
 * Filename: Register.php
 * Location: ./application/libraries/Register.php
 * ---------------------------------------------------------------
 */ 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
form_validation error - by Stormkeeper - 08-24-2017, 08:33 AM
RE: form_validation error - by InsiteFX - 08-25-2017, 04:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB