Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Joomla PHP Pages Component FAQs (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Joomla PHP Pages Component FAQs
#23
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Joomla PHP Pages Component FAQs 3 Years, 7 Months ago Karma: 10  
Frequently Asked Questions

Do I have to wrap the PHP code in special tags?
No, you can use the regular PHP tags directly. eg:
<?php phpinfo(); ?>


Can I use predefined Joomla variables? Yes, but you first have to declare them as globals. eg:
global $mainframe;


Can I include PHP files? Yes, but make sure you use the full path to the PHP files. It's just easier.
Example: Joomla1.0
global $mainframe;   
include($mainrame->getCfg('absolute_path').'/modules/mod_php/includes/my_php_file.php');
Example: Joomla1.5
include(JPATH_ROOT.'/modules/mod_php/includes/my_php_file.php');


Can I use PHP Component in a module position? No, but we have a module that does this called the Joomla PHP Module.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/09 05:57 By admin.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.