Apex Software Platform
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.
Need a Professional?
Need development work by the creator of Apex? E-mail [email protected] for a free consultation.
Subscribe to the low traffic mailing list to stay updated on Apex.