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:
Date: 6 years ago
Size: 311 bytes
 

Contents

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);
        }
    }
}


For more information send a message to info at phpclasses dot org.