HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/brameda/brameda.nl/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();
//    }

}