Database question, How do I represent a zero in a zero to one relationship?

2009-02-06 Thread TonyP
I need to create a zero to one relationship for my cakephp app. I would like to have a foreign key constraint, cascade on update. The problem is, when I use zero as the default value for the field, I get a foreign key constraint error when trying to add the constraint. This is because there is no

Re: Pass Session From NON Cakesite to Cakesite

2008-12-18 Thread TonyP
I'm trying to do something similar to what MDB is doing, but with two cakephp apps. How do I pass the auth session info to the other app? I've checked the core.php session.cookie info, that the variables are both named the same. Is there anything else that I need to do? How do I make the two ca

Back button support for cakephp ajax apps, swfaddress.

2008-12-12 Thread TonyP
I was just wondering if anyone has figured out how to implement the back button in their cakephp ajax application. I found the swfaddress package, but don't know how I should go about using it. Has anyone used this package to solve the back button issue, .. or found another solution that works?

Re: Autocomplete and validation of its field

2008-09-11 Thread TonyP
I'm having the same issue. I'm not sure that the autocomplete function works the same way as form->input. On Aug 21, 6:06 am, Raph <[EMAIL PROTECTED]> wrote: > I have a problem with autocomplete function. When I use it in form, > and I set validatin rules in coresponding model, errors under input

Advanced searching with Paginator, HABTM

2008-08-27 Thread TonyP
I'm trying to create an advanced search page that can be used to narrow results by several different fields including a few HABTM tables. Currently, I'm creating an array with all of the search conditions and passing it to the paginator function. It worked great but I'm not sure how to pass HABTM