Thursday, September 20, 2012

Re: for statement

Hi,

The find() method $word = $this->Word->findById(11); return an array like this:
$word = array(
    'Word' => array(
        'id'      => {value},
        'name'    => {value},
        'created' => {value},
    ),
);
Perhaps the method $this->array_search($var_get,$word); not considering the index Word
In this case you can use $position = $this->array_search($var_get,$word['Word']);

Moreover, be sure the variable $_GET['var'] has a corresponding value in your controller.

--
Murgan, Alexis Germán
Desarrollador & Diseñador
Web: german.murgan.com.ar
Email: german@murgan.com.ar
MSN: german@murgan.com.ar
Móvil: +5493424663813

--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: