How to customize a 404 error page in Codeigniter 2.1.4 using base_url()?

Asked

Viewed 1,041 times

7

I would like to use a página de erro 404 but when accessing an image using the function base_url() does not work. How to solve?

1 answer

7


It happens a lot in the community.
To use the method base_url() of the helper url_helper, in the directory below:

/application/errors/

Use this method:

<?= config_item('base_url') ?>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.