Re: How can I do this query in CakePHP 1.1.x

2009-04-01 Thread Reggie Mason
I don't know for CakePHP v1.1.x. However, if you use CakePHP v1.2.2 - -- Here is the User Model array( 'foreignKey'=>false, 'type'=>'INNER', 'conditions'=>array('Page.user_id=User.id'),

Re: Using PHP to export MySQL data MS excel files

2008-12-11 Thread Reggie Mason
t; documents or post any blog that will aid me in getting started? > > On Dec 10, 3:12 am, Reggie Mason wrote: > > > I've had success with the PEAR's Spreadsheet Excel Writer > > --http://pear.php.net/package/Spreadsheet_Excel_Writer, with CakePHP. > > I&#x

Re: Capturing form errors

2008-12-10 Thread Reggie Mason
Use $form->isFieldError() in your view to check if there is an error for the field, and use $form->error() to display the error message. -ReggieB On Dec 10, 2:19 am, "Arthur Pemberton" <[EMAIL PROTECTED]> wrote: > When using the form helper to bind controls to data, validation errors > are helpf

Re: Using Gzip

2008-12-10 Thread Reggie Mason
I have this in a Directory block in my httpd.conf. It uses mod_deflate AddOutputFilterByType DEFLATE text/html text/plain \ text/javascript application/x-javascript text/ css >From howtoforge - http://www.howtoforge.com/apache2_mod_deflate -ReggieB On

Re: Using PHP to export MySQL data MS excel files

2008-12-09 Thread Reggie Mason
I've had success with the PEAR's Spreadsheet Excel Writer -- http://pear.php.net/package/Spreadsheet_Excel_Writer, with CakePHP. I'm not sure about charts; I'd leave that to Excel. Make sure PEAR is in your include path, and include it in your view. Enjoy. On Nov 26, 12:54 am, liaogz82 <[EMAIL P

Re: Remove password hashing in AuthComponent

2008-09-16 Thread Reggie Mason
Mark, The AuthComponent has an authenticate member. If you set this member to an object with a hashPasswords method, it will be used instead of the default behavior of the AuthComponent. One thing that a.php.programmer left off is to set this member in your app_controller. Here is an example i

Re: Best way to include functionality in models

2008-07-10 Thread Reggie Mason
You can always provide a base class other than AppModel that contains the extra methods you need for text processing. class TextModel extends AppModel { function textProcessing(){...} } class Article extends TextModel { function save(...){ $this->textProcessing(...); ...

Re: (n00b) Issue setting layout

2008-04-17 Thread Reggie Mason
Or without modifying pages_controller.php In /app/views/pages/one.ctp (for CakePHP1.2) layout='eggs'; ?> This page uses the eggs layout And, in /app/view/pages/about.ctp layout='bacon'; ?> This page uses the bacon layout On Apr 17, 7:59 am, grigri <[EMAIL PROTECTED]> wrote: > If you really n

Re: overriding tags

2008-03-07 Thread Reggie Mason
In my views, I've used: $html->tags['meta'] = 'replacementHtml%s%s'; On Mar 7, 9:08 am, Greg Baker <[EMAIL PROTECTED]> wrote: > Is there a standard way of changing a tag format? I notice in 1.2 > they're moved to htmlhelper.. I don't want to create a custom helper > just to override a tag in h

View this page "Cake Apps/Sites In The Wild"

2008-03-06 Thread Reggie Mason
Added http://www.todaysvalue.com - Realtor's Service - Find out how much your home is worth today! -reggieb Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~

Re: spanning a form

2008-03-06 Thread Reggie Mason
bob, Try the Wizard Component in the bakery - http://bakery.cakephp.org/articles/view/wizard-component There is also a tutorial - http://bakery.cakephp.org/articles/view/wizard-component-tutorial It already does what you want. It controls the flow from one page to the next, gives you callback

Re: using configuration file

2008-01-14 Thread Reggie Mason
Here is a quick solution to use the Configure object to save configuration files and edit them. http://bin.cakephp.org/view/908039160 On Jan 11, 5:09 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > I usually create app/config/settings.php , then in AppController > beforeFilter I do Configur

Re: CakeFest

2007-12-28 Thread Reggie Mason
Darn, I'd love to go... but that's the week of Mardi Gras! -reggie On Dec 27, 9:13 pm, Gwoo <[EMAIL PROTECTED]> wrote: > We hope everyone had a great holiday. We wanted to let you know about > some plans for the new year. One of the most exciting will certainly > be CakeFest. We hope you can joi

Re: PDF Creation in Cake 1.2

2007-10-30 Thread Reggie Mason
The bakery articles were for 1.1.x.x For 1.2 you will need to add a variable to the helper classes class PdfHelper { . . . var $helpers = array(); . . . } I hope this helps. -reggie On Oct 30, 6:41 am, kodienz <[EMAIL PROTECTED]> wrote: > Im currently using Version 1.2.0.5427alpha. > > I ha

Discussion on cake-apps-sites-in-the-wild

2007-08-16 Thread Reggie Mason
Mozilla Addons Site Implemented in CakePHP - Subversion http://svn.mozilla.org/addons/trunk/site/ --~--~-~--~~~---~--~~ 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@goog

auth.php - Using cake_1.2.5427alpha

2007-08-10 Thread Reggie Mason
I'm not sure under which conditions it occurs but in my new install of 1.2.5427, in CAKE/lib/controllers/components/auth.php:778, in AuthComponent::_normalizeURL it seems possible for $paths['base'] to be an empty string. This causes an error in the call to stristr. I no longer get the error,