CodeIgniter Forums

Full Version: Fatal error: Call to undefined method CI_Loader::libraries()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Rocky Mehta[/eluser]
page : hotel_overview.php
<?php
class Hotel_overview extends CI_Controller
{
function hotel_overview()
{
parent::CI_Controller();
}

function main()
{
$this->load->helper('form');
$this->load->helper('html');
$this->load->libraries('Menu');
$this->load->view('hotel_overview_view');
}
}
?>

Fatal error: Call to undefined method CI_Loader::libraries() in D:\www\vhosts\localhost\MeeraVenue\application\controllers\hotel_overview.php on line 13

please tell me why this error occurred..

El Forum

[eluser]CroNiX[/eluser]
library, not libraries Smile

El Forum

[eluser]InsiteFX[/eluser]
Because it is
Code:
$this->load->library('Menu');

// not
$this->load->libraries('Menu');

El Forum

[eluser]Rocky Mehta[/eluser]
oho thank x sir it's working now

your one sentence is very meaningful and useful

Input -> Controller | Processing -> Model | Output -> View
thank x ones again..