Welcome Guest, Not a member yet? Register   Sign In
Beginner can't load Controller and Model (first day)
#11

[eluser]LuckyFella73[/eluser]
Try to add a trailing slash:

Code:
// config.php
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
|    http://example.com/
|
*/

$config['base_url']  = "http://localhost/LearningFrameWork/";
#12

[eluser]Eric Barnes[/eluser]
Quote:I don’t even know what i’m doing wrong. All i did is just copy paste all codeIgniter files to htdocs and then i edit the config.php (i mention this earlier) and then tried opening http://localhost/LearningFrameWork/ (it works), but when i tried opening other files, there is always this error:

You only open the index.php file in the browser. To access other controllers by default you would use: yoursite/index.php/mycontroller




Theme © iAndrew 2016 - Forum software by © MyBB