Re: SQL syntax error when using comparison operators

2008-12-18 Thread boyracerr
-Find-Conditions - the fifth example down will not work unless modified as above. On Dec 18, 12:46 am, boyracerr benjamins...@gmail.com wrote: I'm trying to do a simple comparison search, and for some reason its giving me an error. I feel like I am missing something blindingly obvious

SQL syntax error when using comparison operators

2008-12-17 Thread boyracerr
I'm trying to do a simple comparison search, and for some reason its giving me an error. I feel like I am missing something blindingly obvious, but the only thing that suggests itself at the moment is some sort of bug in the way that conditions are parsed. Doing the following:

Re: Mail Queuing in CakePHP

2008-12-01 Thread boyracerr
into that __queue method, but I reckon it'd be just as easy using cake's db or file methods and write it all yourself! If you want to be all cake-like, then you could make a cakeshell class to do the sending. Cheers, Adam On Dec 1, 11:14 am, boyracerr [EMAIL PROTECTED] wrote: Hi, In my

Mail Queuing in CakePHP

2008-11-30 Thread boyracerr
Hi, In my rewrite of a system into CakePHP, I need to implement a Mail Queue (storing mail messages in a database for later sending in order not to overwhelm the SMTP server). My previous application used the PEAR Mail::Queue class for this, and it always worked perfectly. I've searched for

Translate behaviour documentation

2008-07-09 Thread boyracerr
I've been searching using whatever terms I can think of, and I can't find anything about the use of the Translate behaviour to create multilingual sites (ie, where dynamic content can be in different languages). Could anybody provide some links to information on this please? Thanks, Ben

Implementing Cake alongside/within an existing application

2008-05-21 Thread boyracerr
I've recently been brought in on a project which has been developed, let's say, by evolution rather than intelligent design. So, it works, but in terms of organisation its a nightmare. I've now been asked to produce a plan for adding several major new features. Obviously, my temptation is to say

Re: Implementing Cake alongside/within an existing application

2008-05-21 Thread boyracerr
(drupal with cake)http://dev.sypad.com/projects/drake/ Jake (Joomla with cake)http://dev.sypad.com/projects/jake/ On May 21, 5:55 am, boyracerr [EMAIL PROTECTED] wrote: I've recently been brought in on a project which has been developed, let's say, by evolution rather than intelligent design. So

Limiting HABTM relation to MPTT children

2008-04-15 Thread boyracerr
Hi, I have two models, Users and Groups. I want to represent the association Users have Groups. Easy enough HABTM. However, Groups are using Tree behavior, and I would like to specify that only Groups below a certain level are returned. The ways I have come up with to do this are not

Re: CakePHP Console problems...

2008-04-15 Thread boyracerr
Sorry if this is too obvious, but have you checked that you have an executable permission set on the 'cake' file? (what OS are you using?) On Apr 15, 7:24 pm, Quilmes [EMAIL PROTECTED] wrote: Newbie here... can't get the CakePHP console to work. Can't find any place that tells you how to

Re: HABTM Relation with foreign key

2008-03-25 Thread boyracerr
Hi, sorry for jumping in your post, but I think my situation is almost exactly the same. Imagine I have a forum application with many forums, so that we have Users Forums A user may be an admin for one forum, a member of another, a moderator of another. There is a table for Roles. What is the

Re: HABTM Relation with foreign key

2008-03-25 Thread boyracerr
will be selected as 'Memberships' within the association. I'm going to try this now, let me know how you get on. Ben On Mar 26, 4:13 am, boyracerr [EMAIL PROTECTED] wrote: Hi, sorry for jumping in your post, but I think my situation is almost exactly the same. Imagine I have a forum application

Re: HABTM Relation with foreign key

2008-03-25 Thread boyracerr
' ) ); Yes, thats it. As usual, Cake is amazing but you need a blog post to tell you why :) On Mar 26, 4:21 am, boyracerr [EMAIL PROTECTED] wrote: As so often, stating my problem helped me think of it in a different way (actually it gave me different phrases

Behaviors versus SuperClasses

2008-03-10 Thread boyracerr
Hello to all, I'm very interested in the Cake 1.2 concept of behaviors. However, since there isn't much discussion around about them yet, I'm keen to here how people are using them in practice. What is the line between deciding that particular functionality should be implemented as a behavior

Loading a Model from a Behavior

2008-02-25 Thread boyracerr
This seems like something which is very very obvious, but I'm really not having any luck finding the solution. I'm trying to implement a Behavior for permissions checking in my application. As such, I want to make the Permission model available within the Permission_Checker behaviour. Because

Re: Loading a Model from a Behavior

2008-02-25 Thread boyracerr
, boyracerr [EMAIL PROTECTED] wrote: This seems like something which is very very obvious, but I'm really not having any luck finding the solution. I'm trying to implement a Behavior for permissions checking in my application. As such, I want to make the Permission model available within

Re: Loading a Model from a Behavior

2008-02-25 Thread boyracerr
25, 4:00 pm, boyracerr [EMAIL PROTECTED] wrote: Thanks; I've tried that before, but I get: Fatal error: Class 'App' not found I've had to rely on loadModel() elsewhere for the same reason. Is this a problem with my setup? On Feb 26, 12:28 am, nate [EMAIL PROTECTED] wrote: Try App

Re: Dynamic parentID() when using ACL

2008-02-13 Thread boyracerr
where people talk about cars, your aliases might look like this: CarEnthusiastForum add CarEnthusiastForum/edit CarEnthusiastForum/delete CarEnthusiastForum/index On Feb 11, 6:18 am, boyracerr [EMAIL PROTECTED] wrote: Hello to all, I am keen to use ACL in my application

Re: ACL for users in multiple groups

2008-02-13 Thread boyracerr
I'm also running into this problem and trying to come up with workarounds. I posted one idea at http://groups.google.com/group/cake-php/browse_thread/thread/b91681a12ecf35ee This is I think similar to your idea Christian in that it attempts to make the parentID more dynamic. My thought was

Re: ACL for users in multiple groups

2008-02-13 Thread boyracerr
I just looked up the tantalising post which Christian referred to at: https://trac.cakephp.org/ticket/2191 'Examples will be forthcoming' Did anything ever come of this? Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Dynamic parentID() when using ACL

2008-02-11 Thread boyracerr
Hello to all, I am keen to use ACL in my application. However, the requirement that users only be in one group seems to me to be a massive obstacle. As an example, imagine there is a bulletin board application with many forums. Each forum will have members, moderators and administrators. An

Creating form array variables using form-input

2008-02-05 Thread boyracerr
Hello to all, I am trying to create a form which will pass an array style data structure through to the request via _GET. This should be of the format $search['variableName']=variableValue and might sometimes have arrays within the array, thus: $search['variableName'][] =variableValue1 How

Re: Mac OS developper setup

2008-02-05 Thread boyracerr
I use MAMP for my PHP5, and the standard Apache that comes with the Mac plus a selfcompiled PHP for PHP4. They seem to live quite happily together. I have had some problems before, but got things working (with the exception of Jake, which is another story). What problem are you having? Any error

Problem with sessions while using Jake (Joomla 1.5, Cake 1.2, MAMP)

2008-01-28 Thread boyracerr
Hi all, I recognise that this might be better in the Jake support forums, but I'm unable to log into them and they seem quite low traffic, so I wanted to try here. Thanks for any ideas: I'm currently experimenting with CakePHP and Jake. I'm having trouble, which I suspect might be related to

Dynamically adding models to a controller

2008-01-28 Thread boyracerr
Hi to all, I'm currently getting stuck in to my first major CakePHP application. I'm writing the search functionality, one of the requirements for which is a unified search which can return different combinations of models. So, what I'd like to do is to be able to add models dynamically to the

Re: Dynamically adding models to a controller

2008-01-28 Thread boyracerr
I realise now that loadModel() is what I am looking for. Would welcome any comments on the second point though :) Ben On Jan 28, 12:15 pm, boyracerr [EMAIL PROTECTED] wrote: Hi to all, I'm currently getting stuck in to my first major CakePHP application. I'm writing the search

Re: Dynamically adding models to a controller

2008-01-28 Thread boyracerr
Sorry, but I've just been told about loadModel(), which does exactly this. I did Google first, I swear. If anybody would like to comment on the advantages/drawbacks of working like this though, I'd be interested to hear your thoughts. Benjamin On Jan 28, 12:15 pm, boyracerr [EMAIL PROTECTED