Re: tricky HABTM condition (or maybe situation where multi-column foreign key is needed)

2012-09-27 Thread Carl Clements
ng another Fonzi for L&S with a note that this character is a spin-off/cameo from Happy Days and leave it at that. I would not muddy my use cases and schema over a couple of exceptions to a general rule. -Carl -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter

tricky HABTM condition (or maybe situation where multi-column foreign key is needed)

2012-09-23 Thread Carl Clements
acter_id`, 'series_id' ) REFERENCES `tvdb`.`characters` (`id`, 'series_id' ) Which seems to work (mysql accepts the schema), but Cake doesn't like multi-column assoiciations. I've read that if I find myself needing them then there is a flaw in my design. Can someb

CakePHP css files

2008-05-01 Thread Carl
Anybody know where I can find copies of the css files used on the CakePHP site (forge.css, legacy.css, etc.) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake

Re: How do I get a list of fields using the describe function?

2008-02-24 Thread Carl
very recently was talking about accessing the Model schema in a > Helper... > > On 24 Feb, 15:25, Carl <[EMAIL PROTECTED]> wrote: > > > I guess the real question is what do I pass as a reference to the > > model? I tried passing $this-> and &$this-> and neith

How do I get a list of fields using the describe function?

2008-02-24 Thread Carl
I guess the real question is what do I pass as a reference to the model? I tried passing $this-> and &$this-> and neither one works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gr

How do I make the Folder class visible to a controller?

2008-02-16 Thread Carl
I need to instantiate a folder object. How do I make the class visible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe f

CakePHP 1.2 Email Component works there but not here

2008-02-16 Thread Carl
I have a project that uses the cake email component. It works fine when I upload the project to a shared server, but when I try to run locally (under xampp's apache, mysql, mercury) I get an error message saying: 553 We do not relay non-local mail, sorry. I have phpnuke programs that use the mer

Adding a radio groups destroys text input validation

2008-02-07 Thread Carl
I have a form with a text input field with validation code that works just fine... until I add a radio group to the form. Then if I enter invalid data the whole thing crashes without generating an error message (I have debug on). Is there a way to validate the radio group input? Is this a bug? --~

CakeForge project submission problem

2008-02-05 Thread Carl
I've been trying to register a project under the CakeForge, but I keep getting this error message: ERROR: Could not create group: ERROR: value too long for type character varying(255) Anybody know what the problem is? --~--~-~--~~~---~--~~ You received this messag

Re: Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-04 Thread Carl
...and of course I tried all the versions listed in the comments, but all I get is the textarea, not the editor. On Feb 4, 8:33 am, Carl <[EMAIL PROTECTED]> wrote: > Thanks, I tried that, but I get this: > > Warning (512): Method FormHelper::labelTag does not exist [CORE\ca

Re: Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-04 Thread Carl
Thanks, I tried that, but I get this: Warning (512): Method FormHelper::labelTag does not exist [CORE\cake \libs\view\helper.php, line 148] Notice (1024): Method textarea() is deprecated in HtmlHelper: see FormHelper::input or FormHelper::textarea [CORE\cake\libs\view\helpers \html.php, line 659]

Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-04 Thread Carl
Has anyone integrated the fckeditor with the 1.2 version of CakePHP? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

no error option for a select form element

2008-02-02 Thread Carl
I have a client who has a select element and a requirement that the user actually make a selection from the drop down list of options. I checked the form->select part of the API and there is no 'error' option as there is for say the input element. How do I take advantage of the 1.2 validation capa

Class 'Router' not found

2008-01-31 Thread Carl
When I run locally (under apache via xampp) I can bring up my pages/ home page by simply pointing my browser to localhost/messaging as expected. When I upload to a shared server I get that: 400 Bad Request Invalid request. error message. Now if I go specifically to (host)/messaging/pages/home I

Re: Router doesn't work on a shared server

2008-01-29 Thread Carl
rowser to pages/home everything works fine. On Jan 29, 2:26 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 28, 11:53 pm, Carl <[EMAIL PROTECTED]> wrote: > > > I develop on a local server (apache via xampp) and when I point my > > browser to the root of a project (ie localhos

Router doesn't work on a shared server

2008-01-28 Thread Carl
I develop on a local server (apache via xampp) and when I point my browser to the root of a project (ie localhost/project) it goes to the htdocs/project/pages/home view as it should. But when I upload the site to a shared server and point to the root, I get a 404 error. If I tell it to go specific

How do I set focus to a form input field?

2008-01-21 Thread Carl
I used to do this with something like this: document.post_form.title.focus(); but CakePHP forms use dot notation in the field names. I haven't found anything in the existing documentation. --~--~-~--~~~---~--~~ You received this message b

nested models

2008-01-16 Thread Carl
I have a table of headings and a table of categories. Each heading "hasMany" categories, and each category "belongsTo" a heading. I need a view that lists each heading with its associated categories. I have the models working with the "scaffolded" views of headings and categories (separately), bu