Re: What is = in an Array?

2011-03-02 Thread jeet bajaj
Hi, array(action =index) Is an associative array in php, it has not more deeper sense then, it is just an associative array in php,and (action =index is a *key = value* pairs) For more understanding about this you should go through Array topic in php official site. and it's link is

Re: What is = in an Array?

2011-03-01 Thread Sathia S
On Mon, Feb 28, 2011 at 10:17 AM, nicolas xu.shen...@gmail.com wrote: hi, hi in this code: $this-redirect(array('action'='index')); I am absolutely new to cakePHP. the = really confuses me a lot. I couldn't find it in PHP documentation. It will be found in PHP . Can anybody tell me

Re: What is = in an Array?

2011-02-28 Thread jeet bajaj
Hi Nicolas, In cakephp using $this-redirect(array('controller'='anycontroller', 'action'='index')); works same as function Header('Location: *http://www.example.com/anycontroller/index*'); works in php. It is easy to understand as both the functions works to redirect the control to given

What is = in an Array?

2011-02-27 Thread nicolas
hi, in this code: $this-redirect(array('action'='index')); I am absolutely new to cakePHP. the = really confuses me a lot. I couldn't find it in PHP documentation. Can anybody tell me what = means exactly? and explain the syntax of =? Thanks a lot! REgards, Nicolas -- Our newest site for

Re: What is = in an Array?

2011-02-27 Thread Jeremy Burns | Class Outfit
http://php.net/manual/en/function.array.php Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 28 Feb 2011, at 04:47, nicolas wrote: hi, in this code: $this-redirect(array('action'='index')); I am absolutely new to cakePHP. the = really confuses me a lot. I

Re: What is = in an Array?

2011-02-27 Thread Anatoliy Dimitrov
'=' is one way to assign a value in an array in PHP. For more info check: http://php.net/manual/en/book.array.php Regards, Anatoli On Feb 28, 6:47 am, nicolas xu.shen...@gmail.com wrote: hi, in this code: $this-redirect(array('action'='index')); I am absolutely new to cakePHP.  the = really