[EMAIL PROTECTED] wrote:
> I second this. it's a great way to provide the general method and
> usage while also providing multiple, more specific examples that often
> are more relevant in the real world.
ONLY if they are moderated... too many people use the comments as a
place to request fr
See comments below
On 12月13日, 下午8時07分, designvoid <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm currently playing with the FileHandler snippet by Chris Partridge
> (http://cakeforge.org/snippet/detail.php?type=snippet&id=52) and I've
> hit a problem!
>
> I can get the file to upload correctly an
alidate it there if need be?
-Scott
Chris Hartjes wrote:
> On 9/26/07, Scott Sharkey <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>> I'm working on a form to upload a file, and the traditional way to do
>> that involves the FileHandler model, and a beforeValidat
Hi All,
I'm working on a form to upload a file, and the traditional way to do
that involves the FileHandler model, and a beforeValidate() function in
the model which validates the file type, size, etc and moves the file
from tmp storage to where-ever. This is working just fine.
Except that n
Hi All,
I'm using the examples from the Bakery article by Sam Devore to generate
a PDF file (resume) from a cake form. This works just fine, if I use
the PDF layout (header("Content-type:application/pdf"), which displays
the PDF just fine. BUT, I need to display that PDF in a cake page
(usi
te: If you do have mod rewrite but prefer the
> * CakePHP pretty urls, you also have to remove the
> * .htaccess files
> * release/.htaccess
> * release/app/.htaccess
> * release/app/webroot/.htaccess
> */
> //define ('BASE_URL', env('SCRIPT_NAME'));
&g
ny out
there who have done this, I guess.
Thanks
-Scott
>
> Tip2: 1.2 version promising and highly stable, just FYI
>
> On Jul 8, 5:08 pm, Scott Sharkey <[EMAIL PROTECTED]> wrote:
>> The ~ is unix notation for "home directory of", ie, in this case, home
&g
in a
specified directory (relative to home) for the content to serve.
Thanks!
-Scott
francky06l wrote:
> Maybe the "~" character is screwing up the rewriting.
> Why not RewriteBase /ssharkey ?
>
> On Jul 8, 12:17 am, Scott Sharkey <[EMAIL PROTECTED]> wrote:
>>
Hi All,
I'm trying a "top-level" installation into an apache UserDir. I've read
the documentation, which says to put a RewriteBase directive in the
/~user/public_html/.htaccess file. This does not seem to be working for
me. Here's what I know:
1) Mod_Rewrite is loaded and working fine on t
Hi All,
I've been using the FileHandler class for uploading, and it seems to be
working fine in versions of cake up to about 1.1.7. But when trying to
use the same code under 1.1.12 (and probably 1.1.14) it's telling me
Fatal error: Cannot instantiate non-existent class: filehandler in
/home
Hi Troy,
OK, I spent some time looking over jQuery in detail again.
Troy Schmidt wrote:
> You will call a function that will then run an AJAX call, get the
> result, and manipulate it. Based on the result you will create
> childNodes no innerHTML or replacing. Actual DOM methods. It is
> prob
Troy Schmidt wrote:
> You will call a function that will then run an AJAX call, get the
> result, and manipulate it. Based on the result you will create
> childNodes no innerHTML or replacing. Actual DOM methods. It is
> probably programming level advanced, which is below expert. Personally
>
Hi All,
This is not cake-specific, though I will be building it into a
cake-based site. I have an "order form", that I want to "AJAXIFY" (?)...
The first part, fetching the customer info from the tables when they
type in their email address, is working fine. But I'm kinda stumped on
exactly
AD7six wrote:
> Hi Scott,
>
> I think the easiest way to deal with that is define in your model the
> method afterFind. use a loop to go through the results and define what
> you need. There is no need to worry about removing the data before
> saving - if there is no corresponding field the data
Hi All,
I have some fields that I need to present in the data views, which are
calculated from the other fields in a model (goals against average,
total points, etc). I was thinking the best way to do this is to modify
the results array from the model, calculating the fields before
presentat
d. That way I don't have to
worry about the record not existing, and handling special cases, etc.
Not real sure how to do that just yet, but I have some ideas - just need
to try them out.
-Scott
>
> On 8/18/06, Scott Sharkey <[EMAIL PROTECTED]> wrote:
>> Hi All,
>&g
Hi All,
I'm working on a hockey league website, and need some ideas on the best
way to handle this situation:
I have models for Teams, Players, PlayerStats, GoalieStats. There will
only be one entry in either PlayerStats or GoalieStats, depending on
whether the player is a goalie or a skater
nate wrote:
> Only if the 'dependent' association key is set to true, i.e.:
>
> class Post extends AppModel {
>
>var $hasMany = array(
>'Comment' => array('dependent' => true)
> );
> }
Nate: I asked almost this very same question about a week ago. What
about HABTM relationship
Hi All,
I'm rapidly nearing the completion of my first serious cake app (thanks
to everyone for all the help!). I am having a problem with deletes.
I have several models (artists, artworks, texts, etc). The
relationsthips are:
artist hasMany artworks, hasMany texts
artwork b
nate wrote:
> Oh, sorry, I missed that.
>
> Try $this->Artist->Artwork->findAllByCategory('xxx', array('DISTINCT
> Artist.id', 'other', 'fields', 'here'), 'Artist.sortorder ASC'));
Nate: that works, sorta . Thanks. If I pull in a Related field
(like Artwork.filename) it duplicates all over ag
Scott Sharkey wrote:
> nate wrote:
>
>>If Artwork belongsTo Artist, then reciprocally, Artist should hasMany
>> (haveMany?) Artwork. Then, you can do the find on $this->Artist
>>instead.
>
> Yes, Artist hasMany Artwork, so are you saying I can do:
>
>
nate wrote:
> If Artwork belongsTo Artist, then reciprocally, Artist should hasMany
> (haveMany?) Artwork. Then, you can do the find on $this->Artist
> instead.
Yes, Artist hasMany Artwork, so are you saying I can do:
$this->Artist->findAllByCategory('xxx',null,'Artist.sortorder ASC')
???
A
Hi All,
I have two tables: Artists and Artworks. Artworks BelongsTo Artists,
and Artists hasMany Artworks. I need to generate a list of all of the
artists who have artwork of a certain category.
I tried
$this->Artist->recursive = 1;
$this->set('artists', $this->Artist->Artwork->findAllByCat
modfather wrote:
> sorry - app_controller.php is in app/controllers/app_controller.php
Shouldn't this be in the main app directory? Mine is, anyway.
-Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
P
Hi All,
Stupid question, but I didn't find it anywhere on the docs. Is there a
helper that will generate the links for inclusion in an imagemap? Or,
alternatively, is there a way to determine the "home page" of the web
site somehow programmatically, so I can build my own paths?
Ideally, ther
[EMAIL PROTECTED] wrote:
> You could also edit your gmail settings once you get your account setup
> to forward all messages to your other email account.
Yes, I had done that. But, you cannot post messages to this list then,
because "you are not a member of the list" when sending...
-Scott
-
Carlos Mauricio Samour wrote:
> In the examples I read in the wiki using the add action I only see one
> model being use. What is the best way of using more the one model that
> uses hasMany reletionships into a view?
> In my add_new form I want to use 3 models.
> When I press the Save button it o
Sorry to be somewhat off-topic, but how does one join this group with a
non-gmail account? I don't use gmail on a day-to-day basis, and it's a
royal pain to have to login to gmail, just to be able to post/reply to
messages on this list. So, is there a way for someone to subscribe w/o
using their
28 matches
Mail list logo