Hi, i plan to migrate a complete CMS which use is "own kind" of MVC pattern.
first of all i show the directories tree of my CMS, second i show what i did to migrate to cake and finally ask some questions of oragnisation ;-) to clarify my mind This CMS uses several "modules" (by module we think about a little application) modules/articles/ modules/blogs modules/planet modules/calendar modules/downloads etc.. we told me to put all of them in the plugins directory. this is what i did. now its look like : app/plugins/articles/controllers app/plugins/articles/components app/plugins/articles/models app/plugins/articles/views/articles (we have to make a sub dir articles in the views dir ; its weird but its like that it seems) app/plugins/articles/layout/default.thtml for the libs of my CMS we also told me to put them in vendors so its look like that : app/vendors/config (a config file for the CMS) app/vendors/classes (some class of the CMS) app/vendors/libs (some libs of the CMS) app/vendors/themes/ app/vendors/themes/themeA contains file used for the header and footer to be include in the main layout. app/webroot/themes/themeA/ contain all the css of all the plugins Now the questions 1) when i'm on http://localhost/ how do i call all the libs and classes i need ? currently i have a lot of settings that are stored in my database, and i dont know how to get them. 2) do i have to do a require in the app/plugins/articles/view/layout/ default.thtml to be able to load the part of my template ? <?php require_once dirname(__FILE__).('/../../../../vendors/ themes/'.CMS_DEFAULT_THEME.'/_top.php'); ?> thanks you for your help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
