Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Where am I supposed to save additional PHP source files while I'm writing a new behavior
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jeremyharris  
View profile  
 More options Apr 17 2012, 10:11 am
From: jeremyharris <funeralm...@gmail.com>
Date: Tue, 17 Apr 2012 07:11:18 -0700 (PDT)
Local: Tues, Apr 17 2012 10:11 am
Subject: Re: Where am I supposed to save additional PHP source files while I'm writing a new behavior

If it's more than two files (behavior + test case) it's worthwhile to point
out that plugins are not only good for redistributing your code, but it's
also good for packaging your tests and everything in a different repo that
has its own history and that you can submodule via git. This assumes the
libs are only specific to the behavior and their methods aren't used in
other areas.

Just a thought!

On Monday, April 16, 2012 5:05:09 PM UTC-7, Daniel Baird wrote:

> Hi Cake dudes,

> I'm new to Cake, and I'm adding a behavior to a model.  I've done that by
> writing a PHP file that I save in the Behavior directory.

> Now I'm making that Behavior a bit more complicated, and I'd like to split
> some sections of code out into separate files.  This Behavior is pretty
> specific to my application, I can't imagine wanting to make it a
> redistributable plugin or anything.

> So here's my question: where's the recommended place to save those
> supporting files?  Can I just make a subdir or Behavior and save them all
> in there?  Or am I supposed to save my additional files into the Vendor dir
> or something like that.

> Thanks in advance

> Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.