Re: Model Association without Foreign key (Cake 1.18)

2008-02-06 Thread Bo-oz
I was afraid of that... I've read some other reply's by you in another thread, and based on that, I was already expecting that this could not be done. Would be great functionality though. On Feb 6, 10:37 am, AD7six <[EMAIL PROTECTED]> wrote: > On Feb 6, 10:23 am, Bo-oz <[E

Problem with findAllThreaded... bug or not?

2008-02-06 Thread Bo-oz
Hi, I'm Using CakePHP 1.19. I have a menu table with the following fields: - id - parent_id - name - link For sorting purposes, I would like the menu to show ordered by Name ASC. When I use: $this->Menu->findAllThreaded('','','name ASC'); The resulting array only contains siblings with a na

Re: Model Association without Foreign key (Cake 1.18)

2008-02-06 Thread Bo-oz
It's 1.19 btw... but think that won't mather much. On Feb 6, 10:16 am, Bo-oz <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to enrich a model with data from another model. However > they are not directly related. The value that needs to be fetched from > the ot

Model Association without Foreign key (Cake 1.18)

2008-02-06 Thread Bo-oz
Hi, I would like to enrich a model with data from another model. However they are not directly related. The value that needs to be fetched from the other model lies within a certain time-range. I've searched the groups and have found that you should be able to indicate that the foreignKey = fals

Re: beforeDelete() filter and model dependancies

2008-02-04 Thread Bo-oz
thx :) On Feb 4, 4:55 pm, grigri <[EMAIL PROTECTED]> wrote: > Search for the 'Soft Deletable' behavior by Mariano Iglesias. It's on > the bakery, and also on his Cake Syrup website. > > On Feb 4, 3:12 pm, Bo-oz <[EMAIL PROTECTED]> wrote: > > > H

beforeDelete() filter and model dependancies

2008-02-04 Thread Bo-oz
Hi, I'm using a datamodel in which I do not want records to be actually deleted. All I want is that a flag is set that the record has been marked for deletion. therefor I am using a beforeDelete() filter that saves the field of the current record like this: Model->saveField('delete',true); r

Re: Admin Routes in combination with standard routes.

2008-01-30 Thread Bo-oz
Works like a charm! care to elaborate? thanks adam. On Jan 30, 3:08 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > Try this: > > $Route->connect('/'.CAKE_ADMIN, array('controller' => 'products', > 'action' > => 'index

Admin Routes in combination with standard routes.

2008-01-30 Thread Bo-oz
Hi I've defined the CAKE_ADMIN line in /app/config/core.php this works great. Only calling: http://domain.com/admin resolves in a error that the controller was not defined. Therefor I've tried to define a new route: $Route->connect('/admin', array('controller' => 'products', 'action' => 'index'

View this page "Cake Apps/Sites In The Wild"

2008-01-25 Thread Bo-oz
Added my site. http://www.iamin.com thanks... happy baking. Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this messag