Yes I did a search and SOO many hits came up.. I search for 'include php' and I could not find the correct answer for 1.5. How can I include a php, css and javascript file into joomla ( a component that I am creating)?
Thanks for the help,
timgerr
how to include a php and others file within joomla 1.5
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
Forum rules
how to include a php and others file within joomla 1.5
-How important does a person have to be before they are considered assassinated instead of just murdered?
-He's not carnival personnelle!!!
-He's not carnival personnelle!!!
Re: how to include a php and others file within joomla 1.5
To add a javascript file, use addScript from JDocument.
To add a style sheet (css) file, use addStyleSheet from JDocument as well.
To add a style sheet (css) file, use addStyleSheet from JDocument as well.
http://springhillalumni.org • Springhill High School Alumni Association
- jalil
- Joomla! Enthusiast
- Posts: 128
- Joined: Wed Jul 04, 2007 4:54 am
- Location: Kuala Lumpur, Malaysia
- Contact:
Re: how to include a php and others file within joomla 1.5
timgerr wrote:Yes I did a search and SOO many hits came up.. I search for 'include php' and I could not find the correct answer for 1.5. How can I include a php, css and javascript file into joomla ( a component that I am creating)?
Thanks for the help,
timgerr
hi there,
i don't think it works like that.
if you say you are developing a joomla component, then that component need to be within joomla's framework, within joomlas architecture so to speak, and if your compenent is not, then it is *not* a joomla component *by definition*. it maybe be a very large 'component', but not a joomla component however. It will be a joomla component if it runs under PHP under Joomla, and not just under PHP, if you know what i mean. and ... if you are within the joomla framework, then calling all files of all types is at your disposal by virtue of the environment joomla runs on, ie. PHP.
hope this helps...
p/s. that being said, there is an extension called Jumi in version 1.0x that allows you to add PHP/HTML and hence any type of files so if you would like to search if they have a 1,5 version, then you'd have a kind of joomal 'component' with whatever it is that you want to include.
Last edited by jalil on Tue Dec 25, 2007 10:06 pm, edited 1 time in total.