Re: ActiveRecord getting resource instead of dataset

2010-11-22 Thread CraigFisher
Can you not use find('neighbors') ? Thats what I've used in the past... I have to confess that I didn't look too deeply into the SQL it generated, but it certainly appeared to be only fetching one row (plus associations) at a time... http://book.cakephp.org/view/811/find-neighbors -Craig On Nov

Re: Baffling blank screen problem

2010-11-17 Thread CraigFisher
Have a look in tmp/logs/error.log and also your apache log file for any PHP-type errors... -Craig On Nov 17, 10:27 am, Toby G wrote: > Can you clarify... Do you have debugging enabled?  Is it actually a > blank screen, or just falling over, but not displaying the error? > > Toby > > On Nov 17, 1

Re: create an input with $form->input() and disable it?

2009-02-18 Thread CraigFisher
I got caught by the phantom data loss: the $data array after POSTing doesn't contain the all the fields from the Model->read; only those that aren't disabled - so if you fail validation, and the form is redisplayed, the data which was originally populated via the Model- >read will have lost the f

Re: Router, NamedParameters & Urls...

2009-02-10 Thread CraigFisher
Indeed - and the URL looks like it will be fine; with lots of %3Fs and %2As. Unfortunately after a lot of digging around, I've discovered a 'feature' in Apache mod_rewrite due to the way that cake uses it's pretty URLs. It means that the URL is already **unencoded** by the time it reaches the

Router, NamedParameters & Urls...

2009-02-10 Thread CraigFisher
What's the best way of using named parameters to pass URLs into a controller... The router groks because it picks up the : and / as separators. Obviously I can perform some sort of specific code/decode in the code but I feel there must be a 'proper' way of doing it. I've tried using rawurle

Re: Anyone in North East England?

2009-01-08 Thread CraigFisher
Bedfordshire here - so fairly central (for England!)... UK CakeMeet could be good... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To

Re: Best way to manage tags

2008-10-21 Thread CraigFisher
OpenCakeFile... How does it work? I've installed into my eclipse (I think). It shows up in the Window->Prefs menu and allows me to select a file extension... But I don't see how to use it? -C --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: OT: What code editors do you all use?

2008-04-09 Thread CraigFisher
Used to use CrimsonEditor - now use Eclipse (PDT) - the extra functions are worth the bloat... On Apr 8, 5:09 pm, John R <[EMAIL PROTECTED]> wrote: > Just curious .. > > The only features I really use in an editor are code highlighting and > FTP ... all of the crazy PHP IDEs are incredibly bloate

Re: Additional field in a relation HABTM

2007-11-10 Thread CraigFisher
Is there an easy way (albeit a bit untidy or hackish) to get this info in cake1.1 -- I'm pushed for time on my project, and don't want to try a wholesale upgrade from 1.1 to 1.2 just to get access for this project? On Nov 9, 3:20 pm, francky06l <[EMAIL PROTECTED]> wrote: > If you use cake1.2, you

Re: Multiple models, one table

2006-10-06 Thread CraigFisher
Nate, Excellent - that's bang on the money... just what I was after. Thanks! --~--~-~--~~~---~--~~ 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 unsubs

Re: Multiple models, one table

2006-10-04 Thread CraigFisher
Indeed - the key point is that I want some users to have access to different levels of users. I think the key point to my question is - is it valid to use the same database (with some selection criteria) in different models? It feels as if it is a valid thing to do, and I can't see if it would c

Re: Multiple models, one table

2006-10-04 Thread CraigFisher
Yes - looked at that; but given that I only want an admin to be able to manage its own users, I would be creating groups and permissions all over the place; which would only be used once. --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Multiple models, one table

2006-10-02 Thread CraigFisher
I'm working on an app which required different classes of user - basically, superadmins, admins, and users - primarily all the users can 'use' the system, but each level can 'own' a set of the lower level. So a superadmin can manager the admins and users that it 'owns' An admin can manage the use