Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-06 Thread timblack1
The reason is that Joomla components ARE applications. They run in a subsection of a Joomla website. Joomla is moving toward being a rapid web application framework, but it doesn't have all the web development shortcuts that Cake does. So, Cake can help you write a better Joomla component. Ano

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-11 Thread timblack1
I'll let you all know here once I've got my own component working with Cake inside, and I'll take the time to generalize from that to make a tutorial or example component. Right now I'm worried that I don't understand what Cake does internally with the $_GET['url'] and $_SERVER['PHP_SELF'] varia

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-04 Thread timblack1
I got it. Here's the code that works. function cakeMain(){ global $mainframe; $mainframe->addCustomHeadTag(""); $_GET['url'] = ltrim($_GET['cakeTask'], '/'); $_SERVER['PHP_SELF'] = "index2.php?option=com_ps_core&task=cake&

Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-04 Thread timblack1
I'm wrapping Cake in a Joomla component in order to take advantage of Cake's scaffolding. In my Joomla component, the following code: $_GET['url'] = $_GET['cakeTask']; $_SERVER['PHP_SELF'] = "components/com_ps_core/index.php?option=com_ps_core&task=cake&cakeTask=/app/webroot/index.php"; chdir(