I have a fatal error
Call to undefined function url()
But I have
$autoload['helper'] = array('url');
I my autoload.php
I am pretty new to CI. In advance, sorry my lack of understanding
I have a fatal error
Call to undefined function url()
But I have
$autoload['helper'] = array('url');
I my autoload.php
I am pretty new to CI. In advance, sorry my lack of understanding
There is no error with it.
So if you calling your base url, then you have to use base_url() keyword.
And in config/config.php file
For example
If you use <a> tag lke this
<a href="root_folder_name/file_name
But now with Codeigniter MVC
<a href="<?php echo base_url() ?>controller_name/method_name
<?php echo url('write something', 'test/write'); ?> Isn't it the thing to do ?<?php echo base_url() ?>/test/write