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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -