Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Shared Components
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
aidan  
View profile  
 More options Sep 19 2006, 8:16 pm
From: "aidan" <scottybarr...@gmail.com>
Date: Wed, 20 Sep 2006 00:16:00 -0000
Subject: Shared Components
Hello, I could not find the answer searching, so if anyone has a
solution, I'd greatly appreciate it.

I'm using cake for many different applications on our web server. I
have a shared directory where I keep the core cake files and then for
each new application, I bring over the app files and go from there.

I've developed several components to handle date processing, data
filtering, etc that I'd like each application to have access to without
having to copy the compent file to each app's controllers/components
directory. I'd like to have these component files live in a shared
directory somewhere. Also, though, I'd like the ability to create
application specific components if need be. I thought about creating a
symbolic link, but then I cannot create app specific components.

Does anyone have a recommendation on allowing mutliple apps use a
shared component that lives in one location?

Thanks much,
-Aidan
http://aidanslair.com


    Reply to author    Forward  
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.
nate  
View profile  
 More options Sep 19 2006, 9:08 pm
From: "nate" <nate.ab...@gmail.com>
Date: Wed, 20 Sep 2006 01:08:23 -0000
Local: Tues, Sep 19 2006 9:08 pm
Subject: Re: Shared Components
You can set $componentPaths as an array of alternate loading paths in
app/config/bootstrap.php

    Reply to author    Forward  
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.
Samuel DeVore  
View profile  
 More options Sep 19 2006, 9:49 pm
From: "Samuel DeVore" <sdev...@gmail.com>
Date: Tue, 19 Sep 2006 18:49:29 -0700
Local: Tues, Sep 19 2006 9:49 pm
Subject: Re: Re: Shared Components
in my world my components and helper directories are kept in a
seperate svn repository and then checked out as externals to the
deployment and test applications. This way I share them all with all
my client applications, and it helps me define ownership of those as
seperate entities from the 'clients' code.

Sam D

On 9/19/06, nate <nate.ab...@gmail.com> wrote:

> You can set $componentPaths as an array of alternate loading paths in
> app/config/bootstrap.php

--
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

    Reply to author    Forward  
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.
Schmidt.Troy@gmail.com  
View profile  
 More options Sep 19 2006, 9:50 pm
From: "Schmidt.T...@gmail.com" <Schmidt.T...@gmail.com>
Date: Tue, 19 Sep 2006 18:50:21 -0700
Local: Tues, Sep 19 2006 9:50 pm
Subject: Re: Shared Components
So Nate when he defines that in the bootstrap will it still look in the
cake/libs/controllers/components, the app/controllers/components/ and
the $componentPaths he defines?

I think what you are saying is that will link up all the applications
to use one shared component directory.  Now, whether the applications
actually share the components is up to him and his applications correct?


    Reply to author    Forward  
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.
aidan  
View profile  
 More options Sep 19 2006, 10:45 pm
From: "aidan" <scottybarr...@gmail.com>
Date: Wed, 20 Sep 2006 02:45:06 -0000
Local: Tues, Sep 19 2006 10:45 pm
Subject: Re: Shared Components
Wow, great community. Thank you very much for the responses. using
$componentPaths was exactly what I needed. Also running some tests
using the standard core components like Session also work so it seems
that this just appends the paths to the default paths. This is great!

I saw the cake/libs/controllers/components dir but didnt' want to put
them there either because I wanted to keep the core cake dir pure for
ease of cake core upgrading.

Thanks all!

-Aidan


    Reply to author    Forward  
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.
Schmidt.Troy@gmail.com  
View profile  
 More options Sep 20 2006, 4:44 am
From: "Schmidt.T...@gmail.com" <Schmidt.T...@gmail.com>
Date: Wed, 20 Sep 2006 01:44:37 -0700
Local: Wed, Sep 20 2006 4:44 am
Subject: Re: Shared Components
Glad you knew enough to know that there was a nice CakePHP way to solve
your problem and make upgrading and maintaining very easy!

    Reply to author    Forward  
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.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google