• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.