2017 © Pedro Peláez
 

library admin

Admin template for Nette

image

chapcz/admin

Admin template for Nette

  • Saturday, March 25, 2017
  • by chapcz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 139 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 5 Versions
  • 23 % Grown

The README.md

Admin

Admin

Alt text, (*1)

Login

Alt text, (*2)

Live Demo

Live Demo, (*3)

Github Demo, (*4)

Installation

composer.json, (*5)

{
    "require":{
        "kollarovic/admin": "dev-master"
    }
}

config.neon, (*6)


extensions: navigation: Kollarovic\Navigation\DI\Extension admin: Kollarovic\Admin\DI\Extension

Admin

BasePresenter, (*7)


namespace App\BackendModule\Presenters; use Nette\Application\UI\Presenter; use Kollarovic\Admin\IAdminControlFactory; abstract class BasePresenter extends Presenter { /** @var IAdminControlFactory @inject */ public $adminControlFactory; protected function createComponentAdminControl() { $adminControl = $this->adminControlFactory->create(); return $adminControl; } }

@layout.latte, (*8)


{capture $content} {include content} {/capture} {control adminControl content=>$content}

Login

SignPresenter, (*9)


namespace App\BackendModule\Presenters; use Kollarovic\Admin\ILoginControlFactory; use Nette\Application\UI\Presenter; class SignPresenter extends Presenter { /** @var ILoginControlFactory @inject */ public $loginControlFactory; protected function createComponentLoginControl() { $loginControl = $this->loginControlFactory->create(); $loginControl->onLoggedIn[] = function() { $this->redirect('Homepage:default'); }; return $loginControl; } }

in.latte, (*10)


{control loginControl}

The Versions

25/03 2017

dev-master

9999999-dev

Admin template for Nette

  Sources   Download

New BSD

The Requires

 

The Development Requires

by Mario Kollarovic

template admin nette

25/03 2017

0.2.1

0.2.1.0

Admin template for Nette

  Sources   Download

New BSD

The Requires

 

The Development Requires

by Mario Kollarovic

template admin nette

21/03 2017

0.2

0.2.0.0

Admin template for Nette

  Sources   Download

New BSD

The Requires

 

The Development Requires

by Mario Kollarovic

template admin nette

26/04 2016

0.1

0.1.0.0

Admin template for Nette

  Sources   Download

New BSD

The Requires

 

The Development Requires

by Mario Kollarovic

template admin nette

15/01 2016

dev-patch-1

dev-patch-1

Admin template for Nette

  Sources   Download

New BSD

The Requires

 

The Development Requires

by Mario Kollarovic

template admin nette