Skip to content

Instantly share code, notes, and snippets.

@okaprinarjaya
Created July 13, 2012 14:35
Show Gist options
  • Save okaprinarjaya/3105231 to your computer and use it in GitHub Desktop.
Save okaprinarjaya/3105231 to your computer and use it in GitHub Desktop.
<?php
include('Bootstrap.php');
require_once(APP_PATH.DS.'Controllers'.DS.'ProductController.php');
$product = new ProductController();
$action = $product->getAction();
switch ($action) {
case 'index':
$product->index();
break;
case 'sebuahMethodAction':
$product->sebuahMethodAction();
break;
default:
echo "Unknown action";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment