PHP Classes

File: app/controllers/DocController.php

Recommend this page to a friend!
  Classes of ikhsan   Slim Starter   app/controllers/DocController.php   Download  
File: app/controllers/DocController.php
Role: Application script
Content type: text/plain
Description: Documentation controller
Class: Slim Starter
Build MVC Web applications based on Slim framework
Author: By
Last change: Update of app/controllers/DocController.php
Date: 5 months ago
Size: 311 bytes
 

Contents

Class file image Download
<?php

class DocController extends BaseController
{

    public function
index($page=array())
    {
        if(!
$page){
           
App::render('docs/index.twig', $this->data);
        }else{
           
$page = 'docs/'.implode('/', $page).'.twig';
           
App::render($page, $this->data);
        }
    }
}