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('components/com_ps_core/cake/app/webroot');
include('index.php');
produces URLs like this in the scaffolding:
http://localhost/mwp/arwd/web/home/administrator/components/com_ps_core/index.php?option=com_ps_core&task=cake&cakeTask=/areas/view/1/
Any ideas how to remove the initial / from the cakeTask parameter?
Removing it from:
$_SERVER['PHP_SELF'] = "...&cakeTask=/app/webroot/index.php";
doesn't work. Doing that produces:
cakeTask=app/webroot/areas/view/1/
Tim Black
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---