php - understanding CodeIgniter url helper, anchor -
i'm having difficalties understanding ci url helper.
i want generate url this
<a href="/company/aboutus" title="about us">about us</a>
i tried following
<?=anchor("company/aboutus",lang('aboutcompany'), "title=lang('aboutcompany')")?>
first 2 segments ok, url address , name of link. problem title, rendered lang('aboutcompany')
what problem here?
use problem. use array attributes in third parameter. instead of usuall call use site_url()
helper
<?= anchor(site_url('company/aboutus'),lang('aboutcompany'), array('title' => lang('aboutcompany'))) ?>
Comments
Post a Comment