Hi , would like to know why did the plugin does not generate the url when it is outside index.php . any suggest anything can make the urlk be generated.
i have file on root call demo.php
in it i have the following.
<?php
define( '_JEXEC', 1 );
define( 'JPATH_BASE', getcwd().'/' );
require_once(JPATH_BASE . '/includes/defines.php');
require_once(JPATH_BASE . '/includes/framework.php');
require_once(JPATH_BASE.'/helpers/helper.php');
$app = JFactory::getApplication('site');
$user = JFactory::getUser();
$data = new stdClass();
$input = JFactory::getApplication()->input;
// then from here i tried to generate the link for mu component does it not seem to generate properly.
echo JRoute::_('index.php?option=com_media&view=hello&task=hello&code=')
// supposingly from the plugin it will generate /media/hello/ however it show as /component/media/?view=hello&task=hello
not sure how to rectify this. need help