Re: Which Cake function should I use to query my data

2007-06-14 Thread clarkvr
Thanks, this fix my problem. Alexandre. On 11 jun, 13:09, bbuchs <[EMAIL PROTECTED]> wrote: > Try using the Set:Extract method. Felix did a good short tutorial on > it: > > http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-... > > Thanks for being constructive, Chris. > > On J

Re: Which Cake function should I use to query my data

2007-06-14 Thread Alexandre Gonçalves Jacaranda
No. Thinking like you... ... So are you saying that you don't follow this thread, because I'm already show my model and my findAll query with all data. But I don't think like you, then I will refresh this model for you: -x-x-x-x-x $this->set('signs', $this->Sign->findAll ("Sign.movie_present

Re: Which Cake function should I use to query my data

2007-06-14 Thread Alexandre Gon�alves Jacarand
Yes you are right. In simple php programming I use array_walk , but I don't know how to get this in cakephp. I will read that tutorial. Thanks for all help and attention. Alexandre. -Original Message- From: bbuchs <[EMAIL PROTECTED]> Subj: Re: Which Cake function shou

Re: Which Cake function should I use to query my data

2007-06-14 Thread Chris Hartjes
On 6/14/07, Alexandre Gonçalves Jacarandá <[EMAIL PROTECTED]> wrote: > > yes, I read, but I want only values from files in field fspath. > Thanks. So are you saying you can't figure out what element in the result set array contains the values you are looking for? It isn't that hard I would thi

Re: Which Cake function should I use to query my data

2007-06-14 Thread Alexandre Gon�alves Jacarand
yes, I read, but I want only values from files in field fspath. Thanks. -Original Message- From: "Chris Hartjes" <[EMAIL PROTECTED]> Subj: Re: Which Cake function should I use to query my data Date: Mon 11 Jun 2007 12:30 Size: 1K To: cake-php@googlegroups.com On

Re: Which Cake function should I use to query my data

2007-06-11 Thread Chris Hartjes
On 6/11/07, bbuchs <[EMAIL PROTECTED]> wrote: > Thanks for being constructive, Chris. What, you don't see my point? He has the results set in an array, all he has to do is iterate through it. Yes, Felix's Set article is a good one too, but my point still stands: this is not a CakePHP issue, th

Re: Which Cake function should I use to query my data

2007-06-11 Thread bbuchs
Try using the Set:Extract method. Felix did a good short tutorial on it: http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/ Thanks for being constructive, Chris. On Jun 11, 10:22 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 6/11/07, Alexandre Gonçalve

Re: Which Cake function should I use to query my data

2007-06-11 Thread Chris Hartjes
On 6/11/07, Alexandre Gonçalves Jacarandá <[EMAIL PROTECTED]> wrote: > But I don't know how to get all fspaths arrays. > If you can't help me, please point me to some docs. > > Thank you, Alexandre. Lord thundering jesus, don't you know how to iterate through an array?!? This is basic PHP stuf

Re: Which Cake function should I use to query my data

2007-06-11 Thread Alexandre Gonçalves Jacarandá
But I don't know how to get all fspaths arrays. If you can't help me, please point me to some docs. Thank you, Alexandre. 2007/6/10, Pablo Viojo <[EMAIL PROTECTED]>: > > And that's what you're getting, no more data than you need. > > > -- > Pablo Viojo > [EMAIL PROTECTED] > http://pviojo.net > >

Re: Which Cake function should I use to query my data

2007-06-10 Thread Pablo Viojo
And that's what you're getting, no more data than you need. -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 6/10/07, Alexandre Gonçalves Jacaranda <[EMAIL PROTECTED]> wrote: > > Thanks for your reply, but my problem is more complex: > $this->set('signs', $this->Sign->findAll("Sign.movie

Re: Which Cake function should I use to query my data

2007-06-10 Thread Alexandre Gonçalves Jacaranda
Thanks for your reply, but my problem is more complex: $this->set('signs', $this->Sign->findAll ("Sign.movie_presentation_id = '$id'",'File.fspath',"Sign.time ASC",null,null,1)); my return is: Array ( [0] => Array ( [File] => Array ( [fspath] => img/ jogo_43.jpeg ) ) [1] => A

Re: Which Cake function should I use to query my data

2007-06-10 Thread alan
Model->findAll($conditions,$fields,'Model.field DESC', $limit,$page,$recursive); echo ''; print_r($stuff); echo ''; exit; ?> if you don't see all you want to see... get friendly with the cake associations and update your models. thanks, -alan- On Jun 9, 11:02 am, Alexandre Gonçalves Jacarand

Re: Which Cake function should I use to query my data

2007-06-09 Thread Alexandre Gonçalves Jacaranda
Sorry, I forgot to tell my associate model: User: hasmany Presentation; Presentation: belongsto User, belongsto Type, hasone Movie; File : hasmany Movie , hasmany Sign; Type: hasmany Presentation; Movie: belongsto File, belongsto Presentation, hasmany Sign, hasmany Text; Sign: belongsto File, b

Re: Which Cake function should I use to query my data

2007-06-09 Thread Dr. Tarique Sani
On 6/9/07, Alexandre Gonçalves Jacaranda <[EMAIL PROTECTED]> wrote: > > Hello, everybody!! > > I've a database model like this : > > files ( id, path, name); > signs ( id, file_id, time) > Read up http://manual.cakephp.org/chapter/models - pay attention to the associations section Tarique -- =

Which Cake function should I use to query my data

2007-06-09 Thread Alexandre Gonçalves Jacaranda
Hello, everybody!! I've a database model like this : files ( id, path, name); signs ( id, file_id, time) How can I get files.name using some function of cake ? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google