[eluser]Maurice Calhoun[/eluser]
Derek,
Yes, I know I can call db->get() from the controller, but I would like to keep the same name convention...
If I have a Model name Post, and inside a method name "show_last_ten" the syntax would look like this ...
Code:
$this->post->show_last_ten();
Now the ActiveRecord has a method 'get', but in the controller the syntax is...
I would like to do (the same as ActiveRecord)....
but without having to re-create the 'get' method in my Model
Do that make any sense? I just want to keep the same naming convention, this just looks funny to me in the controller...
Code:
$this->db->get();
$this->post->show_last_ten();