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

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-20 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 eric.winch...@gmail.com wrote: More

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. fb:login-button onlogin=update_login_box()/fb:login-button 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

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-19 Thread eric.winch...@gmail.com
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 eric.winch...@gmail.com wrote

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 check

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 IfModule mod_rewrite.c RewriteEngine On RewriteCond %{REQUEST_URI} ^/img* RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /img/404.gif [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond

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

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 carloslavi...@gmail.com wrote: First of all... external domain or subdomain? 2009/7/10 eric.winch...@gmail.com eric.winch...@gmail.com Curious as to whether something

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?

$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

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 eric.winch...@gmail.com wrote: Can anyone describe why 'reset'=false must be in $conditions for Containable usage of any

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

2009-06-16 Thread eric.winch...@gmail.com
Not documented as far as I know. It's just Containable weirdness, probably having to do with binding. Anyone know why Containable doesn't work with HABTM 'with' relationships? I had it working when it was a 3rd party behavior, but it's definitely not working now. For me, deep SQL queries is the

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

2009-06-16 Thread eric.winch...@gmail.com
', 'Album.CoverImage.WebResource', 'Album.CoverImage.FileType'); $albums = $this-paginate('AreaAlbum'); Apparently the array format + $conditions is the way to go with paginate. On Jun 16, 11:55 pm, eric.winch...@gmail.com eric.winch...@gmail.com wrote: Not documented as far as I know. It's just