Re: get some value from params

2012-06-04 Thread Andras Kende
Try:

$this->request->query['_value'];

Andras Kende



On Jun 4, 2012, at 4:31 AM, hoss7 wrote:

> i have cakephp 2.1.2 and when i am run:   pr($this->params);
> i have this:
> akeRequest Object
> (
> [params] => Array
> (
> [plugin] => 
> [controller] => subjectcats
> [action] => shahrlist
> [named] => Array
> (
> )
> 
> [pass] => Array
> (
> )
> 
> [isAjax] => 
> )
> 
> [data] => Array
> (
> )
> 
> [query] => Array
> (
> [_id] => DocumentSubjectId
> [_name] => data[Document][subject_id]
> [_value] => 2
> )
> 
> how can i get "2" ? from this result
> 
> -- 
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: get some value from params

2012-06-04 Thread hoss7

>
> yes, but when i am echo $this->params['query']['_value'];
>
 

> i dont get result
>

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: get some value from params

2012-06-04 Thread Paul Willis
Do you mean you want to pull out the value for the _value key?

$this->params['query']['_value']


On 4 Jun 2012, at 12:31, hoss7 wrote:

> i have cakephp 2.1.2 and when i am run:   pr($this->params);
> i have this:
> akeRequest Object
> (
> [params] => Array
> (
> [plugin] => 
> [controller] => subjectcats
> [action] => shahrlist
> [named] => Array
> (
> )
> 
> [pass] => Array
> (
> )
> 
> [isAjax] => 
> )
> 
> [data] => Array
> (
> )
> 
> [query] => Array
> (
> [_id] => DocumentSubjectId
> [_name] => data[Document][subject_id]
> [_value] => 2
> )
> 
> how can i get "2" ? from this result
> 
> -- 
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


get some value from params

2012-06-04 Thread hoss7
i have cakephp 2.1.2 and when i am run: pr($this->params);
i have this:

akeRequest Object
(
[params] => Array
(
[plugin] => 
[controller] => subjectcats
[action] => shahrlist
[named] => Array
(
)

[pass] => Array
(
)

[isAjax] => 
)

[data] => Array
(
)

[query] => Array
(
[_id] => DocumentSubjectId
[_name] => data[Document][subject_id]
[_value] => 2
)


how can i get "2" ? from this result

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php