File: D:/HostingSpaces/SBogers10/straffer.komma.nl/app/Komma/Pages/PageController.php
<?php
namespace Komma\Pages;
use Illuminate\Http\Request;
class PageController extends \BaseController
{
public $data;
protected $pageService;
public function __construct(PageService $pageService){;
$this->pageService = $pageService;
$this->data = (object)[];
}
public function show($id = 2){
$this->data->id = $id;
$this->data->content = $this->pageService->getPageContent($id);
$this->data->contactLink = $this->pageService->getUrl('contact');
return \View::make('layouts.pages.'.$this->data->content->code_name)->with('data', $this->data);
}
public function index(){
echo "hoi";
}
}