Modules

ID #1012

How can I use the new Module API?

First, you have to checkout Falt4 SVN, since the api is not included in the current release, but it will be included in Falt4 Final.

Well, it's very easy. You can open up the Folder "/modules/testmod/" and the following files "admin.php", "index.php", "conf.php". This are the three basic files, which are basically used in a module. The only file which is really needed however is "index.php", which is the file that will be loaded in the frontend.

So for a quickoverview:

admin.php: The Main Module Administration File ( If you click on the Module module )
conf.php: The File which is needed for the Configuration of the Module ( if you click on Edit edit )

index.php: If you call the Module in the Frontend ( index.php?handler=modules&module=yourmodule )

 

So far so good. Now have a look at the file admin.php. All we see there are some methodcalls for the language class and this is all we need to talk about. :)

code

the code...

display

...and the result

 

Which replacementtags exists and what are they used for ?

Tags: templates

Related entries:

Last update: 2007-07-10 17:49
Author: Ramon Ott
Revision: 1.12

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry