> and < usually not allowed in and they especially are no operaters in this context the only operators in an url are in php in general / and & and = and ? and in cake / and :
if you want to use "greater" or "less" you will need to encode it some way to decode it afterwards. operation:lt or operation:gt etc (less than, greater than) On 12 Feb., 16:01, Tilen Majerle <[email protected]> wrote: > if i understand you good, then you want to get some values from GET method? > > like domain.com/controller/action?param1=value1¶m2=value2 > then you have this in $this->params['url']['param1'] and > $this->params['url']['param2'] > > then, if you have like domain.com/controller/action/value1/value2 > then when you create a method (action) in controller do this: > > function action($value1, $value2) > { > //do with them here, bacause they are passed into controller's method > > } > > and the last one... > if u have like domain.com/controller/action/param1:value1/param2:value2 > then you will have them in $this->params['named']['param1'] and > $this->params['named']['param2'] > > i hope you want to know this, what i told you...if not...explain more :D... > > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/2/12 Matthew McNaughton <[email protected]> > > > > > > > > > Greetings all, > > Thanks for a great framework(though you probably all hear that all the > > time). > > > I am building a RESTful api using cakephp. So I need to get the posted > > values from URL. cakephp deals with this particularly well for posted values > > such as: > > host.com/crops/view/$var1=xxx&$var2=xxx > > > But, I haven't figured out how to get other operators, such as ">" or "<". > > For example I want to know: > > host.com/crops/view/$var1>XX > > > I tried using the following: > > > - $this->params['pass'] > > - $this->params['url'] > > > ...but no luck. Any idea on how I can capture those operators? > > > You assistance would be greatly appreciated. > > > Regards, > > Matthew M > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
