On Sep 26, 8:50 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Fri, Sep 26, 2008 at 3:39 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > With the current theme-sctructure in Cake, I have a problem on how to > > deal "files". CSS and JS could be handled somehow, I guess, but what > > about images? > > The current theme structure also allows for images to be in the theme > directory... plus there is a fall back
Do you have an example? I can hardly imagine this, as the view/theme directories are not in the webserver document root and therefore cannot directly deliver the image. > Why not allow people to upload themes where Cake can usually find > them? A bit more details on how your current work flow is will help I'm speaking of NoseRub (see a running instance on http://identoo.com). People can install this service on their server (eg. http://media-adventures.de). Currently, they have to modifiy some views and also added some images to somewhere in app/webroot. I want to give them the ability to completely change their layout by just placing one directory somewhere - where then all views and images are present. Similar to wordpress where you have the wp-content/ themes/ directory. I see the advantage of views not being accessible from the browser's document root, but see the downside regarding the additional php calls to "render" the images. Therefore, I wanted to know other user's best practice. I _could_ build a upload method, so that people upload a zip where the following structure is in: /my_theme /my_theme/images /my_theme/views And then expand the views to views/themes/my_theme and the images somewhere in app/webroot/. I only think, that this might complicate developing of such themes for NoseRub. So, how did you solve this issues with your CakePHP applications? Cheers, Dirk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
