Welcome Guest, Not a member yet? Register   Sign In
Dynamically generated URLs
#1

[eluser]omed habib[/eluser]
I'm creating URLs dynamically that pull from the existing (dynamically) generated URL. My question is, is there a cleaner way to do the following:
Code:
<a href="&lt;?=site_url()?&gt;/store/&lt;?=$this->uri->segment(2)?&gt;/&lt;?=url_title($Product['name'])?&gt;">
The current URI is: store/hats/1

And I want to create just add another two dynamic variables to the end of it, such as:

store/hats/productnumberone/23
#2

[eluser]omed habib[/eluser]
[quote author="omed" date="1195883134"]I'm creating URLs dynamically that pull from the existing (dynamically) generated URL. My question is, is there a cleaner way to do the following:
Code:
<a href="&lt;?=site_url()?&gt;/store/&lt;?=$this->uri->segment(2)?&gt;/&lt;?=url_title($Product['name'])?&gt;">
The current URI is: store/hats/1

I want to just add another two dynamic variables to the end of it, such as:

store/hats/productnumberone/23[/quote]




Theme © iAndrew 2016 - Forum software by © MyBB