3 ms·
Only in the appropriately named render method, which will use code to choose what to render and not to do anything else. How else would you satisfy the requirem
by tomjen3 11y ago
Only in the appropriately named render method, which will use code to choose what to render and not to do anything else. How else would you satisfy the requirement to display a list of items and a special item if the list is empty?
The danger you run into is PHP nightmares where the programmer has e.g code that accesses and fetches items from a database in the middle of the view.