PHP Classes

File: app/controllers/Admin/BaseController.php

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

Contents

Class file image Download
<?php
namespace Admin;

use \
App;
use \
Menu;
use \
Module;

class
BaseController extends \BaseController
{

    public function
__construct()
    {
       
parent::__construct();
       
$this->data['menu_pointer'] = '<div class="pointer"><div class="arrow"></div><div class="arrow_border"></div></div>';

       
$adminMenu = Menu::create('admin_sidebar');
       
$dashboard = $adminMenu->createItem('dashboard', array(
           
'label' => 'Dashboard',
           
'icon' => 'dashboard',
           
'url' => 'admin'
       
));

       
$adminMenu->addItem('dashboard', $dashboard);
       
$adminMenu->setActiveMenu('dashboard');

        foreach (
Module::getModules() as $module) {
           
$module->registerAdminMenu();
        }

    }
}