Max, Awesome work mate! I changed the code *a lot* (I started with your code as the base but then I've revamped it all) and now I have a module that:
1. It doesn't require *any* modification on CakePHP nor Joomla core code. 2. The CakePHP application can reside on any directory (either outside or within joomla's path), and doesn't have to use the same DB as Joomla. 3. Your existing CakePHP application (even with normal Cake URLs) will work without modifications. Paths to resources and links to cake actions are transformed automatically by the component. 4. Your application can run transparently within Jake or by itself as a standard CakePHP application. You can even know (in any part of your CakePHP application) when it is being run by Jake, and if so do whatever you need (for example use a different layout.) 5. Javascript and CSS libraries, as well all meta tags (even the title and description tag!) are sent by Jake back to Joomla using the proper rendering, so they are part of the end html code. 6. The generated HTML code is standard XHTML (as long as you do so on the cake side as well.) I say this because in your example you had <head> tags (sent by cake) inserted within joomla's <body> tags. Well and some other features. I still have to prepare some sort of documentation but the code is ready and working. PS: I just submitted a request to create a new project in Cakeforge called Jake. When approved I'll upload code there and we can join efforts. -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de Max Enviado el: Martes, 13 de Febrero de 2007 06:41 p.m. Para: Cake PHP Asunto: Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake Just posted it: http://www.gigapromoters.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
