Beispiel #1
0
<?php

#1. LOGIC
Auth::kickout_non_admin('/pokecart/');
$products = new Products_Collection();
$products->where('deleted', '0');
$products->order_by('id', 'asc');
$products->get();
#2. LOAD VIEWS
include VIEWS . 'header.php';
include VIEWS . 'admin.php';
include VIEWS . 'footer.php';
Beispiel #2
0
<?php

#1. Logic
$products = new Products_Collection();
$products->load();
#2. Load Views
include VIEWS . 'header.php';
include VIEWS . 'products_grid.php';
include VIEWS . 'footer.php';
Beispiel #3
0
<?php

$products = new Products_Collection();
$products->where(['name LIKE' => '%' . Route::param('keywords') . '%', 'deleted' => '0']);
// $products->order_by('name', 'desc');
$products->get();
include VIEWS . 'header.php';
include VIEWS . 'products_grid.php';
include VIEWS . 'footer.php';