automatically pass $url to views? |
[eluser]chr1831[/eluser]
How can I automatically pass $this->config->item('base_url'); to every view as $url? I thought about doing an array_merge and storing it in var $data in the class, but then I figured it would be pointless because I would still have to type it in each controller...
[eluser]umefarooq[/eluser]
use base_url helper function check this user guide will help you http://ellislab.com/codeigniter/user-gui...elper.html
[eluser]chr1831[/eluser]
*bows before umefarooq* I have been trying to extend the viewer class all day... Some how I missed the top few functions earlier when I went browsing the page. Thanks, Chr1831 |
Welcome Guest, Not a member yet? Register Sign In |