i have made a custom form in my joomla admin panel and now i wanted to know how to call that admin form in the frontend. Other than using:-
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
Please tell me the solution for it....
i have made a custom form in my joomla admin panel and now i wanted to know how to call that admin form in the frontend. Other than using:-
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
Please tell me the solution for it....
You absolutely need to build the frontend of the component, then in the component's controller you can instantiate the backend models if you need it, so there won't be too much code duplication.
JModel::addIncludePath(JPATH_ADMINISTRATOR.'/components/com_yourcomp/tables');
$model = JModel::getInstance('somemodel');