Skip to content

Instantly share code, notes, and snippets.

@Rameshwar-ghodke
Last active April 1, 2017 13:18
Show Gist options
  • Save Rameshwar-ghodke/848f658f9bd56b7540f89153c754d495 to your computer and use it in GitHub Desktop.
Save Rameshwar-ghodke/848f658f9bd56b7540f89153c754d495 to your computer and use it in GitHub Desktop.
Change the config file base url as-
$config['base_url'] = 'http://localhost/';
after that change the database pathin database.php file in config folder as --
'hostname' => 'localhost',
'username' => 'root',
'password' => 'root',
'database' => 'login',
'dbdriver' => 'mysqli',
after that in route.php file in config folder through call the bydefault controller which is in controller folder as
welcome.php file
in above welcome.php file you just change the controller which you want to run on locahost as
public function index()
{
// $this->load->view('registration');
$this->load->view('registration');
}
Reference links : ------
https://code.tutsplus.com/tutorials/everything-you-need-to-get-started-with-codeigniter--net-2634
https://code.tutsplus.com/tutorials/everything-you-need-to-get-started-with-codeigniter--net-2634
for call the Modal in codegnitor you need to call this modal in file autoload.php as
eg :-
$autoload['model'] = array('Login'); // in that login is a modal which has the php code of login view
for create session we need to add seesion id into the library in autoload.php file as
eg :-
$autoload['libraries'] = array('database','session');
$autoload['helper'] = array('url');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment