Welcome Guest, Not a member yet? Register   Sign In
Call to undefined function base_url() in the error_404 page
#5

(04-02-2015, 12:54 PM)jhonatan4878 Wrote:
(04-02-2015, 12:31 PM)gadelat Wrote: add url helper to autoloader

By default I've set my autoloader with the url helper. The base_url() function works with views in other folders, but in the html one don't.

Manually load the url_helper.php inside the error_404.php file:

PHP Code:
require_once BASEPATH '/helpers/url_helper.php'
Reply


Messages In This Thread
RE: Call to undefined function base_url() in the error_404 page - by pdthinh - 07-24-2015, 09:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB