• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with load driver

#1
[eluser]Halan Batista[/eluser]
Hello!

I want to use the Minify in my site, but I'm with problem....

My controller:
Code:
class Home extends Controller
{
    public $data = array();
    public function __construct()
    {
        parent::__construct();
  
  $this->load->driver('minify');
  $csss = $this->minify->combine_directory('/css/');
  $this->minify->save_file($csss,'assets/compressed/style.css');
  $jss =$this->minify->combine_directory('/js/');
  $this->minify->save_file($jss,'assets/compressed/scripts.js');  
                
  //seta o layout padrão
  $this->layout->setLayout('adoroviagem');
  
          
  // habilita variaveis por $_GET
                parse_str($_SERVER['QUERY_STRING'],$_GET);
  
    }


Return the error =>

Fatal error: Call to undefined method CI_Loader::driver() in /Applications/XAMPP/xamppfiles/htdocs/www/adoroviagem/system/application/app-av/controllers/revista.php on line 20

What's happen??


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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