johnhamelink
11/21/2012 - 3:38 PM

base.php

class Base_Controller extends Controller {

    public  $layout    = 'layouts.common';
    public  $restful   = true;
    public  $metatags = array();

    /**
     * Every page will have metatags; lets get them in the construct
     * so they're always there.
     */
    public function __construct()
    {
        parent::__construct();
        $this->metatags = \Config::get('metatags');
        $this->getMetaTags(URI::current());
    }