Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IndexPageController extends PageController {
- }
- /**
- * Get all products marked as featured that can be purchased.
- */
- class IndexPageController extends ProductCategory_Controller {
- function FeaturedProducts()
- {
- return Product::get()->filter(array(
- 'Featured' => 1
- 'AllowPurchase' => 1
- ));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement