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

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -