I got it.  Here's the code that works.

        function cakeMain(){
                global $mainframe;
                $mainframe->addCustomHeadTag("<link
href='components/com_ps_core/cake/app/webroot/css/cake.generic.css'
rel='stylesheet' type='text/css' />");
                $_GET['url'] =  ltrim($_GET['cakeTask'], '/');
                $_SERVER['PHP_SELF'] =
"index2.php?option=com_ps_core&task=cake&cakeTask=/app/webroot/index.php";
                chdir('components/com_ps_core/cake/app/webroot');
                //ob_start();
                include('index.php');
                /*
                $ouput = ob_get_contents();
                ob_end_clean();
                */
        }

: )

Perhaps we should call it Jake.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to