Re: I'm trying to make a good find with three HABTM models

2010-06-08 Thread DrLaban
'user_id', 'project_id' >    ) > ); > [/code] > > Enjoy, >    John > > On Jun 8, 10:36 am, DrLaban wrote: > > > > > This comes very close to what I'm looking for, but the first find that > > I wrote (it isn&#x

Re: I'm trying to make a good find with three HABTM models

2010-06-08 Thread DrLaban
#x27;User') >      ), >      'conditions => array('Project.id' => array_keys($ids)) > )); > > there are probably other ways of doing this, but I would have to think > and test before I recommend them. :) > > Cheers > > On Jun 7, 9:03 pm,

Re: I'm trying to make a good find with three HABTM models

2010-06-07 Thread DrLaban
7; => > array('User'; > > you can find out more about the Containable behavior in the cook > bookhttp://book.cakephp.org/view/1323/Containable > > On Jun 7, 2:54 pm, DrLaban wrote: > > > > > My setup is pretty straightforward; > > User HABTM Group > &g

I'm trying to make a good find with three HABTM models

2010-06-07 Thread DrLaban
My setup is pretty straightforward; User HABTM Group Group HABTM Project Project HABTM User I would like to produce a find-query that takes a single project-id and builds a hierarchic contact list, in which the users belong to their respective group(s). Something along these lines: [Project 1]

How do I add a helper to an element

2008-01-07 Thread DrLaban
Hello all! I've been doing some Cake'ing for a while and find it lots of fun to work with seeing that it's quite fast and has a lot going for it so far. I'm having a bit of a headache with elements and helpers though, I've seen some notions about it but never quite figured it out so I thought I'd

Re: Easy problem, not all that easy to figure out (set function)

2007-07-31 Thread DrLaban
That worked ace! Thanks! Regard DrLaban On Jul 29, 6:22 pm, Gorka <[EMAIL PROTECTED]> wrote: > If I understood you right, you are overwritting the value of 'gallery' > with the second call to $this->set(), when you wanted to merge both > values. Try preparing y

Easy problem, not all that easy to figure out (set function)

2007-07-29 Thread DrLaban
ly contains the last set function call's info. How do I add info to the gallery object without losing info from the first set call? I'd just like to add a field called "numRows" that contains the int value of rows returned, into the gallery object. Thanks in advance! Regards

Structuring and modelling applications and just understanding the workings of cakePHP

2007-07-18 Thread DrLaban
ed and handled error messages that cake provides. * If I don't provide an email address, I get no error whatsoever. The page reloads as if nothing's happened and I get to provide the address again. I've completely and entirely lost the error handling. Now, what I'd like to know

Re: A bit of a problem with forms and JavaScript

2007-07-18 Thread DrLaban
This worked perfectly! Thanks alot for your comment! Regards DrLaban On Jul 16, 8:22 am, wralph <[EMAIL PROTECTED]> wrote: > Use the ID, so if you have a textarea with ID of ModelField, then > access using: > > document.getElementById('ModelField').value = 'wh

A bit of a problem with forms and JavaScript

2007-07-14 Thread DrLaban
ehow change either the behaviour of JavaScript or CakePHP so that I can use a name property without losing field validation? Regards DrLaban --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: CakePHP is great fun, but a bit tricky

2007-07-14 Thread DrLaban
It works great, thanks Geoff! I'll try and see if I understand what it does in more detail and test a couple of things. Perhaps I've even learned something! :D Regards DrLaban On Jul 13, 12:56 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > Create a helper called SmileyHe

Re: CakePHP is great fun, but a bit tricky

2007-07-12 Thread DrLaban
ve yet to understand when I should use them and when I should insert everything in the View itself or the Controller. I know this is getting a bit lenghty, but I really, really, really want to learn how to do this. Thank you all for your help so far. Too bad I'm not yet getting the hang o

Re: CakePHP is great fun, but a bit tricky

2007-07-09 Thread DrLaban
like this in PHP is totally new for me. But I appreciate you taking your time to try and help me out! Regards DrLaban On Jul 7, 1:28 am, Grant Cox <[EMAIL PROTECTED]> wrote: > If you don't want to hard code them in your helper, then you will need > another database table for your smileys

Re: CakePHP is great fun, but a bit tricky

2007-07-06 Thread DrLaban
table data. I think? :p Again, thanks for yout input, much appreciated! Regards DrLaban On Jul 6, 12:50 pm, Sergei <[EMAIL PROTECTED]> wrote: > So what's the problem? Make a function in a model that extracts smiley > data, and set it to view variable in your controller action. > >

CakePHP is great fun, but a bit tricky

2007-07-06 Thread DrLaban
27;t gotten to the details that can solve my minor issue quite yet. Thanks for your time! Regards DrLaban --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send em

Re: Going nuts on components

2007-07-06 Thread DrLaban
llation of the field from ISO-8859-1 to UTF-8-generic. 2: Search and replace all the extended characters you want to parse from its original encoding to UTF-8 compliant encoding. Thanks for the info about the helper! Regards DrLaban On Jul 4, 11:51 pm, DrLaban <[EMAIL PROTECTED]> wrote: >

Re: Going nuts on components

2007-07-04 Thread DrLaban
n the regular expressions? Regards DrLaban On Jul 4, 4:18 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > Here is the Bakery's implementation as a helper > :-https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/bakery/views/h... > > Basically in the view you call $bbcode->forma

Going nuts on components

2007-07-03 Thread DrLaban
from variables, but I just haven't found it. Thanks for your time, I hope I didn't mess everything up with my descriptions! Regards DrLaban --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PH