Re: How to pass an array trough URL??

2010-04-14 Thread Alterego
I have the same problem, but your trick doesn't work for me in 1.3 RC3.. $passedArgs is empty.. Any ideas on how to pass an array in the URL? Johannes On 29 mrt, 18:04, toka...@gmail.com toka...@gmail.com wrote: I have solved it. pretty simple. examples.com/:controller/:action/?

Re: How to pass an array trough URL??

2010-04-14 Thread Alterego
This doesn't work for me in 1.3 RC3. Any ideas on how to pass an array to passedArgs in URL in Cake 1.3? Johannes (Sorry if this message appeared twice, I can't see if it's been posted already.) On 29 mrt, 18:04, toka...@gmail.com toka...@gmail.com wrote: I have solved it. pretty simple.

Re: How to pass an array trough URL??

2010-04-02 Thread toka...@gmail.com
the idea is to redistribute this to client where cake's library is not available... Thanks Miles J for help... Tomas On 1 dub, 19:15, Miles J mileswjohn...@gmail.com wrote: You should use cakes HttpSocket. http://book.cakephp.org/view/792/HttpSocket On Apr 1, 12:34 am, toka...@gmail.com

Re: How to pass an array trough URL??

2010-04-01 Thread toka...@gmail.com
Thanks your opinion. regarding the POST...do you think this is ok to use?? http://php.net/manual/en/function.fsockopen.php Thanks Tomas On 30 bře, 19:00, Miles J mileswjohn...@gmail.com wrote: It seems like this should be a POST. But besides that, it should work fine. On Mar 29, 11:41 

Re: How to pass an array trough URL??

2010-04-01 Thread Miles J
You should use cakes HttpSocket. http://book.cakephp.org/view/792/HttpSocket On Apr 1, 12:34 am, toka...@gmail.com toka...@gmail.com wrote: Thanks your opinion. regarding the POST...do you think this is ok to use?? http://php.net/manual/en/function.fsockopen.php Thanks Tomas On 30 bře,

Re: How to pass an array trough URL??

2010-03-30 Thread toka...@gmail.com
I am developing a simple public API where I need receive an array of data from other website. is there better way? no difficult to implement? Thanks Tomas On 29 bře, 19:02, Miles J mileswjohn...@gmail.com wrote: Is there a reason your passing data like this through URLs? What are you trying

Re: How to pass an array trough URL??

2010-03-30 Thread Miles J
It seems like this should be a POST. But besides that, it should work fine. On Mar 29, 11:41 pm, toka...@gmail.com toka...@gmail.com wrote: I am developing a simple public API where I need receive an array of data from other website. is there better way? no difficult to implement? Thanks

How to pass an array trough URL??

2010-03-29 Thread toka...@gmail.com
Hi, is there a chance to pass simple array via URL? http://example.com/name:John/name:Tom/name:Susan Then I should recieve back my array of names array('John', 'Tom', 'Susan'); Any idea how the URL should look like? Thanks Tomas Check out the new CakePHP Questions site

Re: How to pass an array trough URL??

2010-03-29 Thread toka...@gmail.com
I have solved it. pretty simple. examples.com/:controller/:action/? names[]=Johnnames[]=Tomasnames[]=Susan then just call $this-params['url'] to get your array 'names'. PS: you can also do nested arrays like names[0] [email]=j...@example.comnames[1][email]=. Tomas On 29 bře, 11:59,

Re: How to pass an array trough URL??

2010-03-29 Thread Miles J
Is there a reason your passing data like this through URLs? What are you trying to achieve? On Mar 29, 9:04 am, toka...@gmail.com toka...@gmail.com wrote: I have solved it. pretty simple. examples.com/:controller/:action/? names[]=Johnnames[]=Tomasnames[]=Susan then just call