I have made Joomla component with frontend and backend (admin). Now I need to call a function in frontend controller from backend controller. Duplicating this function is not an option.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s possible and is done with some components (such as K2 for example) – they write the include to the administrator file.
When they’re including a function they simply include the document from administrator/component/com_whatever/etc/file.php – that allows them to use any functions from the administrator backend in their front end process’ without having to duplicate the functions.