Load data from company table as a menu and filter products by company
In the practice, I will introduce a method to load data from company table as a menu and allow user filter products by company. Through the practice, you will be introduced a method send available without form, that is link.
1. Load data and output as menu
We will extend class connect to database built in practice 1, we just build a function to load companies and show on web page as a menu