Correct way to add custom PHP folder to Joomla 2.5? - Joomla! Forum - community, help and support


i have small library of snippets use in joomla 2.5 driven website. put in folder alongside /administer /cache /cli /images etc... , make calls them using plugin lets run php code module.

for clarification dir looks :

code: select all

/public_html
    /administrator
    /cache
    /my-library  <-- stuff in there
    /cli
    /images


is wrong / bad / fine? im aware there may sec issues code, im wondering if way im doing. break updating? else should consider?

i'm confused, have modules/plugins use common code base added code base in folder in root?

this bad idea, isn't best practice. updating won't cause issues, it's non-joomla folder joomla ignore , not touch it. further more it's not ideal, let's have 2 sites , want use there too...with plugins can install them wherever , it's portable.

you should create system plugin necessary library functions require, enable it, , use joomla's framework access plugin , invoke these functions, keep plugins , modules have.

it's pretty easy that, sound have enough expertise. lookup joomla documenation, i've written plugins i've relied on other plugins, loaded other language files necessary, invoked other code, rendered other stuff in module, etc.

if can't track down let me know , can hit google you. unless i'm wrong intentions...





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support