Skip to content

Commit

Permalink
Now supports lazy loading of models and classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Nov 2, 2009
1 parent 2904cb8 commit 920a65e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/Cache.php
Expand Up @@ -67,6 +67,7 @@ private function reset()
*/
public function library($library, $method, $arguments = array(), $expires = null)
{
$this->ci->load->library($library);
return $this->call($library, $method, $arguments, $expires);
}

Expand All @@ -78,6 +79,7 @@ public function library($library, $method, $arguments = array(), $expires = null
*/
public function model($model, $method, $arguments = array(), $expires = null)
{
$this->ci->load->model($model);
return $this->call($model, $method, $arguments, $expires);
}

Expand Down

0 comments on commit 920a65e

Please sign in to comment.