Sharing frontend and admin functionality

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
viller
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Oct 24, 2006 3:43 pm

Sharing frontend and admin functionality

Post by viller » Sat Mar 22, 2008 2:26 pm

Let's say a component's frontend and admin need to access the same data. You create an abstraction function for it and you want to include it in both the frontend and admin. How should I do this? Define the function in frontend and include it in admin or define it in a totally separate file available to both?

EDIT: another question. Is there a way to include something in the admin menu without making an install file?

viller
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Oct 24, 2006 3:43 pm

Re: Sharing frontend and admin functionality

Post by viller » Sun Mar 23, 2008 12:50 pm

Another problem, I made an install file after all but after a successful install I still can't add my component to the menu.


Post Reply