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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -