Missing model in console script error

2008-02-08 Thread roliver
Hi I have a simple console script called alert.php in /vendors/shells. I am using only one model. I have it define with the $uses var and I am trying to execute a findAll method on Model. I know this model works becuase I use the same one in several controllers in my main application. Each time

Re: using substring with findAll

2008-02-04 Thread roliver
;, array('conditions' => array( > 'Person.name' => 'LIKE J%' > ))); > > SQL : SELECT `Person`.`id`, `Person`.`name`, **snip** FROM `people` AS > `Person` WHERE `Person`.`name` LIKE 'J%' > > Hope this helps > > On Feb

Re: using substring with findAll

2008-02-04 Thread roliver
27;conv_rate','cost_per_conv')) > > On Feb 1, 3:56 am, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > > > You should turn on debugging to see the actual SQL that is being > > executed, and then try running it in Mysql. > > > Wayne > > &g

using substring with findAll

2008-01-31 Thread roliver
Can anyone tell me if it is possible to use the 'substring' keyword in Model->findAll() I'm trying to do this but I keep getting the mysql error "you have an error in yoru sql near...blah..blah) The query I'm using is below. $data = $this->find(array('campaign_id as id'=> $id,'substring(upload_

Fatal Error (256): ConnectionManager::getDataSource - Non-existent data source

2008-01-18 Thread roliver
Hi all, I just changed my core.php use the database to store sessions. I made sure all the proper settings were correct for database, table and I created the table in my DB with the sessions.sql. Now when I hit my app I get the following error: Fatal Error (256): ConnectionManager::getDataSour

Re: CakePHP Presentation

2007-10-02 Thread roliver
I would mention and talk about the cool "automagic" features of cake? findAll(), findBy___(), Model associations and how if they are setup correctly can save a developer a ton of time in selecting and updating data. Also the cake console is a good one to mention BTW, I live in the phila area. W

Re: Newbie Introduction Book ... reviews anyone?

2007-07-28 Thread roliver
I'd love to see it as well. [EMAIL PROTECTED] On Jul 27, 2:14 pm, Dave <[EMAIL PROTECTED]> wrote: > I'm working on a Newbie's Introduction to CakePHP book and would like > to invite anyone who would like to review it for errors or > considerations I may have overlooked. Let me know, and I'll sen

html->link and html-image

2007-07-25 Thread roliver
Hi all, Is it possible to use $html->link and $html->image together. As in wrapping html->link around the html->image so that an anchor tag can be added to the image so the user can click it? thanks --~--~-~--~~~---~--~~ You received this message because you ar

1.2 manaul

2007-07-05 Thread roliver
Hi, Is there an updated 1.2 manual in pdf format for download anywhere on the cakephp.org website? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

$form->month

2007-05-09 Thread roliver
Has anyone tried to use the $form->month method in the formHelper class? I keep getting the following error: Fatal error: Method FormHelper::month does not exist in /home/user/ workspace/galleries/trunk/cake/libs/view/helper.php on line 134 maybe it's not fully implemented. I'm using 1.2 alpha

cake 1.2 check boxes

2007-05-08 Thread roliver
I'm using 1.2 the lastest alpha(not from SVN) Which class should I use to create a checkbox that can be validated by the model? I'm also using the validation class in 1.2 what is the best method to validate it? I'm currently using the following to generate the check box in the view: $form->inpu

Best practices on upgrading

2006-07-18 Thread roliver
What is the best way to upgrade cake? I'm working on an application and I want to upgrade to the latest stable release. But, I don't want to overwrite any of my layouts, configs etc. Could some one point me to a doc that details upgrade procedures? Thanks --~--~-~--~~~