[eluser]Ram Krishna[/eluser]
i have a controller code for uploading file.
Code:
<?php
class Quote extends CI_Controller{
function index()
{
$this->load->view('request_quote_form');
}
function quote()
{
$config['upload_path']='./uploads/';
$config['file_ext']='.doc/.docx/.pdf/.txt/.jpg';
$config['file_size']='2048';
$this->load->library('upload', $config);
}
}
?>
It is giving error-
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Quote::$load
Filename: controllers/quote.php
the 12th line is
$this->load->library('upload', $config);
Line Number: 12