List of functions

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

List of functions

Post by shasta59 » 2015-06-08 01:10

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
Calgary, Alberta, Canada - Using Appgini 5.50 -

primitive_man
AppGini Super Hero
AppGini Super Hero
Posts: 54
Joined: 2014-03-09 20:20

Re: List of functions

Post by primitive_man » 2015-06-24 10:56

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';'

primitive_man
AppGini Super Hero
AppGini Super Hero
Posts: 54
Joined: 2014-03-09 20:20

Re: List of functions

Post by primitive_man » 2015-06-25 11:25

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!

Post Reply