Chapter 8 - Advanced Use
Advanced Use
Rendering Options
Include all fields from the "products" resource.
$opt = array( 'resource' => 'products',
'display' => 'full' );Include only the ID of all carriers "carriers"
Only include the "name" and "value" fields from the "configurations" resource.
Rendering Filters
Only include the first and last names of customers "customers" whose ids are between 1 and 5
Only include the first and last names of customers "customers" whose ids are between 1 and 10
Only include the birthday of clients whose name is "John" and whose last name is "Doe"
Only include the names of manufacturers "manufacturers" whose name begins with "Appl"
Sorting Filters
Filter the customers "customers" in alphabetical order according to last name
Filters to limit rendering
Only include the first 5 states "states"
Only include the first 5 elements starting from the 10th element from the states resource "states"
PreviousChapter 7 - Removal - Remove customer accounts from the databaseNextCheat-sheet - Concepts outlined in this tutorial
Last updated
Was this helpful?
