Need a Developer?
Taking work, any size or scope, and your imagination is the only limit. Contact me for a free consultation at [email protected].
ERROR: TESTING The special HTML tag 'theme section="whats_new.tpl"' is not supported.
Subscribe to the low traffic mailing list to stay updated on Apex.
Apex Training - Admin Manage Lotteries View
Last aspect of the actual development is the Lottery->Manage Lotteries menu within the admin panel that we defined within the /etc/training/package.php file. Within terminal, type:
This will create two new files at the below locations, which are assigned to the "training" package, hence will be included upon publishing the package to a repository.
Open the file at /views/tpl/admin/lottery/manage.tpl and enter the following contents:
This is a simple view that contains one container / panel, which shows the totals, and a table of all recent lotteries.
Open the file at /views/php/admin/lottery/manage.php, and enter the following contents:
This PHP file simply grabs the total number of lotteries and total amount from the database, and assigns them as template variables.
Now that development is complete, we need to ensure everything works properly, so let's move on by Creating a Unit Test.