how to include a php and others file within joomla 1.5

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
User avatar
timgerr
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Sep 19, 2006 4:22 am
Location: Michigan

how to include a php and others file within joomla 1.5

Post by timgerr » Fri Dec 07, 2007 7:19 pm

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 important does a person have to be before they are considered assassinated instead of just murdered?
-He's not carnival personnelle!!!

Opie
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Thu Jun 22, 2006 7:32 pm
Contact:

Re: how to include a php and others file within joomla 1.5

Post by Opie » Sun Dec 09, 2007 6:29 am

To add a javascript file, use addScript from JDocument.

To add a style sheet (css) file, use addStyleSheet from JDocument as well.
http://springhillalumni.org • Springhill High School Alumni Association

User avatar
jalil
Joomla! Enthusiast
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

Post by jalil » Tue Dec 25, 2007 10:03 pm

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.


Post Reply