06-30-2008, 05:48 AM
[eluser]Wittner[/eluser]
Hi,
I'm building as part of an application, a booking engine. A diary view is presented to the user with hyperlinks on each date. If they wish to make a booking they click on the date's link and a dhtml pop-up window appears with some of the data pre-loaded (that's the theory anyhow!). I'm a newbie to mvc, OOP and CodeIgniter. In my old procedural days (last month!) I would have passed an id code and date for instance to the new window using this kind of structure in the link:
Codeigniter handles things differently, using segments. My question is, how do I pass these two (or more) variables to a new window using CodeIgniter best practice? Do I need to use a form instead of a link? Can CI handle multiple segments such as:
I'm just looking for guidance for 'best practice' not necessarily code. A pointer in the right direction would be great!
(code samples above simplified for clarity)
cheers,
Wittner
p.s. I should mention that I'm in love with CodeIgniter. Don't know what I did without it before ;-)
Hi,
I'm building as part of an application, a booking engine. A diary view is presented to the user with hyperlinks on each date. If they wish to make a booking they click on the date's link and a dhtml pop-up window appears with some of the data pre-loaded (that's the theory anyhow!). I'm a newbie to mvc, OOP and CodeIgniter. In my old procedural days (last month!) I would have passed an id code and date for instance to the new window using this kind of structure in the link:
Code:
<a >4/08/2008</a>
Codeigniter handles things differently, using segments. My question is, how do I pass these two (or more) variables to a new window using CodeIgniter best practice? Do I need to use a form instead of a link? Can CI handle multiple segments such as:
Code:
<a >4/08/2008</a>
I'm just looking for guidance for 'best practice' not necessarily code. A pointer in the right direction would be great!
(code samples above simplified for clarity)
cheers,
Wittner
p.s. I should mention that I'm in love with CodeIgniter. Don't know what I did without it before ;-)