Page 1 of 1

List of functions

Posted: 2015-06-08 01:10
by shasta59
Using 5.31

The list of functions built into AppGini are found in:

incCommon.php - in main folder
incCommon.php - in admin folder
incFunctions.php - in admin folder
incHeader.php - found in admin folder
common.js.php - found in main folder
db.php - main folder

There are others but this is the main place you can go looking to find out what scripts AppGini has built in. I also add my own into various files.

Word of caution - do not revise any of these unless you are certain you know what you are doing. Make a backup first then make changes if you need to.

Alan

Re: List of functions

Posted: 2015-06-24 10:56
by primitive_man
And to add your own Javascript functions and php, in the (root)header.php and (admin) incHeader.php files:

For Javascript:
after "<script src="common.js.php"></script>",
simply include your own file ref:
<!-- added by Creator-->
<script type="text/javascript" src="creators_common.js.php"></script>

Your 'creator_common.js.php' files opening lines should be identical to that of 'common.js.php' - just copy all of the lines between the two php tags.
Additionally, be aware that you might get conflicts when using the abbreviation '$' in jQuery functions, therefore use either '$j' or 'jQuery' -> Google jQuery.noConflict for more info.

For php Scripts:
at the bottom of the 'incCommon.php' file you can add a reference to your file: 'include 'creators_incCommon.php';'

Re: List of functions

Posted: 2015-06-25 11:25
by primitive_man
Note regarding inclusion of your own PHP file at the bottom of the 'incCommon.php' (See above).
Included file MUST have opening and closing PHP tags since it is an inclusion within an inclusion!