Re: newbie question - multiple functions in a page

2007-12-03 Thread maschoen
I'm fairly new to Cake too, so maybe I will hit something helpful here. The tutorial examples tend to make it look like 1 controller for 1 model and 1 model for 1 controller. This is not at all true. A controller can also use many models or even none. I think of a controller as the organizatio

Re: HTTPS

2007-11-27 Thread maschoen
Your question needs a little more information to get any kind of useful answer. Is this css in a separate style sheet, or embedded directly in the view. Did you put the sytel sheet in the webroot/css directory or elsewhere? Are you using a helper? How are you referencing the filename. Etc. e

Re: ajaxHelper::observeField - observes text field onBlur, not onChange

2007-11-18 Thread maschoen
My recent experience is that you want to trigger on the upkey event. Ignore the event structure itself. Go to the field and read its value. If you look on the downkey, the value hasn't been updated yet. On Nov 17, 6:03 am, senser <[EMAIL PROTECTED]> wrote: > I can't understand why every time I

Re: String concatenation not working

2007-11-13 Thread maschoen
I know this might sound a little obvious, but what would you say the size of your database is in bytes of text? I only ask because if for example, your database had 100Gig, you certainly would not expect this to work, would you? It would seem that for a website that can be hosted for $11/month tha

Re: Taking advantage of Cake to build personal book database

2007-11-11 Thread maschoen
btw, When a book is reissued, it gets a new ISBN. I think just the last digit changes. --~--~-~--~~~---~--~~ 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@googlegrou

Re: $form->checkbox having troubles.

2007-11-08 Thread maschoen
I've figured out what the strange hidden inputs are about. The only big issue I have is why type="checkbox" is repeated. This might not seem like a big problem, but I sometimes have to run the generated HTML through an XML parser. This is a first step to converting it to a JSON string to retur

Re: How delete selected checkboxes?

2007-11-08 Thread maschoen
I'm not sure, but I think you might be asking how to have the products deleted immediately when you check the box? There are two aspects to this process. 1) Deleting the product record from a database on the host 2) Deleting the entry on the screen For 1) you will need to somehow put an onClick h

$form->checkbox having troubles.

2007-11-07 Thread maschoen
I'm using version 1.2.0.5427alpha, and I'm seeing very weird output from $form->checkbox(). My code looks like: $name="Model.field'; echo $form->checkbox($name,array('label'=>false,'div'=>false,'value'=> $somevalue); The output is something like: I don't know where to begin with this. Why

Re: Cakephp newbie design question

2007-11-07 Thread maschoen
Not sure if I understand the question, but I think you want to keep track of the user being logged in, in a Session variable. That way, when you build the "tab" pages, you know whether to put up Generic or Specific content.I would put the navigation tabs in an element and pass it a variable

Re: Building a Mailing list app

2007-10-21 Thread maschoen
> this is for my friends nightclub in Bristol (uk)www.clockworkclub.com > - they've had nearly 1000 people sign up now, and my little cake only > solution just isn't cutting it any more, it's not for spam, I promise! A lot of mail these days will be marked spam, put in the spam box, or not deli

Re: Ajax request from an external web site to a controller action in a cakephp web site

2007-10-18 Thread maschoen
The Cake View returned could be an HTML snippet that is inserted with the innerHTML() method. --~--~-~--~~~---~--~~ 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@googlegro

Re: Simple authentication for directory??

2007-10-18 Thread maschoen
Instead of replace SRC with "get_picture.php/1". get_picture.php checks whether the user is logged in and if so uses the following PHP code to return the picture. $fileno = $_SERVER['QUERY_STRING']; $filename = "/picture/directory/not-below-webroot/PICTURE" . $fileno . ".jpg"; $image = imagecr

Re: Programming with controllers

2007-10-17 Thread maschoen
> Perhaps the ´flash´ message would be appropriate? Thanks for the suggestion, but I don't think you understand the issue. Which controller would I issue the flash message from? The login controller is where it needs to go, but doesn't know what the error message is. The main controller knows

Programming with controllers

2007-10-16 Thread maschoen
I'm new to Cakephp and there's a situation that I'm not sure how to deal with. In a controller for some page and I do some custom validation on form input, for example I see if login-id/password are valid. If the validation fails, the controller generates an error message for display in the login