<?php

namespace Byng\Pimcore\Controller;

use Pimcore\Controller\Action\Frontend;

abstract class AbstractAction extends Frontend
{

    public function init()
    {
        parent::init();

        if (\Zend_Registry::isRegistered("Zend_Locale")) {
            $locale = \Zend_Registry::get("Zend_Locale");
        } else {
            $locale = new \Zend_Locale("en");
            \Zend_Registry::set("Zend_Locale", $locale);
        }

        $this->view->language = (string) $locale;
        $this->language = (string) $locale;
    }

}

Add the default Abstract action controller
Add the default Abstract action controller
