Re: strange html code behavior (ajax, firefox)

2008-08-20 Thread byku
ah yes... i forgot to check adjustperm view... but... ids generated in both views are the same (controller_action_roleid), strange thing is that only two actions are not visible add and adjustperm i added in meantime two controllers with standard crud actions and both of them have action add

Re: Are routes this flexible?

2008-08-20 Thread David C. Zentgraf
Sorry for the late comeback... I didn't want to break all the old links, so I left the parsing algorithm as it is. I was able to reduce the lines of code thanks to some more efficient features in 1.2 anyway, so that's alright. :o) There's one thing I wonder about though. The URLs used in

Re: File upload

2008-08-20 Thread Dan Soendergaard
I've written this behavior which I typically use for file uploads. It's short and pretty easy to use, maybe you'll find it useful. You can set the directory in which the file should be saved by setting the option destination. If you attact the behavior like this,

Re: File upload

2008-08-20 Thread bartez
Bob, Dan, Thanks very much that's great!! I'll work through them both now. Really appreciate it. Alex On 20 Aug, 08:06, Dan Soendergaard [EMAIL PROTECTED] wrote: I've written this behavior which I typically use for file uploads. It's short and pretty easy to use, maybe you'll find it

Re: find list vs find all - Manipulating the format of a javascript object

2008-08-20 Thread grigri
Try it like this: $params = array( // ... 'fields' = array('State.id', 'State.name', 'State.id') // ... ); $result = array_values($this-State-find('list', $params)); On Aug 19, 6:32 pm, Josoroma [EMAIL PROTECTED] wrote: With the following piece of code:         function

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
Hi 1. The log line you get shows clearly that it's an Apache issue. The message obviously says that you must enable FollowSymLinks in your httpd.conf so that mod_rewrite works (see here : https://trac.cakephp.org/ticket/1700)... you must put Options FollowSymLinks in your httpd.conf (there may

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
On Wed, Aug 20, 2008 at 10:07 AM, clemos [EMAIL PROTECTED] wrote: Hi 1. The log line you get shows clearly that it's an Apache issue. The message obviously says that you must enable FollowSymLinks in your httpd.conf so that mod_rewrite works (see here :

requestAction redirects me. (probably something stupid, I just can't see it)

2008-08-20 Thread [EMAIL PROTECTED]
This has been driving me nuts for a few hours now and I cant figure out what I am doing wrong. I am on Cake 1.2rc2 I am doing a $this-requestAction('controller/action/idnum') but I get redirected to that action instead of getting any return values. I have done it before without problems (or so I

Blogger mirror of the cakephp list: potentially dangerous, surely stupid

2008-08-20 Thread clemos
Hi all Does someone know what is this : http://cake--php.blogspot.com/ I suggest that we try to stop that, because our emails are exposed to spam harvesters, and because it's totally nonsense. Googlegroups are fine, Nabble is fine (though I find it already quite parasite...), but this blogger

Re: Blogger mirror of the cakephp list: potentially dangerous, surely stupid

2008-08-20 Thread clemos
http://cake--php.blogspot.com/2008/08/blogger-mirror-of-cakephp-list.html hehe On Wed, Aug 20, 2008 at 12:19 PM, clemos [EMAIL PROTECTED] wrote: Hi all Does someone know what is this : http://cake--php.blogspot.com/ I suggest that we try to stop that, because our emails are exposed to spam

Re: OrderedBehavior - Order your lists in a TreeBehavior like manner, but only for one level.

2008-08-20 Thread villas
@Tarique I am not arguing the value of bakery - you missed the point :D Well, in all fairness, I imagine Alkemann already knows about search engines but he would still like to publish his work on the Bakery. I believe that is the main point here. I propose we should think of how we can use

Some questions about ACL implementation

2008-08-20 Thread martinp
Hopefully these aren't lame questions. Believe me, I've spent lots of time reading every tutorial I can find and lots of threads on this group. I still have a few questions though. 1. Many of the implementations of user groups in ACL have a UserGroup model (User belongsTo UserGroup), which is

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-20 Thread MonkeyGirl
        var $hasMany = 'Bid'; I could be wrong here, but I *think* that this has to be an array, even if there's only one item in it. As in: var $hasMany = array( 'Bid' = array( 'className' = 'Bid' ) ); Does updating that help at all? Zoe.

CakePHP Workshop in Raleigh, NC (Sep 6-7)

2008-08-20 Thread the_undefined
Hey folks, if you haven't heard about the CakePHP workshop in Raleigh yet, here is your chance to grab one of the last seats. In 2 days Garrett Woodworth, Nate Abele, Felix Geisendörfer and Tim Koschützki will teach you everything you need to know to bake great CakePHP applications. On top of

Filter a paginated dataset using a related field through a habtm relationship (1.2)

2008-08-20 Thread David Yell
Does this mean that 1.2 still can't filter a result set by a related model over habtm? I've been trying to filter my Links by Category to no avail today. Link habtm Category Category habtm Link $this-set('links', $this-paginate('Link', array('Category.id'=$this- data['Link']['category_id'])));

Model-find() using group parameter

2008-08-20 Thread bitkidoku
Hello everyone, I am using CakePHP to build an application that will run on en existing database. The problem I am facing is simple, I have products table and let's say it is like this: id, name, supplier Some stupid programmer (yes I am angry to him) didn't created the table with supplier_id.

Re: Model-find() using group parameter

2008-08-20 Thread Amit Badkas
2008/8/20 bitkidoku [EMAIL PROTECTED] Hello everyone, I am using CakePHP to build an application that will run on en existing database. The problem I am facing is simple, I have products table and let's say it is like this: id, name, supplier Some stupid programmer (yes I am angry to him)

Re: Model-find() using group parameter

2008-08-20 Thread Amit Badkas
2008/8/20 Amit Badkas [EMAIL PROTECTED] 2008/8/20 bitkidoku [EMAIL PROTECTED] Hello everyone, I am using CakePHP to build an application that will run on en existing database. The problem I am facing is simple, I have products table and let's say it is like this: id, name, supplier

Re: Model-find() using group parameter

2008-08-20 Thread bitkidoku
Oh, I just got here to reply my own question, and there are two answers already. Thanks for the answer! On Aug 20, 3:12 pm, Amit Badkas [EMAIL PROTECTED] wrote: 2008/8/20 Amit Badkas [EMAIL PROTECTED] 2008/8/20 bitkidoku [EMAIL PROTECTED] Hello everyone, I am using CakePHP to build

Re: Model-find() using group parameter

2008-08-20 Thread bitkidoku
What about using 'list' instead of 'all', it is failing: $this-Production-find('list', array('fields' = 'DISTINCT supplier')); CakePHP is trying to fetch Product.id as well. Is this a feature or a bug? :) On Aug 20, 3:12 pm, Amit Badkas [EMAIL PROTECTED] wrote: 2008/8/20 Amit Badkas [EMAIL

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-20 Thread Jon Bennett
Hi eleven10, This table has P (bid_session_id, user_id). If I remove that and add an id field as PK, things start working. However, since I am not interested in using this join model directly, I shouldn't have to do this ... as far as I understand from the manual and other cake

Re: HABTM cascading delete

2008-08-20 Thread Dave J
I dont think it works for HABTM relations also for the reason that it might be unsafe to do so. By deleting all related records, you might also be deleting records which are referenced to by other entries in the join table. On Aug 20, 4:03 am, Marcello [EMAIL PROTECTED] wrote: it does not

Re: HABTM cascading delete

2008-08-20 Thread Dave J
Not sure if I made sense in my previous post, but basically this is a case in which, if you're in a situation where you need to delete dependent records in an HABTM relationship. you might need to think if the relationship should be an HABTM one at all... or if a simpler hasMany would do the

Re: requestAction redirects me. (probably something stupid, I just can't see it)

2008-08-20 Thread [EMAIL PROTECTED]
Update: The problem I was having seem to have something to do with Auth after all. I have not figured out how or why but trashing some session data and starting over again fixed it for me. Now requestAction actually requests instead of redirecting. Strange. I have not been able to replicate the

Re: HABTM cascading delete

2008-08-20 Thread Marcello
the main reason for using habtm is because address table is shared among the whole system clients use them, sellers, and so on and a client can have ANY NUMBER of addresses the same for seller so i cant put a foreign key in any of the two tables thats why i must use HABTM On 20 ago, 10:50,

Re: Model-find() using group parameter

2008-08-20 Thread teknoid
It's a feature, find('list') is usually done to build options for a select box. On Aug 20, 8:39 am, bitkidoku [EMAIL PROTECTED] wrote: What about using 'list' instead of 'all', it is failing: $this-Production-find('list', array('fields' = 'DISTINCT supplier')); CakePHP is trying to fetch

Re: textbook find() query just doesn't work

2008-08-20 Thread teknoid
The example in the manual is a little misleading. It assumes a belongsTo relationship between Post and Author (i.e. Post belongsTo Author). In that case a JOIN will be performed (remember, JOINs are only done for hasOne and belongsTo). I think the confusion is that it also mentions a hasMany

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-20 Thread MonkeyGirl
Nope, your can not use composite keys with cakephp, you have to have an ID (or a field that you use as the primary, auto-incrementing id) - search the group for more background on this. Correct me if I'm wrong here, but I thought joiner tables for HABTM relationships were the exception to

Re: HABTM multiple inserts

2008-08-20 Thread seth
What code specifically did you look at? On Aug 8, 9:23 am, lightglitch [EMAIL PROTECTED] wrote: Solved it by looking to model test cases code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Fixture fails to create table

2008-08-20 Thread MiB
Hi I started to write tests, but fails at the begining. I created model, fixture and sample test case: http://bin.cakephp.org/view/1606012040 But when I trigger such test I get only such error: Fatal error: Call to a member function trigger() on a non-object in D:

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-20 Thread eleven10
PS: Things _do_ work if I specify the fields explicitly ... I was mistakenly using find('list', array('bid_session_id','user_id')) instead of find('list', array('fields' = array('bid_session_id','user_id'))) ... [well, Model::find() does have the signature find($conditions = null, $fields =

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-20 Thread eleven10
I tried your suggestion, no changes ... However, var $hasMany = 'Bid' also works ... as the output from pr($this-User-hasMany) in UsersController shows: Array ( [Bid] = Array ( [className] = Bid [foreignKey] = user_id [conditions] =

Re: OrderedBehavior - Order your lists in a TreeBehavior like manner, but only for one level.

2008-08-20 Thread Rafael Bandeira aka rafaelbandeira3
I propose we should think of how we can use the Bakery to become our ultimate resource for articles.  I have a couple of simple ideas and if anyone is also interested,  I'll start a thread about this topic so we can give positive feedback, ideas and encouragement to the Bakery developers

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-20 Thread eleven10
Hi Jon, Nope, your can not use composite keys with cakephp, you have to have an ID (or a field that you use as the primary, auto-incrementing id) - search the group for more background on this. I was under the impression that habtm join tables don't need to have a separate 'id' PK if you're

Re: HABTM cascading delete

2008-08-20 Thread nachopitt
Why dont you just do it in the way it was supposed to be? By adding referential integrity to the database. For example: FOREIGN KEY (tablename_id) REFERENCES tablename ON DELETE CASCADE On Aug 20, 8:50 am, Dave J [EMAIL PROTECTED] wrote: Not sure if I made sense in my previous post, but

Re: HABTM cascading delete

2008-08-20 Thread nachopitt
Why don't you just do it the way its suppossed to be? By adding referential integrity to the database. For example: CREATE TABLE / ALTER TABLE ... ... FOREIGN KEY (foreignTableName_id) REFERENCES foreignTableName ON DELETE CASCADE; On Aug 20, 9:21 am, Marcello [EMAIL PROTECTED] wrote: the main

Re: how to handle multiple gaming categories?

2008-08-20 Thread rocket
Sounds like a plan you da man 3 On Aug 19, 4:48 pm, Adrian [EMAIL PROTECTED] wrote: I'm doing something similar. If you look towards the bottom of that link there is a section about prefixes. So your routes look like Router::connect('/wow/:controller/:action'); What I'm doing is in the

Multiple Inserts without a loop

2008-08-20 Thread seth
So it seems most implementations of active record I've used have NOT had a way to do this, so I guess I'm hoping Cake is above the curve here... I'd like the general ability to do N record inserts (and updates) without doing N database calls. Essentially, I want something of the form: INSERT

HABTM without middle table

2008-08-20 Thread moomoofatcow
Is this possible with a HABTM? I have two types of tables and one notes table that can be used for multiple tables. ie: quotes ( id customer_id due_date note_group_id created_date created_by ) items( id item_num desc price note_group_id ) notes ( id note_group_id note created_date created_by

Re: Multiple Inserts without a loop

2008-08-20 Thread teknoid
use saveAll() to store multiple records On Aug 20, 12:55 pm, seth [EMAIL PROTECTED] wrote: So it seems most implementations of active record I've used have NOT had a way to do this, so I guess I'm hoping Cake is above the curve here... I'd like the general ability to do N record inserts

Re: how to handle multiple gaming categories?

2008-08-20 Thread rocket
Wait sorry. Is generic() some built in feature? I don't quite get it o_O. On Aug 19, 4:48 pm, Adrian [EMAIL PROTECTED] wrote: I'm doing something similar. If you look towards the bottom of that link there is a section about prefixes. So your routes look like

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-20 Thread Jon Bennett
Hi amitava, Nope, your can not use composite keys with cakephp, you have to have an ID (or a field that you use as the primary, auto-incrementing id) - search the group for more background on this. I was under the impression that habtm join tables don't need to have a separate 'id' PK if

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread www.landed.at
thanks for your detailed help I tried the following for a specific directory im not as you say using user directories i guess from your description... Directory /www/fb00/ Options Indexes Includes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory I took

Re: how to handle multiple gaming categories?

2008-08-20 Thread biesbjerg
I would do it like this: Router::connect('/:cat/sells', array('controller' = 'sells', 'action' = 'index'), array('cat' = 'wow|uo')); Now you can access: domain.com/wow/sells domain.com/uo/sells in your controller's action you can check $this-params['cat'] which will contain either wow or uo.

Re: how to handle multiple gaming categories?

2008-08-20 Thread rocket
i will try this. it seems like the exact soln. i was looking for. ill let you know how ti goes! :) On Aug 20, 3:14 pm, biesbjerg [EMAIL PROTECTED] wrote: I would do it like this: Router::connect('/:cat/sells', array('controller' = 'sells', 'action' = 'index'), array('cat' = 'wow|uo')); Now

Re: how to handle multiple gaming categories?

2008-08-20 Thread rocket
i will try this. it seems like the exact soln. i was looking for. ill let you know how ti goes! :) On Aug 20, 3:14 pm, biesbjerg [EMAIL PROTECTED] wrote: I would do it like this: Router::connect('/:cat/sells', array('controller' = 'sells', 'action' = 'index'), array('cat' = 'wow|uo')); Now

Re: parameter 0 in requestAction do not work

2008-08-20 Thread biesbjerg
Hi Klaus, Try $this-requestAction(array('controller'='repairs', 'action'='getData'), array('pass' = array(0))); On 18 Aug., 11:11, Klaus Schwarzkopf [EMAIL PROTECTED] wrote: Hi, i use the requestAction funktion with a parameter. The value of the parameter is 0. My cake version is

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
Hi What error do you get exactly ? What happens when you point your browser to http://localhost/ ? Clément On Wed, Aug 20, 2008 at 9:12 PM, www.landed.at [EMAIL PROTECTED] wrote: thanks for your detailed help I tried the following for a specific directory im not as you say using

Re: HABTM cascading delete

2008-08-20 Thread Marcello
im a little new to referential integrity in the database directly, could you enligthen me? i got 5 tables Clients AddressClient Addresses Sellers AddressSeller what i need is, when i delete a client or a seller, it should also delete his addresses, BUT when i delete a address the client or

Re: HABTM cascading delete

2008-08-20 Thread Joel Perras
That will only work if your database engine supports foreign key constraints, such as MySQL InnoDB. The default MySQL MyISAM engine does not support any type of referential integrity; you can set the FOREIGN KEY/REFERENCES attributes, but they will be ignored. Other database implementations may

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread www.landed.at
GOT IT TO WORK BUT IS IT SECURE ? I placed Options +FollowSymLinks in the .htaccess file in the root of my cake install ! but why does this work, and should I use it like this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Acl and Auth slow page load

2008-08-20 Thread francky06l
Index your aco table on alias ... On Aug 19, 1:15 am, Marcus J. Ertl [EMAIL PROTECTED] wrote: Marcus J. Ertl schrieb: Hi again! I'm afraid, this is poor application design on my side too. :-( OK, I took a look into this! It was bad design on my side! :-( I've startet with more then 60

Re: Multiple Inserts without a loop

2008-08-20 Thread seth
Right, but how many inserts does this perform? And does the auto- magic know to use the Exam's newly created id? -seth On Aug 20, 10:36 am, teknoid [EMAIL PROTECTED] wrote: use saveAll() to store multiple records On Aug 20, 12:55 pm, seth [EMAIL PROTECTED] wrote: So it seems most

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
Weird. The Options parameter is better explained here (especially the + stuff): http://httpd.apache.org/docs/2.2/mod/core.html#options Your httpd.conf file may contain several encapsuled Directories that have options which interfere with the other (not sure if this sentence is clear, but it's

Re: Multiple Inserts without a loop

2008-08-20 Thread teknoid
Right, but how many inserts does this perform? - As many inserts as required And does the auto-magic know to use the Exam's newly created id? - Yes On Aug 20, 5:37 pm, seth [EMAIL PROTECTED] wrote: Right, but how many inserts does this perform?  And does the auto- magic know to use the

Re: Multiple Inserts without a loop

2008-08-20 Thread seth
Right, but how many inserts does this perform? - As many inserts as required Yes, but my whole point is that if you are inserting 1000 questions, this could be done in 2 interests or 1001... Is cake currently smart enough to do it in 2? --~--~-~--~~~---~--~~

Re: Help with Model:find()

2008-08-20 Thread lauren
On Aug 18, 8:43 am, Jon Bennett [EMAIL PROTECTED] wrote: ... a far easier solution to the problem would be to store an interger for the status, you could assign things like so: 0 - unpaid/unprocessed 1 - paid/processed 2 - dispatched 3 - refunded Before I finally discovered that there

Re: Multiple Inserts without a loop

2008-08-20 Thread Chris Hartjes
On Wed, Aug 20, 2008 at 5:51 PM, seth [EMAIL PROTECTED] wrote: Right, but how many inserts does this perform? - As many inserts as required Yes, but my whole point is that if you are inserting 1000 questions, this could be done in 2 interests or 1001... Is cake currently smart enough

Re: Multiple Inserts without a loop

2008-08-20 Thread teknoid
AFAIK, the syntax you are proposing is MySQL (or at least DB vendor) specific. So, it won't be supported by cake. And do you really insert 1001 rows? On Aug 20, 5:51 pm, seth [EMAIL PROTECTED] wrote: Right, but how many inserts does this perform? - As many inserts as required Yes, but

Re: Help with Model:find()

2008-08-20 Thread Jon Bennett
Hi lauren, Before I finally discovered that there were replies to my question :)I did end up going with a similar solution in order to avoid hackiness. Which actually brings me to another question: Should the following work?: Account has many Purchase Purchase belongs to Account

Re: Is this a crazy phbBB3 CakePHP idea?

2008-08-20 Thread designvoid
Yeah that was my plan, and how I have executed it. Seems to be working well, especially with Containable there to really target exactly what I want returned. Add to that the caching engine and I reckon this is gonna be a nice little bridge between my site and my forums. If by any chance anyone

Re: Help with Model:find()

2008-08-20 Thread Jon Bennett
Hi Lauren, I meant 'Purchase' not Payment! $this-Account-Behaviors-attach('Containable'); $account = $this-Account-find('first', array( 'conditions'=array('Account.id' = $account_id), 'contain'=array( 'Purchase'=array('conditions'=array(

Re: Acl and Auth slow page load

2008-08-20 Thread Marcus J. Ertl
francky06l schrieb: Hi! Index your aco table on alias ... I have allready done this! The results from the last mail are with this index! Bye Tiggr Indizes on acos: Name Typ KardinalitätFeld PRIMARY PRIMARY 433 id alias_index INDEX 36 alias

prefix routing and pagination

2008-08-20 Thread Marcus J. Ertl
Hi! There are some bugs with prefix routing and pagination. For short: It doesn't work for other prefix routes then the admin prefix. I found a patch for this at the bug tracker (#5115), but it didn't worked for me. I've played a bit with router php and the patch, and got a version, that work's

Re: HABTM cascading delete

2008-08-20 Thread Marcello
Im using innoDB already and i've also explained my need to use HABTM in this case, i didnt find any better solution because i needed to shared the tables. i think i will open a ticket but still i need a solution, even if its provisory On 20 ago, 18:24, Joel Perras [EMAIL PROTECTED] wrote: That

Cake Join is not working correctly... y ? please help

2008-08-20 Thread mrconfused
class Photocomment extends AppModel { var $name = 'Photocomment'; var $belongsTo = array('Photo' = array('className' = 'Photo', 'conditions' = '',

Re: HABTM cascading delete

2008-08-20 Thread Joel Perras
You could simply delete the records manually, i.e. store the foreign key of the record, delete the record, then use the foreign key to delete the join entry and/or the associated record on the other end of the HABTM relation. I don't think there exists a cleaner way, but if anyone else knows,

Re: Help with Model:find()

2008-08-20 Thread lauren
On Aug 20, 6:14 pm, Jon Bennett [EMAIL PROTECTED] wrote: there's no 'magic' method called 'unpaid', there's only: Yes, I know. :) I overrode the find() method in my Purchase model similar to what Nate Abele suggests in http://c7y.phparch.com/c/entry/1/art,mvc_and_cake public function

User Authentication Methods

2008-08-20 Thread cem
Hi all ; I am a newbie who tries to understand the basics for now . The thing is suppose that I want to build a web app which has multiple user types . Like premium member regular member admin etc . Which isthe best method to authenticate users ? ACL or the Auth component . I am aboutto solve

Re: Getting CakePHP to connect to MySQL

2008-08-20 Thread Peter Weicker
Thank you both. I decided to try installing Cake on my ISP instead of running it on my own PC. They asked me to send in photo ID before they'd let me use the system services I'd need to complete the install. Not very reassuring. So, I tried installing CodeIgniter and had it up 15 minutes after I

Re: HABTM cascading delete

2008-08-20 Thread nachopitt
Right, i forgot to tell you that. I prefer to let the RDBMS handle this, instead of having to write more code in the app. But changing from MyISAM to InnoDB can have its drawbacks. Anyway, Marcello I can see by looking at your model that you pretend to have both client and seller addresses in

Re: User Authentication Methods

2008-08-20 Thread teknoid
I think the manual sums it up pretty nicely: Realize that ACL is not the same as authentication. ACL is what happens after a user has been authenticated. Although the two are usually used in concert, it's important to realize the difference between knowing who someone is (authentication) and

Re: OrderedBehavior - Order your lists in a TreeBehavior like manner, but only for one level.

2008-08-20 Thread Dr. Tarique Sani
On Wed, Aug 20, 2008 at 4:03 PM, villas [EMAIL PROTECTED] wrote: @Tarique I am not arguing the value of bakery - you missed the point :D Well, in all fairness, I imagine Alkemann already knows about search engines but he would still like to publish his work on the Bakery. I believe

Single session across multiple site error

2008-08-20 Thread Riddhi
I need single login functionality across multiple sites. For this I implemented the following code:- if(isset($this-params['pass']['0']) $this-params['pass'] ['0']=='sid'){ $db = ConnectionManager::getDataSource('default'); $sql = SELECT data FROM cake_sessions s WHERE s.id = '.

Re: textbook find() query just doesn't work

2008-08-20 Thread Christian
Thanks for the response. I see that more clearly now. However, I still have the same problem even when doing a find() from the other model.. that is: GamePlayer belongsTo Game in my controller:... $cond = array(conditions=array(GamePlayer.user_id=1, Game.status=1));