1: <?php class CartController extends Controller {
2:
3: public function getIndex()
4: {
5: return "asdffdfdfdkjdas;fkljaq]pafsdg['ad'";
6: //return View::make("cart::dbview");
7: }
8:
9: public function getHello($table = "")
10: {
11: return View::make("cart::dbview");
12: }
13:
14: /**
15: * An example of IoC
16: *
17: * @return type
18: */
19: public function getConnection() {
20: $mysqlGopher = app('MysqlGopher');
21: return $mysqlGopher->connection();
22: }
23:
24: public function getSelect($table = null)
25: {
26: //return View::make("cart::dbview");
27: }
28:
29: public function getTable($name = null)
30: {
31: die;
32: }
33:
34: public function missingMethod($parameters = array())
35: {
36: return "Missing Method";
37: }
38:
39: }
40:
41: ?>
42: