Welcome Guest, Not a member yet? Register   Sign In
Need Help
#1

[eluser]phpfresher[/eluser]
How do i add id to these syntax:

<?php echo anchor('user/new_holiday_request/reject_holiday/'.$new_holiday_request_detail['id'][$i],'Reject');?>
#2

[eluser]InsiteFX[/eluser]
It really depends on what you are doing which you did not specify!

If you are trying to create multiple anchors then you would need to use a for or foreach loop to loop through the id's.

InsiteFX
#3

[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...elper.html

Quote:The first parameter can contain any segments you wish appended to the URL. As with the site_url() function above, segments can be a string or an array.

Note: If you are building links that are internal to your application do not include the base URL (http://...). This will be added automatically from the information specified in your config file. Include only the URI segments you wish appended to the URL.

The second segment is the text you would like the link to say. If you leave it blank, the URL will be used.

The third parameter can contain a list of attributes you would like added to the link. The attributes can be a simple string or an associative array.




Theme © iAndrew 2016 - Forum software by © MyBB