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

Contents

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

    }
}


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