Re: CakePHP on one.com

2007-12-18 Thread ShepherdWeb
Does the hosting she has purchased have PHP? If so, she should be fine. Since she's already purchased it, why don't you just upload CakePHP (using FTP) to your new site and test it to see if it works? - Shane On Dec 17, 6:00 pm, Jon <[EMAIL PROTECTED]> wrote: > Hi all. > > Have anyone succes

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

2007-08-28 Thread ShepherdWeb
Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild?hl=en - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: generateList should return records that are not empty

2007-01-13 Thread ShepherdWeb
Beautiful! Thanks! I thought I was going to have to use array_filter(). Yuck. On Jan 13, 4:49 pm, "nate" <[EMAIL PROTECTED]> wrote: You can use string-based conditions for that: return $this->Listing->generateList( 'Listing.school_high <> ""', 'school_high ASC', null, '{n}.Li

generateList should return records that are not empty

2007-01-13 Thread ShepherdWeb
function selecthighschool() { $conditions = array("Listing.school_high" => "<> ''"); return $this->Listing->generateList($conditions, 'school_high ASC', null, '{n}.Listing.school_high', '{n}.Listing.school_high'); } The code above should return a

Re: several "$content_for_layout"?

2007-01-03 Thread ShepherdWeb
Are you saying that the user would get to choose which layout they wanted, or is the layout chosen for them based on which page they navigate to? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: Where is Cake Conventions?

2006-12-29 Thread ShepherdWeb
Along this same line. Is there some sort of changelog or record of updates kept when/if changes are made to the online manual? It would be nice to have a record like this to be able to "update" myself when I start a new project and download the latest version. --~--~-~--~~

Re: pretty-url mayhem

2006-12-22 Thread ShepherdWeb
Things are pretty easy once mod_rewrite is enabled. I know this is probably not the answer you want to hear, but have you considered changing hosts? I'm sorry I don't have any experience working on URL rewrites without using mod_rewrite. --~--~-~--~~~---~--~~ Y

Re: PHP < 5.2.0 crash with mysql_fetch_field

2006-12-21 Thread ShepherdWeb
I found the answer in the PHP 5 ChangeLog: http://www.php.net/ChangeLog-5.php Bug 31288 was fixed in version 5.0.4 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send emai

Re: PHP < 5.2.0 crash with mysql_fetch_field

2006-12-21 Thread ShepherdWeb
Anselm, Thanks for the info. I'm concerned because I'm getting ready to launch a site which is running php v 5.0.4. However, I don't have access to the server yet. Does anyone know if this bug was fixed in version 5.0.4? --~--~-~--~~~---~--~~ You received thi

Re: CakePHP blogs

2006-12-21 Thread ShepherdWeb
I post CakePHP articles here: http://www.shepherdweb.com/category/frameworks/cakephp/ --~--~-~--~~~---~--~~ 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@googlegroups.co

Re: downloading image from database

2006-08-27 Thread ShepherdWeb
Without knowing very much about your problem, it's hard to diagnose. Could you provide a link, or be a little more specific? My initial guess would be that the image mime-type is not configured on the remote server. I hope this helps! --~--~-~--~~~---~--~~ You

Re: tagErrorMsg not working since upgrade

2006-08-25 Thread ShepherdWeb
Mikee and mrtufty - Thanks for your comments. tagErrorMsg is not have a deprecated indication in the API at the moment. Also, I'm not finding an errorTag in the htmlhelper API. Am I looking in the wrong place? Are you sure it exists? --~--~-~--~~~---~--~~ You

Re: Show sql debug

2006-08-25 Thread ShepherdWeb
@chambas - It still works for me and I have the latest version. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from t

tagErrorMsg not working since upgrade

2006-08-22 Thread ShepherdWeb
Perhaps it is coincidental. Since upgrading to v1.1.7.3363 tagErrorMsg in my application is no longer working. Is anyone else experiencing this with this version? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: Return field from second joined table

2006-08-21 Thread ShepherdWeb
Here's my solution. It's not the most elegant in the world, but it gets the job done. If anyone has a suggestion for a better way, please chime in. $categoryData = $this->requestAction('/categories/select/'); $this->Product->Color->id = $color_id;

Re: Return field from second joined table

2006-08-21 Thread ShepherdWeb
I found that I can use find() instead of read(), and set recursive = 2 to return category.title, however, this returns way more data than I need and drastically affects performance. Not a usable solution. --~--~-~--~~~---~--~~ You received this message because yo

Re: Help me with my logic please

2006-08-21 Thread ShepherdWeb
You'll end up using $this->requestAction() for logic that spans multiple models. --~--~-~--~~~---~--~~ 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@googlegroups.com To un

Re: Join Table in Conditions of a findAll

2006-08-21 Thread ShepherdWeb
I'm working on a similar scenario right now. I haven't found a solution yet. Maybe some seasoned Cake veterans will chime in on this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: Return field from second joined table

2006-08-21 Thread ShepherdWeb
What am I doing wrong? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED]

Re: Return field from second joined table

2006-08-21 Thread ShepherdWeb
Nope. It's not there. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED]

Re: Join Table in Conditions of a findAll

2006-08-21 Thread ShepherdWeb
@Jimmy - Check out this WIKI entry: http://wiki.cakephp.org/docs:method:read I hope this helps! --~--~-~--~~~---~--~~ 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

Return field from second joined table

2006-08-20 Thread ShepherdWeb
Color and Product are hasAndBelongsToMany to each other Product belongsTo Category Category hasMany Product I'm using this code to show products by color: $this->Product->Color->id = $color_id; $data = $this->Product->Color->read(); $this->set('

Re: Hosting (i.e. Dreamhost)

2006-07-19 Thread ShepherdWeb
I've been with DreamHost for about 6 months now. I host about 20 sites there. I haven't launched a Cake site yet, but will soon. I do have other dynamic sites though. I would say that so far my experience with Dreamhost has been pretty good. Performance is a little better than my previous exp

Re: Automatically Select Option in Edit Function

2006-07-18 Thread ShepherdWeb
$html->selectTag('Person/ismarried', array('y'=>'Yes', 'n'=>'No'), 'n', null, null, false); from: http://wiki.cakephp.org/docs:helpers:html I hope this helps! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Automatically Select Option in Edit Function

2006-07-18 Thread ShepherdWeb
reference: http://api.cakephp.org/class_html_helper.html#4fe0e8fb8cfbc05348e90218830d49cc --~--~-~--~~~---~--~~ 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@googlegroups.

Re: Page in a page

2006-07-18 Thread ShepherdWeb
Please start a new thread when beginning a new topic. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group,

Re: Post Variables Problem

2006-07-17 Thread ShepherdWeb
No problem, thanks for the update. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAI

Re: Is del() recursive?

2006-07-17 Thread ShepherdWeb
That makes sense. 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-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTEC

Is del() recursive?

2006-07-16 Thread ShepherdWeb
Is $this->Model->del($id); supposed to be recursive to hasMany relationships? I seem to be getting inconsistent results. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: multi image uploader

2006-07-15 Thread ShepherdWeb
I got it working by reorganizing the array like you suggested. I also needed to add... $this->File->create(); ...just before saving each image in order to do an insert on each one. Otherwise, every save() after the first one just overwrites the first one. It is likely that I will redo this at

Re: multi image uploader

2006-07-15 Thread ShepherdWeb
@Daniel - Are either on of those solutions better than trying to implement image resizing programmatically in your opinion? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, se

Re: Post Variables Problem

2006-07-15 Thread ShepherdWeb
Also, make sure you have a form element: formTag('/application/add/) ?> --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscrib

Re: multi image uploader

2006-07-15 Thread ShepherdWeb
@Xeeton - Thank you. I had seen fileHandler component that Chris Partridge developed. It looks promising. I liked the idea up loading the files into the database though, and Daniel's implementation was so simple for a single file. If there is a way to adopt Daniel's script for use with multip

Re: CakePHP 1.1.6.3264 Released

2006-07-14 Thread ShepherdWeb
Sweet, 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-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mor

Re: CakePHP 1.1.6.3264 Released

2006-07-14 Thread ShepherdWeb
Way to go...progress is fast around here! Can I upgrade from 1.1.5.3148 by simply replacing the /cake directory? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

multi image uploader

2006-07-14 Thread ShepherdWeb
Reference: (http://cakebaker.wordpress.com/2006/04/15/file-upload-with-cakephp/). I'm trying to adopt the "file upload to database" script referenced above to handle multiple files at once. Is possible? I'm having difficulty with it. Here is a sample of my code: In add.thtml:

Re: Nice overview of Cake (with examples)

2006-07-12 Thread ShepherdWeb
Nice. Thanks for pointing this out. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EM

Re: tinymce and CakePHP

2006-07-09 Thread ShepherdWeb
@Ryan - Thanks, you're right. I hadn't added all of the tiny_mce files to the /js directory. Once I did that, and corrected the path everything was perfect! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PH

tinymce and CakePHP

2006-07-09 Thread ShepherdWeb
Has anyone successfully integrated tinymce with CakePHP? I'm putting tiny_mce.js in webroot/js/ and my layout is written up like this: [code] tinyMCE.init({ mode : "textareas", theme : "simple" }); [/code] There is no er

Re: Frustrated with CakePHP

2006-07-08 Thread ShepherdWeb
@John David Anderson - Thanks for chiming in. It's encouraging to know that the individual responsible for the documentation is active in this group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group

Re: Frustrated with CakePHP

2006-07-08 Thread ShepherdWeb
@John, Thanks for the calm response to my rant. Your explanation actually helps quite a bit. I'll look for v1.2 in the near future, and in the meantime submit my needs to trac.cakephp.org. I see a real need for CakePHP...and it appears to be moving in the right direction. If it's ever going

Frustrated with CakePHP

2006-07-08 Thread ShepherdWeb
I chose CakePHP after extensive research and trying out a couple of other frameworks. The biggest obstacle I've found to accomplishing anything in CakePHP is incomplete documentation. When I first got here I read the Manual, went through the blog tutorial, and tried some things out from the manu

Re: cool editors for using with cakephp

2006-07-05 Thread ShepherdWeb
I'm using Textmate on OS X. It's pretty good. I also tried out Eclipse, but it seemed like overkeel for a medium sized web application. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: $belongsTo two different tables

2006-07-05 Thread ShepherdWeb
Great looking web site, by the way. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMA

Re: $belongsTo two different tables

2006-07-05 Thread ShepherdWeb
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-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

$belongsTo two different tables

2006-07-04 Thread ShepherdWeb
Products (table) belongsTo Colors AND belongsTo Categories. How do I do this? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsu

Re: find problem on the associated model

2006-07-04 Thread ShepherdWeb
I'm assuming you do actually have a table called executions...right? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe fr

Re: association - foreach

2006-07-04 Thread ShepherdWeb
I did have that class...and the model. I'll try adding "var $scaffold = true;" and see what happens. Thanks for the tip. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, sen

Re: association - foreach

2006-07-03 Thread ShepherdWeb
do I need to make some sort of adjustment to Routes.php? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this grou

Re: association - foreach

2006-07-03 Thread ShepherdWeb
Good point. I'm getting this error using your code though: Missing controller You are seeing this error because controller ColorsController could not be found. Notice: this error is being rendered by the app/views/errors/missing_controller.thtml view file, a user-customizable error page for h

Re: association - foreach

2006-07-03 Thread ShepherdWeb
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-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more opti

Re: association - foreach

2006-07-03 Thread ShepherdWeb
That makes sense. My current implementation is the other way around though: (my url looks like this: /products/color/) in product_controller function color($color_id = null) { $this->set('products', $this->Product->findAllByColor_id($color_id); } I found this solution, but it doesn't see

association - foreach

2006-07-03 Thread ShepherdWeb
How do I loop through this array: produces: Array ( [0] => Array ( [Product] => Array ( [id] => 2 [title] => Another Test Product [description] => some more description and stuff yeah yeah yay

Re: help me

2006-07-03 Thread ShepherdWeb
I don't see a problem. Did you solve your problem? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, se