Template helpers

Every template receives a set of helper variables without a controller assigning them, among them $_request, $_response, $_url, $_currentSite, $_currentUser, $_siteData and $_string. Templates of the public site also get $_menu, $_query, $_globalComponents, $_forms, $_image and $_search. List views add $_pagination. See Global template variables for how to use them.

Collections and values

A member that returns many records returns a Collection: loop over it, count it, sort it and filter it. Money and Number are value types for prices and exact arithmetic. Money is immutable: arithmetic returns a new amount and checks that the currencies match.