Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function index(){
- mvc_loadModel();
- $products = model_product_getProducts();
- $vars = array(
- "products" => $products
- );
- mvc_showView('index',$vars);
- }
- function detail(){
- mvc_loadModel();
- $product = model_product_getProduct();
- $vars = array();
- if($product){
- $vars["product"] = $product;
- mvc_showView('detail', $vars);
- } else{
- mvc_showView('invalid');
- }
- }
- ?>
Add Comment
Please, Sign In to add comment