File: D:/HostingSpaces/SBogers70/inter-mill.com/app/Komma/SimplePages/SimplePageController.php
<?php
namespace Komma\SimplePages;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Komma\Blocks\BlockService;
use Komma\Contact\ContactController;
use Komma\Sitemap\SitemapController;
class SimplePageController extends \BaseController
{
protected $simplePageService;
public function __construct(SimplePageService $simplePageService)
{
parent::__construct();
$this->simplePageService = $simplePageService;
}
public function show($id = 2)
{
//get content of page
$page = $this->simplePageService->getSimplePageContent($id);
//get all page links
$links = $this->simplePageService->getAllRoutes();
return \View::make('layouts.pages.base_template')
->with('page', $page)
->with('links', $links);
}
}