[eluser]CodeIgniteMe[/eluser]
Just not to confuse any newbies...
[quote author="shoelessone" date="1309387615"]
going to /site/scores calls site_controller->scores()
The Site controller’s function scores() loads the site_model, then does something like $scores = $this->site_model->getScores();
The site controller then passes $scores to the view (say scores_view.php), which loops through the $scores and prints out a list of the sites scores.
[/quote]
must be edited into
Quote:going to /site_controller/scores calls site_controller->scores()
//site_controller URI calls site_controller controller
The Site controller’s function scores() loads the site_model, then does something like $data['scores'] = $this->site_model->getScores();
// store the result in an array if you want to pass it to your view
The site controller then passes $scores to the view (say scores_view.php), which loops through the $scores and prints out a list of the sites scores.