Skip to content

Commit

Permalink
Replaced confusing controller prefixes to CI_ due there is no such cl…
Browse files Browse the repository at this point in the history
…ass like MY_Controller
  • Loading branch information
mrhyde committed Mar 24, 2012
1 parent 89face3 commit 8fd2108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This is the basic structure of a HMVC module:
From within a module you can load its own resources just like you always do. If on the other hand, you want to load resources from another module you can do this by adding the module's name like a directory structure:

class Hello extends MY_Controller {
class Hello extends CI_Controller {
public function index() {
// load a model from the current module
Expand Down Expand Up @@ -76,7 +76,7 @@ To load hierarchical controllers you use the `$this->load->controller()` method.

For example, this is our main controller where we pass the request to a sub-controller in the same module:

class Specials extends MY_Controller {
class Specials extends CI_Controller {
public function index() {
$this->load->controller('blogs/random', array('specials'));
Expand All @@ -86,7 +86,7 @@ For example, this is our main controller where we pass the request to a sub-cont

And the sub-controller contains the real method:

class Blogs extends MY_Controller {
class Blogs extends CI_Controller {

public function random($type) {
...
Expand Down

0 comments on commit 8fd2108

Please sign in to comment.