Cache not configured properly

2009-07-25 Thread eric.winch...@gmail.com
Warning (512): Cache not configured properly. Please check Cache::config(); in APP/config/core.php [CORE\cake\libs\configure.php, line 663] core.php: Configure::write('Cache.check', true); Configure::write('Cache.disable', false); Cache::config('default', array(

CakePHP Lifecycle

2009-07-22 Thread eric.winch...@gmail.com
I remember seeing a CakePHP Lifecycle flow chart about a year ago but then the file disappeared. Is there an official lifecycle document? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to th

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-19 Thread eric.winch...@gmail.com
The bad news is I am an idiot. The good news is the solution is to not use LOCALHOST. I changed C: \Windows\System32\drivers\etc\hosts 'localhost' to 'localhost.com' and Facebook cookies work the way they should. On Jul 19, 11:12 pm, "eric.winch...@gmail.com" wr

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-19 Thread eric.winch...@gmail.com
on the FB Wiki but tricking Cake to use Facebook's session seems like the wrong thing to do. Given this problem, I don't understand how this works: http://cutfromthenorth.com/integrating-facebook-connect-with-cakephps-auth-component/ On Jul 19, 4:02 pm, "eric.winch...@gmail.com&quo

Session/Cookie problem with Facebook JS + PHP

2009-07-19 Thread eric.winch...@gmail.com
I'm attempting to use Facebook Connect with its PHP library. That gets the user logged in ok but then using the PHP libs: $facebook->get_loggedin_user() is always NULL. Anyone run into this? I'm wondering if it has something to do with Cake taking over the sessions and cookies. --~--~-

Prepopulating select menus

2009-07-12 Thread eric.winch...@gmail.com
$form->input('User.some_option_id', array('type'=>'select', 'options'=> $sharing_levels, 'label'=>false, 'div'=>false)); I can verify $this->data['User']['some_option_id'] has a value, but the select menu does not use it for SELECTED. I realize there is a "selected" option but is the standard to

Re: Route specific ID to external domain

2009-07-10 Thread eric.winch...@gmail.com
Subdomain, but I'm guessing it doesn't matter if Cake isn't parsing http:// On Jul 10, 12:23 pm, Carlos Gonzalez Lavin wrote: > First of all... external domain or subdomain? > > 2009/7/10 eric.winch...@gmail.com > > > > > > > Curious as to whether

Route specific ID to external domain

2009-07-10 Thread eric.winch...@gmail.com
Curious as to whether something like this is possible: Router::connect('http://nashville.commonarea.com', array('controller' => 'cities', 'action'=>'index'), array('city_id'=>116031)); It doesn't seem to work, but what is the reason? --~--~-~--~~~---~--~~ You rece

mod_rewrite custom 404 troubleshooting

2009-07-10 Thread eric.winch...@gmail.com
I'm attempting a custom 404 image by modifying app/webroot/.htaccess RewriteEngine On RewriteCond %{REQUEST_URI} ^/img* RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /img/404.gif [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f Re

Re: $conditions 'reset' key in terms of Containable

2009-06-16 Thread eric.winch...@gmail.com
7;, 'FileType'))) ); $albums = $this->paginate('AreaAlbum'); This is what I was trying to do before: $this->AreaAlbum->contain('Album.User.first_name', 'Album.User.last_name', 'Album.User.id', 'Album.CoverImage.WebResource',

Re: $conditions 'reset' key in terms of Containable

2009-06-16 Thread eric.winch...@gmail.com
me, "deep" SQL queries is the most frustrating part of using Cake. On Jun 16, 11:37 pm, brian wrote: > There's a 'reset' param? Is that documented anywhere? > > On Tue, Jun 16, 2009 at 11:23 PM, > > > > eric.winch...@gmail.com wrote: > > > C

Re: $conditions 'reset' key in terms of Containable

2009-06-16 Thread eric.winch...@gmail.com
Something I just discovered and maybe the more important question - why doesn't Containable work on HABTM 'with' relationships? On Jun 16, 10:23 pm, "eric.winch...@gmail.com" wrote: > Can anyone describe why 'reset'=>false must be in $conditions for >

$conditions 'reset' key in terms of Containable

2009-06-16 Thread eric.winch...@gmail.com
Can anyone describe why 'reset'=>false must be in $conditions for Containable usage of any complexity? I have queries that go from taking an unbearable 20 seconds to an almost unbearable 3 seconds, but I don't understand what 'reset' has to do with it. The ones where it really counts are using up

MySQL function escape with multiple conditions

2009-06-16 Thread eric.winch...@gmail.com
$event_conditions = array( 'Event.start'=>array('< -!DATE_ADD(CURDATE(), INTERVAL 7 DAY)', '> -!DATE_SUB(CURDATE(), INTERVAL 1 DAY)') ); Cake is producing an IN() statement. I'm wondering how to use MySQL functions with more than one condition? --~--~-~--~~~---~--~