How to show the backend list in joomla frontend

1.4k Views Asked by At

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....

1

There are 1 best solutions below

0
Riccardo Zorn On BEST ANSWER

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');