/**
     * Protected constructor for singleton instance.
     */
    protected function __construct()
    {
        parent::__construct();
        // toggling of a render setting?
        if ($this->Input->get('tid') && $this->Input->get('table') == 'tl_metamodel_rendersetting') {
            // Update database
            $this->Database->prepare('
				UPDATE tl_metamodel_rendersetting
				SET enabled=?
				WHERE id=?')->execute($this->Input->get('state') == '1' ? '1' : '', $this->Input->get('tid'));
            exit;
        }
    }
 /**
  * Protected constructor for singleton instance.
  */
 protected function __construct()
 {
     parent::__construct();
 }