Submit Your Project / Idea
We are actively looking for cool ideas of packages / projects to develop. Have an idea, or need a specific package developed that you're having trouble finding elsewhere? Drop a message on the Reddit forum and let us know!
Your idea may get developed free of charge and open sourced, or maybe will be developed and released commercially for a small license fee, or maybe will spawn a great discussion and even better ideas! If your idea is picked up, it will be listed on the Projects page.
Jump in and share your ideas! Don't be left behind, get modern and professional with 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.