11-04-2014, 02:19 AM
Fatal error: Call to undefined function anchor() in C:\xampp\htdocs\CI202-CRUD\application\controllers\welcome.php on line 13
controllers/welcome.php
I already autoload the helper:
autoload.php
I wonder how to fix the error?
controllers/welcome.php
PHP Code:
class Welcome extends CI_Controller {
function __construct()
{
// parent::__construct();
// $this->load->helper(array('html','form', 'url'));
}
public function index()
{
$data = array(
'title' => 'Welcome Profile Edit',
'body' => anchor(base_url().'member_area/', 'Member area')
);
$this->load->view('_output_html', $data);
}
I already autoload the helper:
autoload.php
PHP Code:
$autoload['helper'] = array('html','url','form');
I wonder how to fix the error?
" If I looks more intelligence please increase my reputation."