Re: Auth Component - I'm going crazy

2008-08-25 Thread aranworld
I have had situations in which I was unable to use a column named "password" and had to instead use something like "passwd". I believe it is a reserved keyword issue with MySQL? Not sure if it was just related to an older version, but you might at least try changing the column name. -Aran On A

Re: Using Containable with Find One?

2008-08-25 Thread David C. Zentgraf
The 'one' you're looking for is called 'first'. Then, feed the arguments to find() in the right order: $this->Model->find( 'first', array( 'conditions' => array('slug' => $slug), 'contain' => array('Listing') ) ); On 26 Aug 2008, at 14:01,

Using Containable with Find One?

2008-08-25 Thread WildFox
All of the examples ive seen with Containable use $this->Model- >find('all', array('contain' => array('Stuff'))); - However, how can you use 'contain' with a simple find one? Is there such thing as $this- >Model->find('one')? I tried the following, which is also using the where param but its not

Re: Is there any good way to make url difficult to guess

2008-08-25 Thread Dr. Tarique Sani
On Tue, Aug 26, 2008 at 8:54 AM, Jerry <[EMAIL PROTECTED]> wrote: > > Hi: > > is there any way to make application url difficult to guess? > since cake reads record by id, it also provides a way for user to > guess the record to retrieve. Use uuid instead of integers for id See the manual on ho

Is there any good way to make url difficult to guess

2008-08-25 Thread Jerry
Hi: is there any way to make application url difficult to guess? since cake reads record by id, it also provides a way for user to guess the record to retrieve. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Unable to get list of users into page

2008-08-25 Thread validkeys
Are you using the built in pages controller or did your create your own MVC called pages? This may be conflicting with the built in pages controller. If that is not the case, you may want to try this is your pages controller: $userslists = $this->Page->User->getUserList(); $this->set('userlist',$

Is ACL what I should be using?

2008-08-25 Thread validkeys
I am spec'ing out a new project. This project is going to have a similar set up to a project manager like basecamp with many companies, each having many users with different roles. There will be lots of messages, tasks etc... What I am wondering is if with such a high volume of content, whether A

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-25 Thread giulio
Hi, Thank you for your help, now i set the path correctly to the environment so i can execute .php files. But i still have two problems with the paths and one with a .dll. When i type in my htdocs folder "cake bake c:\xampp\htdocs\blog" it start to bake but before i have this warning PHP Warni

Re: JSON troubles

2008-08-25 Thread Kyle Decot
Sorry That's a typo. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: JSON troubles

2008-08-25 Thread hydra12
I'm still curious - in your first post, you use a param in the url called id. It equals 6. You said it worked. In your jquery code, you use state_id=6 instead of id=6. Could that be the problem, or is it a typo? --~--~-~--~~~---~--~~ You received this message be

Re: JSON troubles

2008-08-25 Thread Kyle Decot
I am using 1.2. I took out the $html->url and hardcoded a url in there and still no success. the jquery code in my source looks like: $("#states-dropdown").change(function() { var optionList; $.getJSON("http://localhost/pages/list.json?state_id=6",function(data) {alert(data);})

Re: how to handle multiple gaming categories?

2008-08-25 Thread Adrian
Yes, the method described by biesbjerg will probably work better. I was previously working under some flawed assumptions. On Aug 20, 3:29 pm, rocket <[EMAIL PROTECTED]> wrote: > 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:1

Re: Custom Routes & Back Tracing with CakePHP 1.2

2008-08-25 Thread Adrian
Thank you, I did and I had replied to it also with my previously flawed method. However I needed something even more generic than what you described. The link I posted on my original message describes something similar. After a lot of playing around with the routes and dumping the $this->params va

Re: MD5 Passwords Help

2008-08-25 Thread Baxter
Unfortunately, removing that line just makes it redirect to the login page and displays the auth error. Keeping the line actually does log the user in. I don't know where to start! On Aug 25, 2:10 pm, aranworld <[EMAIL PROTECTED]> wrote: > I'm not sure how the rest of your app is configured, bu

Re: JSON troubles

2008-08-25 Thread hydra12
OK, I missed where the line wrapped, too. A couple of things: 1. In the working link, you have a parameter called id. In the non- working one, you have state_id. 2. Why are you calling the html helper in your javascript? Are you using cake 1.1? 1.2 doesn't have $html->url. 3. If you do mean

Re: Auth Component - I'm going crazy

2008-08-25 Thread Chris Hartjes
On Mon, Aug 25, 2008 at 3:32 PM, luigi7up <[EMAIL PROTECTED]> wrote: > I found few posts about this problem but none of them resolves my > problem. Really hard to diagnose without seeing any code. Have you tried looking at this fantastic tutorial on using the Auth component? http://www.littleha

Auth Component - I'm going crazy

2008-08-25 Thread luigi7up
Ola, everyone... //Using RC2 version of CakePHP I'm building simple application that allows users to write articles. So there are their corresponding models and controllers. Few days ago I made custom Login/register part of application that writes username to session etc. but now I decided to u

SQL Server Express Connection

2008-08-25 Thread claryda
I have a requirement to use MS SQL Server but I can use PHP to program the application. I have known about CakePHP for sometime but had never tried it until yesterday. While I can setup the DB to my app in MySQL and SQLite without issues, I cannot connect successfully to SQL Server Express. I have

Re: MD5 Passwords Help

2008-08-25 Thread aranworld
I'm not sure how the rest of your app is configured, but my guess is that the last line is causing you problems: $this->Auth->login($this->User); I'm not sure it is necessary to do this, because now that you have modified the database entry for the user, I believe the standard AuthComponent logi

Re: relationships, joins and pagination. I've hit a wall.

2008-08-25 Thread Ariel Arjona
The issue is basically that I have 2 models (Sample and FormationsSite) that share the same parent (Site) and are in turn related to each other by virtue of 1 field on one (Sample.depth) and 2 fields on the other (FormationsSite.formtop and FormationsSite.formbot). I need some way to express that

Re: JSON call circumvents Auth component?

2008-08-25 Thread the_woodsman
I haven't done your expieriment for you, but I don't see how this could circumvent secuirty - parseExtensions applies to which views get rendered, and Auth is done way before that, surely? On Aug 25, 6:48 pm, Jonathan Snook <[EMAIL PROTECTED]> wrote: > I haven't had a chance to check this out in

Re: Struggling with associated models ... still .... :-(

2008-08-25 Thread clemos
Hi Hehe, now there's too much information :) Your problem is here: >function index() { >$this->pageTitle = 'CTT::All venues'; >$this->set('venues',$this->paginate('Venue')); >$venues = $this->Venue->Contact- >>find('first',array('conditions'

Re: make .js on fly using cakephp

2008-08-25 Thread the_woodsman
Perhaps you're having problem serving up JS files from a controller action? If so, make sure you set layout to null/ false in the controller, so that you don't get your site's general HTML, which would stop the JS from parsing. This will allow you to say Also, if you're desperate to have an .js

Re: three level deep belongsTo

2008-08-25 Thread [EMAIL PROTECTED]
never mind, sorry to bother you, knew this was a waste of time. On Aug 25, 1:18 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Aug 25, 8:13 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > sorry, I think I follow, maybe more specific objects will help, I have > > > Patient -> Diet Plans

Re: three level deep belongsTo

2008-08-25 Thread AD7six
On Aug 25, 8:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > sorry, I think I follow, maybe more specific objects will help, I have > > Patient -> Diet Plans -> Diet Calendar Day > > So Patient hasMany diet plans with each Diet Plan having many Diet > Calendar Days > > I need to draw a s

Re: three level deep belongsTo

2008-08-25 Thread [EMAIL PROTECTED]
sorry, I think I follow, maybe more specific objects will help, I have Patient -> Diet Plans -> Diet Calendar Day So Patient hasMany diet plans with each Diet Plan having many Diet Calendar Days I need to draw a screen of all patients and loop through 2 weeks of the calendar, filling in details

Re: three level deep belongsTo

2008-08-25 Thread AD7six
On Aug 25, 7:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've scoured the group looking for a solution to this, can't make it > work with containable or with recursive = 2.  I'm using latest > (nightly) 1.2 > > Model1 hasMany Model 2 > Model2 belongsTo Model 1 > Model2 hasMany Model

Show errormessages

2008-08-25 Thread Jim-Bingo
How do I show the errormessages that I specified in the model? like this: 'message' => 'An errormessage' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-ph

JSON call circumvents Auth component?

2008-08-25 Thread Jonathan Snook
I haven't had a chance to check this out in any detail and since there are multiple people touching this app, I just wanted to ask: is it possible to circumvent the Auth component by creating a request via a JSON call (with parseExtensions enabled)? (I know I'm being really lazy here since I have

Re: Pagination question about filtered views

2008-08-25 Thread clemos
Hi You need to set the "url" option of the paginator, by writing this kind of code on top of your view (before the paginator links are generated) options(array("url"=>"/categories/view/".$category_id)); ?> +++ Clément On Sun, Aug 24, 2008 at 6:33 PM, itsnotvalid <[EMAIL PROTECTED]> wrote: >

Do I have to change webroot config ? Cake Newbie

2008-08-25 Thread pmit
I have some experience in php and mysql but am a complete newbie to cakephp. I have successfully set up such php software as media wiki. I am developing on a Ubuntu 8.04 system, I am not sure what the target system specs are Do I need to know. In some articles I found there was discussion ab

three level deep belongsTo

2008-08-25 Thread [EMAIL PROTECTED]
I've scoured the group looking for a solution to this, can't make it work with containable or with recursive = 2. I'm using latest (nightly) 1.2 Model1 hasMany Model 2 Model2 belongsTo Model 1 Model2 hasMany Model 3 Model3 belongsTo Model2 So, I was really hoping to do a $this->Model3->find('al

Re: JSON troubles

2008-08-25 Thread Kyle Decot
Well I must say that was a stupid mistake on my part but I updated my code to include the correct URL and still the same thing is happening. Any ideas ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Re: Allowing entire controllers with Auth component

2008-08-25 Thread Sam Sherlock
try $this->Auth->allow(array('display')); parent::beforeFilter(); 2008/8/23 tekomp <[EMAIL PROTECTED]> > > I'm using the Auth Component in my app_controller.php in the > beforeFilter function, which is great for making people login, but I'm > having a hard time allowing certain pa

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-25 Thread giulio
Hi clement, Thank you for your help, but i've not understood. Where i've to add the path to php.exe cli to my path environment variable? Could you resume for me all the process? I know that this it's not a cake php issue, but a problem with the environment, but i can find a solution. Thanks f

READ and SAVE SIDE EFFECT QUESTION

2008-08-25 Thread MikeK
I was debugging some filter code and came across some side effects I never noticed before and wanted to confirm them and whether or not these effects should be assumed by code or not. I noticed that invoking $this->model->read() always sets $this->data to the results. Never knew this before, alwa

Re: Cannot find core classes 1.2 RC2

2008-08-25 Thread Steven Chan
Actually I deleted them all. In fact when they were all deleted then I got this weird error. Only when I had run a controller that didn't need to use session and the files in app/tmp/persistent got regenerated then the app started running fine. Weird... On Aug 25, 8:58 pm, clemos <[EMAIL PROTECT

Re: Custom Routes & Back Tracing with CakePHP 1.2

2008-08-25 Thread biesbjerg
TAke a look at http://groups.google.com/group/cake-php/browse_thread/thread/1a53136e5d9825de/5d8fb07be683c39e?lnk=gst&q=biesbjerg#5d8fb07be683c39e On 25 Aug., 15:17, Adrian <[EMAIL PROTECTED]> wrote: > I am working on a site that will need 3 themes, one each for the games > the community is playi

Re: JSON troubles

2008-08-25 Thread hydra12
> If I directly navigate tohttp://localhost/pages/list.json?id=6 then the array > will show up no > problem. might help. > > > > $("#states-dropdown").change(function() { > > $.getJSON("url("http://localhost/page

Re: JSON troubles

2008-08-25 Thread Staple
Hi, I'm sorry I can't help you with this :-) But maybe you could help me producing a Json array? I followed the pagebakers.nl tutorial and can get a Json file from a controller ie /records.json but I can't get one from /records/1 or /records.json?id=1 I am using $this->RequestHandler->setContent

Re: File Upload -- help please

2008-08-25 Thread clemos
This list is slowly becoming a STFW messages contest :) http://www.catb.org/~esr/faqs/smart-questions.html#rtfm +++ Clément On Mon, Aug 25, 2008 at 4:19 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > On Mon, Aug 25, 2008 at 6:30 AM, Astha Shukla <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Coul

Re: Default Cake Deployment on GoDaddy

2008-08-25 Thread www.landed.at
was there any clear solution to this ? Im stuck here as well. --~--~-~--~~~---~--~~ 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 unsubscribe from this gr

Re: keeping model cache might improve performace

2008-08-25 Thread stefanski
OK, nice! Now my performance improved a lot using these lines: Cache::config('_cake_model_', array('engine' => 'File', 'duration' => 3600)); Cache::config('_cake_core_', array('engine' => 'File', 'duration' => 3600)); in app/config/core.php Thanks a lot, Gwoo! :-) -- PS: Setting the default c

JSON troubles

2008-08-25 Thread Kyle Decot
I'm using jQuery to pull in a JSON array that I'm creating with a simple $this->Category-find('list'); The problem is that when I use jquery to pull it in, I get a 404. If I directly navigate to http://localhost/pages/list.json?id=6 then the array will show up no problem. Any clues to why this is

Re: Page Not Found Error In cake_1.2.0.7296-rc2

2008-08-25 Thread atillakurucan
Mine hasn't worked yet. I followed this conversation but I didn't get right solution. When I change the default value of Router::connect(...), cakePHP welcome page doesn't work either. What else can I check? On Aug 1, 12:37 pm, amit_2006_it <[EMAIL PROTECTED]> wrote: > Thank you guys for sharing

Re: File Upload -- help please

2008-08-25 Thread Donkeybob
yea . . . this was actually asked 5 days ago. the search box is an amazing tool. . . . http://groups.google.com/group/cake-php/browse_thread/thread/e77705247cfb0d44/bb04ce1ecdc1b217#bb04ce1ecdc1b217 On Aug 25, 9:30 am, "Astha Shukla" <[EMAIL PROTECTED]> wrote: > Hi, > Could any one please teach

Re: $ajax->drag - can't scroll inside draggable div

2008-08-25 Thread meximex
thx for your help guys! oncomplete as a parameter didnt work in fact. 'loaded' did. On 22 Aug., 16:04, clemos <[EMAIL PROTECTED]> wrote: > Hi > > The right callback for creating your Draggable once your Ajax call is > done should be "oncomplete" (add "oncomplete":function(){new > Draggable...}

Re: testAction and Mock objects

2008-08-25 Thread mark_story
On Aug 25, 8:52 am, cdamian <[EMAIL PROTECTED]> wrote: > I also have problems with testAction() and fixtures, somehow it does > not seem to be quite ready yet. > > On Aug 25, 1:50 pm, JuergenRiemer <[EMAIL PROTECTED]> wrote: > > > One thing I have to add: if I call the methods directly like > > $t

Unable to get list of users into page

2008-08-25 Thread SC think
Hi, I got stuck for a few days, try searching but no luck. Do anyone has a solution for this problem? What I'm trying to do is that the admin is able to change the author of the page by selecting in the dropdown list. Just like wordpress. Btw, I using cakephp 1.2 RC2. user association: hasMany

Re: File Upload -- help please

2008-08-25 Thread Samuel DeVore
On Mon, Aug 25, 2008 at 6:30 AM, Astha Shukla <[EMAIL PROTECTED]> wrote: > > Hi, > Could any one please teach me,, How can I upload a file in to server folder > using CakePHP (I do not want to store a file into database) > for example I have a file say add.thtml in view folder that is uploading a

please help me with the set class

2008-08-25 Thread MarcS
Hi, I have the following data 0: array = Person: array = id: long = 1 name: string = "n1" group_id: long = 1 1: array = Person: array = id: long = 2 name: string = "n2" group_id: long = 1 2: array = Person: array = id: long = 3 na

Re: cakephp Linux

2008-08-25 Thread AndyV
There's no big difference installing Cake in Linux, check the manual: http://manual.cakephp.org/view/308/installing-cakephp And try searching the Group: http://groups.google.com/group/cake-php/browse_thread/thread/00255ae86f5c9e62 On Aug 22, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

Re: Please help me

2008-08-25 Thread Dardo Sordi Bogado
It seems like you screwed the routes, show us your APP/config/routes.php On Mon, Aug 25, 2008 at 6:41 AM, lacithetemplar <[EMAIL PROTECTED]> wrote: > > Is here someone, who knows, how can I solve this problem with webroot > at http://mpw-test.netlife.sk/ ? > thanks > > > > --~--~-~--~---

Re: HABTM cascading delete

2008-08-25 Thread nachopitt
Ok, I understand your point, but that would lend you to the possibility of have a single address, being of a seller or a client, to be owned by a client AND by a seller any number of times, and I dont think you want to share an address that way. I can think in a possible solution, by having a par

File Upload -- help please

2008-08-25 Thread Astha Shukla
Hi, Could any one please teach me,, How can I upload a file in to server folder using CakePHP (I do not want to store a file into database) for example I have a file say add.thtml in view folder that is uploading a file and I have add function in cotroller, what code should I need to write in add.t

Custom Routes & Back Tracing with CakePHP 1.2

2008-08-25 Thread Adrian
I am working on a site that will need 3 themes, one each for the games the community is playing. After reading about custom routes I thought I had the brilliant idea of using prefix routes to set the variable of the game. So I set up 3 routes like so Router::connect('/jge/:controller/:action', ar

Re: testAction and Mock objects

2008-08-25 Thread cdamian
I also have problems with testAction() and fixtures, somehow it does not seem to be quite ready yet. On Aug 25, 1:50 pm, JuergenRiemer <[EMAIL PROTECTED]> wrote: > One thing I have to add: if I call the methods directly like > $this->UsersController->display(); > the mocking works like a champ...

Re: Cannot find core classes 1.2 RC2

2008-08-25 Thread clemos
Hi To avoid these kind of issues, you should delete all files in your tmp/ directory (the files, not the directory structure !) every time you update your Cake version, and eventually when you modify your models, paths (I noticed that renaming the cake app directory name could lead to similar iss

Re: Create links to navigate back to last visited page

2008-08-25 Thread Marcin Domanski
The Formhelper does NOT need JS :) As fot the OP problem - you can save the actual page to the the session. If there is a page in session - get the url, if its different then the actual - save the actual (you have the one for back in the var). It has drawbacks but its closest you can get. -- Mar

Cannot find core classes 1.2 RC2

2008-08-25 Thread Steven Chan
Hi all, I recently upgraded to Cake 1.2 RC2 and deployed it on my server. Something strange happened. The installation kept saying that it could not find the 'Security' class in CORE/session.php and then dying. Very frustrating. I was really at a loss what to do when I just started. I had the se

Re: Please help me

2008-08-25 Thread Steven Chan
Maybe you should call your controller something else other than app_controller? Also what does your index() action look like? On Aug 25, 5:41 pm, lacithetemplar <[EMAIL PROTECTED]> wrote: > Is here someone, who knows, how can I solve this problem with webroot > athttp://mpw-test.netlife.sk/? > th

Re: cakephp Linux

2008-08-25 Thread mariuz
On Aug 22, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, I ´m trying to install ang configure cake in linux and I dont now > how. I have no expierence neither in linux nor cake. I need step by > step the instructions. > Thank you very much... On ubuntu is quite simple install ph

Cakephp tutorial for Ubuntu Firebird and Nginx

2008-08-25 Thread mariuz
This tutorial will walk you through the creation of a simple blog application. We’ll be getting and installing Cake, creating and configuring a database, and creating enough application logic to list, add, edit, and delete blog posts. What is needed : Firebird ,Ubuntu , Nginx and Php but it shoul

Please help me

2008-08-25 Thread lacithetemplar
Is here someone, who knows, how can I solve this problem with webroot at http://mpw-test.netlife.sk/ ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake

Re: testAction and Mock objects

2008-08-25 Thread JuergenRiemer
One thing I have to add: if I call the methods directly like $this->UsersController->display(); the mocking works like a champ... yet in that case: how to easily pass on POST data to "display"? --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: something like Joomla modules

2008-08-25 Thread James K
You can implement something like Joomla modules fairly easily via CakePHP's elements. Elements are fairly self-contained blocks of code that can be called from views or even controllers. The only difference is you have to pre-fetch your data and pass it to the element rather than have the element

Re: Composite primary key

2008-08-25 Thread James K
Cake does not support composite primary keys, but a work around would be to add a single primary key field (id), and then set a unique constraint on your composite key fields. Same effect, and works with cake. If you want to do a custom query, just do $this->modelName- >query('INSERT INTO MyTable

Re: MD5 Passwords Help

2008-08-25 Thread Baxter
I've gone ahead and done what JS recommended, and it's all working, except for one little thing. After I convert the password and log the user in, an Auth error is displayed, even though they are logged in successfully. Here's what I have in my Users beforeFilter: if(!empty($this->data) && isse

Re: Create links to navigate back to last visited page

2008-08-25 Thread David C. Zentgraf
I personally am really against any kind of Javascript in links, as it messes with my browsers ability to open links in new tabs/windows on my command. If you want to implement solution #2, attaching a referring URL to each and every link, you could extend/overload the HtmlHelper with som

Re: CakePHP without database access. Webservices only

2008-08-25 Thread LepinskiWA
I am using this approach on a project. Looking on the Internet found a way using *datasources*. var $webservice = array( 'datasource' => 'webservice' ); create the file interactive_source.php inside model/datasources.. and in the app_controller.php class AppController extends Controller

Re: error message

2008-08-25 Thread clemos
Hi lunet I don't think Message is a reserved keyword. Can you tell us a little more about your table, model, association, and also copy the SQL query that generates this error ? ++ Clément On Mon, Aug 25, 2008 at 8:39 AM, . <[EMAIL PROTECTED]> wrote: > I have a class called Message. When I

Re: Create links to navigate back to last visited page

2008-08-25 Thread clemos
Hi draikin I think we can consider CakePHP actually "needs" Javascript. Of course you can use Cake to develop javascript-free apps, but lots of Cake features, for example some of the FormHelper functionnalities, actually require javascript... You could use a code that use both, like: controller:

Re: Struggling with associated models ... still .... :-(

2008-08-25 Thread eagle
Jon, Thanks for the pointer. I had looked at containable behaviour as it seemed to be the solution. This was what I tried (in venues_controller.php): debug($this->Venue->find('all', array('contain' => array('Contact' => array('conditions' => array('Contact.jobType' =>'main'; $this->set('venu

Re: Struggling with associated models ... still .... :-(

2008-08-25 Thread eagle
Thanks both - that explains a lot. I did not realise that a call to paginate was also a call to the database. Being new to Cake, I am used to writing SQL calls 'by hand', the hardest thing seems to be that SQL calls are 'hidden'. I know they're not really but it takes some getting used to worki

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

2008-08-25 Thread [EMAIL PROTECTED]
I set my Debug to 2 to have a look at when Cake does joins in my app. hasOne does a JOIN belongsTo does a JOIN hasMany just selects on the related table with a WHERE clause HABTM does a few queries and things. So, like you say, your find should work from $this->GamePlayer->find() since it belong

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-25 Thread clemos
Hi Giulio I'm not really an expert with MinGW, but I guess you should either: - link your php.exe to /usr/bin/, with something like (assuming php is at c:\Program Files\PHP5): ln -s "/c/Program Files/PHP5/php.exe" /usr/bin/php.exe - add "c:\Program Files\PHP5\ to your PATH environnement variable

testAction and Mock objects

2008-08-25 Thread JuergenRiemer
Hi, I want to test a function of Users (display) which calls a component (Country) its function "countryName" respectively. Now I want to mock this component and have it return a predefined value. I thought of using testAction and setup my test like below. the problem: the mock doesn't seem to wo