Re: Setting up Cake as an Intranet framework?

2008-05-11 Thread [EMAIL PROTECTED]

It looks like you could get the job done using plugins.
They were designed to do pretty much what you want. They are their own
little apps inside the app but they share all the layouts, css images
and things from the main application. You can use global things like
authentication from the main app.

/Martin


On May 11, 12:32 am, Dave [EMAIL PROTECTED] wrote:
 Hi All,

 I've been thinking about using Cake as a framwork for the company
 intranet, but am coming unstuck as how to share the libraries and
 structure things.

 The Intranet is made up of two parts, a portal like homepage, and a
 potentially infinite number of applications running in it, each in
 their own directory URL, for example:http://intranet.company.com/  for the 
 portalhttp://intranet.company.com/sales/http://intranet.company.com/humanresources/http://intranet.company.com/finance/

 All these packages would need to share the Cake Libs, but also CSS,
 JS, Components, Vendors, Layouts and Elements. Each package would
 have it's own Models/Controllers/Views, so the following would be
 viable:

 http://intranet.company.com/sales/lead/view/12345/ using a lead
 controller, view action with the parameter 12345.

 I have already tried setting this up with SymLinks but ended up in a
 bit of a mess, by having the packages stored in their standard cake
 layout, then running a PHP script that would symlink to the correct
 places, with a common package trying to put files into all the
 packages. I'm hoping there is a simpler way of doing this! (I'm happy
 to use 1.2beta if needs require)

 I tried the following with the webroot actually being the webroot
 folder:

 app
 |  -- apps
 |                        | ---| -|
 |                     sales          finance           homepage
 |
 | --- webroot
 |                        |
 |                     homepage
 |                        ||
 |                     sales          finance
 |
 cakelibs
 |
 vendors

 but trying to place common layouts and css and such in all these
 packages was becoming cumbersome.

 Any ideas as to how I could solve this?

 Many Thanks,
 Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Setting up Cake as an Intranet framework?

2008-05-11 Thread woldhekkie

I would take a cake dir per application and not share anything
amoungst them.
If you would update cake, and something is wrong, all your apps go
wrong.



On 11 mei, 00:32, Dave [EMAIL PROTECTED] wrote:
 Hi All,

 I've been thinking about using Cake as a framwork for the company
 intranet, but am coming unstuck as how to share the libraries and
 structure things.

 The Intranet is made up of two parts, a portal like homepage, and a
 potentially infinite number of applications running in it, each in
 their own directory URL, for example:http://intranet.company.com/  for the 
 portalhttp://intranet.company.com/sales/http://intranet.company.com/humanresources/http://intranet.company.com/finance/

 All these packages would need to share the Cake Libs, but also CSS,
 JS, Components, Vendors, Layouts and Elements. Each package would
 have it's own Models/Controllers/Views, so the following would be
 viable:

 http://intranet.company.com/sales/lead/view/12345/ using a lead
 controller, view action with the parameter 12345.

 I have already tried setting this up with SymLinks but ended up in a
 bit of a mess, by having the packages stored in their standard cake
 layout, then running a PHP script that would symlink to the correct
 places, with a common package trying to put files into all the
 packages. I'm hoping there is a simpler way of doing this! (I'm happy
 to use 1.2beta if needs require)

 I tried the following with the webroot actually being the webroot
 folder:

 app
 |  -- apps
 |                        | ---| -|
 |                     sales          finance           homepage
 |
 | --- webroot
 |                        |
 |                     homepage
 |                        ||
 |                     sales          finance
 |
 cakelibs
 |
 vendors

 but trying to place common layouts and css and such in all these
 packages was becoming cumbersome.

 Any ideas as to how I could solve this?

 Many Thanks,
 Dave

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Setting up Cake as an Intranet framework?

2008-05-11 Thread b logica

On Sun, May 11, 2008 at 3:57 AM, woldhekkie [EMAIL PROTECTED] wrote:

  I would take a cake dir per application and not share anything
  amoungst them.
  If you would update cake, and something is wrong, all your apps go
  wrong.

I think the opposite would be a maintenance nightmare. If an update
were to cause breakage across all apps, it would simply be that much
more quick to be discovered. Backing out of an update should be
straightforward. I'd think, too, that the more stuff that a bug
affects, the easier it would be to resolve (at least, the more obvious
it'd be as to *what* the problem is).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Setting up Cake as an Intranet framework?

2008-05-11 Thread Marcelius

You could store the specific models and controllers in a subfolder
like so:
app
__controllers
sales
finance
__models
sales
finance

Cake will find controllers automaticly, but I thought this doesn't on
views like this


On 11 mei, 00:32, Dave [EMAIL PROTECTED] wrote:
 Hi All,

 I've been thinking about using Cake as a framwork for the company
 intranet, but am coming unstuck as how to share the libraries and
 structure things.

 The Intranet is made up of two parts, a portal like homepage, and a
 potentially infinite number of applications running in it, each in
 their own directory URL, for example:http://intranet.company.com/  for the 
 portalhttp://intranet.company.com/sales/http://intranet.company.com/humanresources/http://intranet.company.com/finance/

 All these packages would need to share the Cake Libs, but also CSS,
 JS, Components, Vendors, Layouts and Elements. Each package would
 have it's own Models/Controllers/Views, so the following would be
 viable:

 http://intranet.company.com/sales/lead/view/12345/ using a lead
 controller, view action with the parameter 12345.

 I have already tried setting this up with SymLinks but ended up in a
 bit of a mess, by having the packages stored in their standard cake
 layout, then running a PHP script that would symlink to the correct
 places, with a common package trying to put files into all the
 packages. I'm hoping there is a simpler way of doing this! (I'm happy
 to use 1.2beta if needs require)

 I tried the following with the webroot actually being the webroot
 folder:

 app
 |  -- apps
 |                        | ---| -|
 |                     sales          finance           homepage
 |
 | --- webroot
 |                        |
 |                     homepage
 |                        ||
 |                     sales          finance
 |
 cakelibs
 |
 vendors

 but trying to place common layouts and css and such in all these
 packages was becoming cumbersome.

 Any ideas as to how I could solve this?

 Many Thanks,
 Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Setting up Cake as an Intranet framework?

2008-05-11 Thread Dave

There is going to be a hardcore test environment before anything goes
live, so hopefully when updating libraries nothing would go wrong.
Plus one cake dir per application would still require layouts and
common components to be copied into each one, creating it's own
maintenance nightmare, no?

On 11 May, 08:57, woldhekkie [EMAIL PROTECTED] wrote:
 I would take a cake dir per application and not share anything
 amoungst them.
 If you would update cake, and something is wrong, all your apps go
 wrong.

 On 11 mei, 00:32, Dave [EMAIL PROTECTED] wrote:

  Hi All,

  I've been thinking about using Cake as a framwork for the company
  intranet, but am coming unstuck as how to share the libraries and
  structure things.

  The Intranet is made up of two parts, a portal like homepage, and a
  potentially infinite number of applications running in it, each in
  their own directory URL, for example:http://intranet.company.com/ for the 
  portalhttp://intranet.company.com/sales/http://intranet.company.com/humanre...

  All these packages would need to share the Cake Libs, but also CSS,
  JS, Components, Vendors, Layouts and Elements. Each package would
  have it's own Models/Controllers/Views, so the following would be
  viable:

 http://intranet.company.com/sales/lead/view/12345/ using a lead
  controller, view action with the parameter 12345.

  I have already tried setting this up with SymLinks but ended up in a
  bit of a mess, by having the packages stored in their standard cake
  layout, then running a PHP script that would symlink to the correct
  places, with a common package trying to put files into all the
  packages. I'm hoping there is a simpler way of doing this! (I'm happy
  to use 1.2beta if needs require)

  I tried the following with the webroot actually being the webroot
  folder:

  app
  |  -- apps
  |                        | ---| -|
  |                     sales          finance           homepage
  |
  | --- webroot
  |                        |
  |                     homepage
  |                        ||
  |                     sales          finance
  |
  cakelibs
  |
  vendors

  but trying to place common layouts and css and such in all these
  packages was becoming cumbersome.

  Any ideas as to how I could solve this?

  Many Thanks,
  Dave

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---