It worked like a charm, thanks a lot !

Le lundi 18 juin 2012 13:34:03 UTC+2, JonStark a écrit :
>
> Lets say this is my array :
>
> array(
>       (int) 0 => array(
>               'UsersUser' => array(
>                       'id' => '38',
>                       'follower_id' => '1',
>                       'following_id' => '2'
>               )
>       ),
>       (int) 1 => array(
>               'UsersUser' => array(
>                       'id' => '41',
>                       'follower_id' => '3',
>                       'following_id' => '2'
>               )
>       )
> )
>
>
> I want to perform a simple check to recover a data.
> Is this possible to ask cake to check this array to see if any 
> "follower_id" == $logged_user_id, and if so, return the "id" associated. *In 
> this example*, lets say that if $logged_user_id = 1, then cake should 
> return "38".
>
> Is there any way to do this ? It's driving me nuts !
>
> Thank a lot for your time.
>
>
>
Le lundi 18 juin 2012 13:34:03 UTC+2, JonStark a écrit :
>
> Lets say this is my array :
>
> array(
>       (int) 0 => array(
>               'UsersUser' => array(
>                       'id' => '38',
>                       'follower_id' => '1',
>                       'following_id' => '2'
>               )
>       ),
>       (int) 1 => array(
>               'UsersUser' => array(
>                       'id' => '41',
>                       'follower_id' => '3',
>                       'following_id' => '2'
>               )
>       )
> )
>
>
> I want to perform a simple check to recover a data.
> Is this possible to ask cake to check this array to see if any 
> "follower_id" == $logged_user_id, and if so, return the "id" associated. *In 
> this example*, lets say that if $logged_user_id = 1, then cake should 
> return "38".
>
> Is there any way to do this ? It's driving me nuts !
>
> Thank a lot for your time.
>
>
>
Le lundi 18 juin 2012 13:34:03 UTC+2, JonStark a écrit :
>
> Lets say this is my array :
>
> array(
>       (int) 0 => array(
>               'UsersUser' => array(
>                       'id' => '38',
>                       'follower_id' => '1',
>                       'following_id' => '2'
>               )
>       ),
>       (int) 1 => array(
>               'UsersUser' => array(
>                       'id' => '41',
>                       'follower_id' => '3',
>                       'following_id' => '2'
>               )
>       )
> )
>
>
> I want to perform a simple check to recover a data.
> Is this possible to ask cake to check this array to see if any 
> "follower_id" == $logged_user_id, and if so, return the "id" associated. *In 
> this example*, lets say that if $logged_user_id = 1, then cake should 
> return "38".
>
> Is there any way to do this ? It's driving me nuts !
>
> Thank a lot for your time.
>
>
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to