Monday, June 4, 2012

Re: get some value from params

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

No comments: