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
-~--~~~~--~~--~--~---



habtm count() query

2008-05-11 Thread woldhekkie

Users want to plan routes to ride together on a a motor bike.
tables:
users   (id, name,phone,email)
routes  (id,date,time,startplace,info,user_id) (user_id is user
who planned the route)
routes_users   (id,route_id,user_id) (extra table for which user goes
on which route with habtm)

Having HABTM working, i see the following route view:

Routes:
Date Time Startplace
infoOwner   Totalusers
10-10-200909:00Amsterdam Nice route round Amsterdam
woldhekkie  


How to get the count() of Totalusers per route.
Do i have to do it from the controller (conditions) or from the model
(finderquery,conditions) or best to do it in PHP array ?

Thanks in advance

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---