PDA

View Full Version : how create product & plugin ??


abdellahaix
02-21-2009, 02:05 PM
hi all

how create product & plugin ??:(

concepts
02-21-2009, 02:32 PM
wow...

abdellahaix
02-21-2009, 02:48 PM
wow...

thanks

King Kovifor
02-21-2009, 02:49 PM
Moved to correct forum.

1Unreal
02-21-2009, 03:47 PM
The most simple plugin is simply including a PHP file. You do this by creating a plugin with the contents of:

ob_start();
include('filetoinclude.php');
$includedfile = ob_get_contents();
ob_end_clean();

If you add this to the global hook then in the templates call $includefile your PHP file will show up in the template.

lisagreenfern
02-23-2009, 07:01 PM
When including a file as suggested by 1Unreal, in which directory should the php file be placed?

Thanks!

Dismounted
02-24-2009, 04:31 AM
You can put it anywhere - you just need make sure the path to the file is correct in the PHP code.