Hi guys, I did a search but didn't find a match for this issue,
 
I have cake running and the blog tutorial put together part way and it works but I get warnings at the top of my pages :
 
Warning: file_put_contents(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\app\tmp\cache\models\default_caketest_list) [function.file-put-contents]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\cake\basics.php on line 835

Warning: file_put_contents(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\app\tmp\cache\models\default_posts) [function.file-put-contents]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\cake\basics.php on line 835
 
I created the folders incase I was supposed to :)  But is it a permissioning issue where cake can't write a cache file ? or something else ?
 
cheers,
Grant
 
 

………………………………. 
b l u e t u b e p r o d u c t i o n s
.: Grant Davies  { c.t.o }
.: 404.428.6839 (office)
.: 708.983.1577 (fax)
[EMAIL PROTECTED]
http://www.bluetube.com
http://theresidentalien.typepad.com
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sonic Baker
Sent: Sunday, October 22, 2006 8:22 PM
To: [email protected]
Subject: Re: Using Simpletest and the Cake testing framework... with models

Hi there,

See if the following helps:




// testing insert
function test1()
{
   $data = "" // stuff here );
   $this->assertTrue($this->user->save($data));
}
// testing fail to insert duplicate data
function test2()
{
   $data = "" // same stuff here );

$this->User->cacheQueries = false;
 

   $this->assertFalse($this->user->save($data));


$this->User->cacheQueries = true;
 

}


I'm not sure if it needs to be set back to true afterwards so I put it there just to be safe.

You could also probably put these in the setup() and teardown() methods but again I'm not certain how this will affect the rest of the app.

I asked these questions before but didn't get any responses. Perhaps someone can shed some light on the subject?
http://groups.google.com/group/cake-php/browse_thread/thread/f63c6883a8d301ff/211449bb08d706fe?lnk=gst&q=cacheQueries&rnum=1#211449bb08d706fe

HTH

Cheers,

Sonic



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to