Two phpLens objects, one embedded within the other:
From category table
This is from a child table!
Beverages
Product
Qty/Unit
Price
LEO 10 boxes x 20 bags 18.00
Changie 24 - 12 oz bottles 0.00
Guaraná Fantástica 12 - 355 ml cans 4.50
Sasquatch Ale 24 - 12 oz bottles 14.00
Steeleye Stout 24 - 12 oz bottles 18.00
Côte de Blaye 12 - 75 cl bottles 263.50
Chartreuse verte 750 cc per bottle 18.00
Ipoh Coffee 16 - 500 g tins 46.00
Laughing Lumberjack Lager 24 - 12 oz bottles 14.00
Outback Lager 24 - 355 ml bottles 15.00
Rhönbräu Klosterbier 24 - 0.5 l bottles 7.75
Condiments
Product
Qty/Unit
Price
Vegie-spread 15 - 625 g jars 43.90
Sirop d'érable 24 - 500 ml bottles 28.50
Producto, super 12 - 550 ml bottles 10.12
Original Frankfurter grüne Soße 12 boxes 13.00
Northwoods Cranberry Sauce 12 - 12 oz jars 40.00
Louisiana Hot Spiced Okra 24 - 8 oz jars 17.00
Louisiana Fiery Hot Pepper Sauce 32 - 8 oz bottles 21.05
Gula Malacca 20 - 2 kg bags 19.45
Genen Shouyu 24 - 250 ml bottles 15.50
Chef Anton's Gumbo Mix 36 boxes 21.35
Chef Anton's Cajun Seasoning 48 - 6 oz jars 22.00
Confections
Product
Qty/Unit
Price
Pavlova 32 - 500 g boxes 17.45
Teatime Chocolate Biscuits 10 boxes x 12 pieces 9.20
Sir Rodney's Marmalade 30 gift boxes 81.00
Sir Rodney's Scones 24 pkgs. x 4 pieces 10.00
NuNuCa Nuß-Nougat-Creme 20 - 450 g glasses 14.00
Gumbär Gummibärchen 100 - 250 g bags 31.23
Schoggi Schokolade 100 - 100 g pieces 43.90
Zaanse koeken 10 - 4 oz boxes 9.50
Chocolade 10 pkgs. 12.75
Maxilaku 24 - 50 g pkgs. 20.00
Valkoinen suklaa 12 - 100 g bars 16.25
Notes
This demo shows the use of nested phplens objects. We use a powerLens in the main
$lens object to call the ChildLens() function that displays the embedded phpLens object.
Note how we use output buffering to store the child lens. This example requires the commercial
version of phpLens as output buffering is disabled in the demo version.