base_url() bug
Closed this issue · 2 comments
gscore42 commented
Within the controller if your try to echo or use base_url() without an argument passed in the parentheses (example: 'main/home'), u get a errors:
Message: Missing argument 1 for base_url(), called in path/to/controller on line # and defined
Filename: helpers/MY_url_helper.php
Line Number: 15
&&
Message: Undefined variable: uri
Filename: helpers/MY_url_helper.php
Line Number: 23
the base url is still generated though
sjlu commented
Hey,
So this is fixed on last commit. If you want, you can fix this easily by changing that line $uri
to $uri = null
.
gscore42 commented
thank you