File: D:/HostingSpaces/SBogers10/veltech.komma.pro/app/Komma/WebsiteConfig/WebsiteConfigController.php
<?php
namespace App\Komma\WebsiteConfig;
/**
* @author Pascal Lemmen <pascal@komma.pro>
* @copyright (c) 2012-2017, Komma Mediadesign
*/
use App\Komma\Kms\Core\SectionController;
use App\Komma\WebsiteConfig\Model\WebsiteConfig;
class WebsiteConfigController extends SectionController
{
protected $slug = "websiteconfig";
protected $forModelName = WebsiteConfig::class;
/**
* Constructor
* @param $section
*/
public function __construct(WebsiteConfigSection $section)
{
parent::__construct($section);
}
public function index()
{
$this->section->getSectionTabDirector()->buildTabs();
return parent::index(); // TODO: Change the autogenerated stub
}
//
// /**
// * Save a new item
// *
// * @return mixed
// */
// public function store()
// {
//
// $data = \Input::all();
//
// // Load entity in the section
// $this->section->loadEntity();
//
// // Populate attributes
// $this->section->setAttributesData($data);
//
// // Create a validator object
// $validator = $this->section->validateAttributes();
//
// // Validate data
// if($validator->fails())
// {
// return \Redirect::action(get_class($this).'@create')
// ->withInput()
// ->withErrors($validator->messages());
// }
//
// // Save entity
// $entity = $this->section->save();
//
// return \Redirect::action(get_class($this).'@create')
// ->with('success', 'Entity Saved');
// }
//
// public function show($model)
// {
// return $this->create();
// }
}