call function done
Posted on: 13th January, 2009, 11:35:36 AM
There is now a new way to use functions in eoCMS.
Instead of using them like sql_query("SELECT * FROM whatever"); they are now called like
call('sql_query', "SELECT * FROM whatever");
As you can see we are now using a new function called call(). This allows you to create and define a function in its own file which can then be called by the CMS without the need to edit any files, just upload the file containing the function eg
whatever.php
Code:
function whatever($message) {
return $message;
}
to the functions/ folder and you can then use that function like
call('whatever', "Hello World");
To call a plugin function you must state as the first argument in the call() function, plugin_the plugin folder_the plugin function/file. Due to this format, you shall not be able to use _ in the plugin folder name!!
Please do not PM me requesting support or anything, use the forums, thats what they are here for
|