Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to install in Codelgniter

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 133
    Comment on it

    Hello Friends,

    If you are looking to install in Codelgniter. Please review the below process:

    Step 1 :: Download Codelgniter from "https://www.codeigniter.com/download"

    Step 2 :: Unzip this folder and place this on root folder

    Step 3 :: Rename this folder with your project name like I have rename this "mytutorial"

    Step 4 :: Now open "mytutorial/application/config/database.php" and set your

                   database detail here

    $db['default'] = array(
    	'dsn'	=> '',
    	'hostname' => 'localhost',    
    	'username' => 'root',       // CHANGE THE WITH YOUR DATABASE USERNAME
    	'password' => 'admin',      // CHANGE THE WITH YOUR DATABASE PASSWORD 
    	'database' => 'mytutorail', // CHANGE THE WITH YOUR DATABASE NAME
    	'dbdriver' => 'mysqli',
    	'dbprefix' => '',
    	'pconnect' => FALSE,
    	'db_debug' => (ENVIRONMENT !== 'production'),
    	'cache_on' => FALSE,
    	'cachedir' => '',
    	'char_set' => 'utf8',
    	'dbcollat' => 'utf8_general_ci',
    	'swap_pre' => '',
    	'encrypt' => FALSE,
    	'compress' => FALSE,
    	'stricton' => FALSE,
    	'failover' => array(),
    	'save_queries' => TRUE
    );

    Step 5 :: Now you can run your project on browser like my URL is "http://localhost/mytutorial"

    Currently this is calling from the "mytutorial/application/controllers/Welcome.php" as default controller. Now you can define your controller, model and view files and enjoy the Codelgniter. Suppose I have created a Controller named "Users.php" with it's model and view files. Now I can run my user controller  as "http://localhost/mytutorial/index.php/User"

     

    ******* To change default controller, please review http://findnerd.com/account/#url=/list/view/How-to-set-default-Controller-in-Codelgniter/16400/

     

    ******* To avoid index.php from your URL, please review http://findnerd.com/account/#url=/list/view/how-to-remove-index-php-in-codeigniter-url/16424/

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: