Welcome Guest, Not a member yet? Register   Sign In
Where is the best place to put this bit of code...
#3

[eluser]sanchothefat[/eluser]
Thanks for the tips. I'm happy just to use libraries at the moment, so I've got that working ok, but now it seems that the anchor() helper function is adding the url segments onto the current controller segment. eg:

anchor('user/jay','jays profile');

in default controller ->
Code:
<a href="/user/jay">jays profile</a>

in user controller ->
Code:
<a href="/user/user/jay">jays profile</a>


is this supposed to be like this? Can I make it work the same for every controller and if so some help doing it would be really appreciated. The way I need to use it would be possible for me to set a variable in the view with the anchor() functions in to make it think it's the default controller but I'm not so keen on that idea.

Thanks again, and for any further advice =]


Messages In This Thread
Where is the best place to put this bit of code... - by El Forum - 03-13-2008, 07:01 AM
Where is the best place to put this bit of code... - by El Forum - 03-13-2008, 08:10 AM
Where is the best place to put this bit of code... - by El Forum - 03-13-2008, 04:38 PM
Where is the best place to put this bit of code... - by El Forum - 03-13-2008, 05:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB