look at the constants defined in cake/config/paths.php Peg a écrit : > Hi all, i'm quite new to Cake but I'm enjoiing it so much. > > I start writing a jQuery helper to include jQuery itself, packaged > plugins and named script like controller dependent, action, ecc. > > I'm trying to identify on the fly cake's intallation path to use it > into import rules. Let me say this information will be much important > for other applications... > > Examples: > // Local installation: > http://localhost/cms/controller/action > where "cms" it's cake's intallation. > > I neet to obtain: > var1 = /cms/ > var2 = http://localhost/cms/ > > > // Online test: > http://www.mysite.it/test/cms/controller/action > where "cms" it's cake's intallation. > > I neet to obtain: > var1 = /test/cms/ > var2 = http://localhost/test/cms/ > > > > // Online production: > http://www.mysite.it/controller/action > where root it's cake's intallation. > > I neet to obtain: > var1 = / > var2 = http://localhost/ > > > Thanks!
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
