Example of setting up a jphpx application
Using the menu item "Components" in the Administrator backend, select the option "jphpx Application" and "jphpx Code Entry".
This will call the component and you can now click "New" to define a new jphpx application or use
"Edit" to change an existing entry, or call "Duplicate" to duplicate existing code entries and you may use
"Delete" to delete entries.
With the jphpx component display, all defined jphpx entries with their IDs, title, code source, Access level and status are shown. With jphpx component two code entries for demo purposes are provided. These are for the sudoku game application. This game application consist of a client part with "ID=1" and a server (ajax interface) part with "ID=2" (you can see both here)
With the jphpx component display, all defined jphpx entries with their IDs, title, code source, Access level and status are shown. With jphpx component two code entries for demo purposes are provided. These are for the sudoku game application. This game application consist of a client part with "ID=1" and a server (ajax interface) part with "ID=2" (you can see both here)
Here the client part of the Sudoku game application is displayed for editing. This panel is displayed as well
displayed and used for creating a new jphpx code entry: the following information is required:
- Title: the (freely selectable) name of the code
- Code Source: Path and filename of the code (will be checked for validity)
- Access: the access level for the code (access only for authorised users or all users)
- Published: Publishing code (code is enabled (Yes) or disabled (No) )
The server part of the Sudoku game application provides the respective Sudoku puzzles to the Sudoku client via a
AJAX interface available. The AJAX functionality of jphpx and Joomla is used for this, so that the application completely
can run under the control of Joomla.
In order to make the application available on the website, you set up a menu item for a jphpx application by defining a new "menu" for the call.
For the option "Menu entry type", select the type "jphpx Applications -> Application" from the available types and then select the desired jphpx Application from jphpx Applications.
For the option "Menu entry type", select the type "jphpx applications -> Application" from the options offered and then select the desired jphpx application from jphpx applications.
For the option "Menu entry type", select the type "jphpx Applications -> Application" from the available types and then select the desired jphpx Application from jphpx Applications.
After all options for the new menu have been defined, you can now make the menu available with "Save".
The new menu option, as defined, can be called up via the frontend
You can see here that the Sudoku game has bee started and runs via the jphpx component:
- index.php?option=com_jphpx&view=application&fileid=1