Re: 1.2 ready for prime time?

2007-09-10 Thread Brad Daily
, are another matter ;) Brad --- Brad Daily Developer, SlideShowPro Director http://slideshowpro.net [EMAIL PROTECTED] On Sep 10, 2:50 pm, Troy Gilbert [EMAIL PROTECTED] wrote: I'm wondering how stable 1.2 is currently? I've got a site with a minimal

Re: AssetPackager for CakePHP

2007-07-30 Thread Brad Daily
--- Brad Daily Developer, SlideShowPro Director [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php

Re: AssetPackager for CakePHP

2007-07-30 Thread Brad Daily
Looks like the Bakery article is live: http://bakery.cakephp.org/articles/view/assetpackager-for-cakephp Brad --- Brad Daily Developer, SlideShowPro Director [EMAIL PROTECTED] On Jul 30, 2:52 am, Brad Daily [EMAIL PROTECTED] wrote: On Jul 30, 12

Re: AssetPackager for CakePHP

2007-07-30 Thread Brad Daily
I get error messages (doubled up app dir in paths). Remove the 'app' string in both cases and it works perfectly. I presume APP provides this subdir for you. HTH, Howard On 7/30/07, Brad Daily [EMAIL PROTECTED] wrote: Looks like the Bakery article is live: http://bakery.cakephp.org

Re: Reducing prototype?

2007-07-30 Thread Brad Daily
I'd also recommend implementing gzip[1] where possible. When I use AssetPackager to combine Prototype, Scriptaculous and my other custom javascripts, then tell my web server to gzip any javascript documents, it results in about 52k for that single file. [1]

AssetPackager for CakePHP

2007-07-28 Thread Brad Daily
Driven by ySlow[1] plastering an F on my application because of so many JS and CSS files (not to mention so much whitespace in those files), I really needed something like the AssetPackager plugin for Rails[2]. So last night and this morning I cobbled together a CakePHP version of AssetPackager.

Re: CakePHP php5?

2007-05-28 Thread Brad Daily
was a huge selling point for us choosing the framework, and we appreciate the Cake team's continued support of PHP 4. Brad --- Brad Daily Developer, SlideShowPro Director [EMAIL PROTECTED] On May 28, 8:17 am, R. Rajesh Jeba Anbiah [EMAIL PROTECTED

FYI: Network Solutions breaks PHP_SELF

2007-04-10 Thread Brad Daily
of the env() function to the top, so it intercepts any calls for PHP_SELF: if ($key == 'PHP_SELF') { return r(env('DOCUMENT_ROOT'), '', env('SCRIPT_FILENAME')); } Brad -- Brad Daily Developer, SlideShowPro Director http://www.slideshowpro.net

Re: Proposal for killer app

2007-03-29 Thread Brad Daily
application will surface that the community can be proud of. Brad -- Brad Daily Developer, SlideShowPro Director http://www.slideshowpro.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: Multiple file upload ?

2007-03-03 Thread Brad Daily
-upload-with-flash-and-ruby-on-rails/ On Mar 3, 4:08 pm, Sam Sherlock [EMAIL PROTECTED] wrote: Brad Daily uses something similar in ssp Director which is a cakePHP App. its either similar or its the same. The director multi - upload works very well. On 03/03/07, phirschybar [EMAIL PROTECTED

Re: function for other functions in controller?

2007-03-02 Thread Brad Daily
Prepend their names with an underscore: // A normal, viewable action function index() { $this-_dry(); } // Private function, not available via a URL function _dry() { // Blah } On Mar 2, 10:08 am, Mech7 [EMAIL PROTECTED] wrote: How should i add functions in controller which don't need

Patch feedback: Disabling sessions

2007-02-19 Thread Brad Daily
Hi everyone! Some time ago, I submitted a patch[1] that allowed you to disable sessions for either an entire controller or a subset of actions within a controller. My thinking was (and is) that turning AUTO_SESSION off is overkill when all you want to do is disable sessions for a limited number

Re: Patch feedback: Disabling sessions

2007-02-19 Thread Brad Daily
separation between objects. We'll keep you posted. On Feb 19, 2:10 pm, Brad Daily [EMAIL PROTECTED] wrote: Hi everyone! Some time ago, I submitted a patch[1] that allowed you to disable sessions for either an entire controller or a subset of actions within a controller. My thinking

SlideShowPro Director now baked w/ CakePHP

2007-01-08 Thread Brad Daily
://slideshowpro.net/product_sspdir.php [2] http://blog.bradleyboy.com/2007/01/05/baking-with-cakephp/ Brad Daily Lead Developer, SlideShowPro Director --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Extra queries to fetch associations

2006-12-02 Thread Brad Daily
Pardon my use of a Rails example here, but that is my reference point. Let's say I have two models, Album and Image. Obviously: Album hasMany Images Image belongsTo Album In Rails, I would do this: albums = Album.find(:all, :include = [ :images ]) Which would produce this query: SELECT

Catching DB connection failure

2006-11-29 Thread Brad Daily
We are using Cake in a project that will eventually be distributed to be installed on a user's server. One thing I am struggling with is how to catch when they have entered the wrong connection details for their particular database server in the configuration file. Is there an easy way to catch

Re: Catching DB connection failure

2006-11-29 Thread Brad Daily
Thanks Mariano, that did the trick. One change I had to make was commenting out this line in the else statement: $DataSource-disconnect(); Mariano Iglesias wrote: Edit your webroot/index.php file and look for the following lines: $Dispatcher=new Dispatcher(); $Dispatcher-dispatch($url);

Re: Flash 8 upload w/ Cake results in corrupted files

2006-10-21 Thread Brad Daily
Just to follow up, I found the following workaround in case anyone else runs into this. After the move_uploaded_file call returns true, I do the following: if (move_uploaded_file($this-params['form']['Filedata']['tmp_name'], $lg_temp) { copy($lg_temp, $lg_path); unlink($lg_temp);

Re: Flash 8 upload w/ Cake results in corrupted files

2006-10-21 Thread Brad Daily
I should have been more clear with my example. The destination_dir variable is actually the full path the the destination director plus the file name (held in $this-params['form']['Filedata']['name']). When I was using that alone, it was writing the appropriate file (with the correct name) to

Flash 8 upload w/ Cake results in corrupted files

2006-10-20 Thread Brad Daily
(PHP 5.1.6, Apache 1.3, Cake 1.1.8.3544) We are in the process of porting an existing PHP app to cake, and have ran into an odd problem with file uploads (for images) using Flash 8. The image appears to upload correctly, to the correct directory, but when you try to open the file, it is