image link |
[eluser]-spy-[/eluser]
guys...using this framework..how can i make images as link..tnx
[eluser]xwero[/eluser]
you mean something like below? Code: <a href="http://codeigniter.com/forum"><img src="http://codeigniter.com/themes/forum_themes/support/images/ci_logo.gif" alt="forum"></a>
[eluser]-spy-[/eluser]
like this Code: <?=anchor('home','Home',array('id'=>'homenav'));?>
[eluser]-spy-[/eluser]
sorry about this..just a beginner in web development(OOP), tnx for the information..n_n
[eluser]xwero[/eluser]
isn't Code: <?=anchor('home','<img src="http://codeigniter.com/themes/forum_themes/support/images/ci_logo.gif" alt="forum">',array('id'=>'homenav'));?> you could add a new helper function and a config item to do something like this Code: function img_anchor('home','ci_logo.gif',array('id'=>'homenav'),array('alt'=>'forum')); But it seems a lot of parsing for something you can write in your view as Code: <a href="<?=$url;?>" <?=$urlattributes;?>><img src="<?=$src;?>" <?=$imgattributes;?>></a> edit : it wouldn't work because i didn't add the image to the image url it's fixed now.
[eluser]Sawariya[/eluser]
yes Mr xwero it will work.. i am using same thing ..
[eluser]Unknown[/eluser]
Where is image http://codeigniter.com/themes/forum_them...i_logo.gif actually (physically) located? |
Welcome Guest, Not a member yet? Register Sign In |