Giter VIP home page Giter VIP logo

phileadmin's Introduction

Phile Admin

What

A small admin backend framework for PhileCMS based on Silex (symfony components) and Bootstrap. Takes care of the backend boilerplate (login/logout, templating, localization) and makes it easy to develop admin plugins.

Find plugins using it on Phile’s plugin page.

Installation

1.1 Installation (composer)

"require": {
	"siezi/phile-admin": "*"
}

1.2 Installation (Download)

Download the latest archive from the release page into plugins/siezi/phileAdmin.

2. Activation

After you have installed the plugin you activate it by adding the following line to your config.php file:

$config['plugins']['siezi\\phileAdmin'] = ['active' => true];

The default backend URL is http://…/<phile-root>/backend/

3. Start

To login you have to chose an admin password, create an hash for it (see login page) and put it into the plugin config.

$config['plugins']['siezi\\phileAdmin']['admin'] = [
	'name' => '<name>',
	'password' => '<password hash>'
];

4. Config

See config.php.

Plugin Development

The backend is essentially a Silex app and a admin-plugin repository containing admin-plugins. On a callback in a standard Phile Plugin-class you create a new admin-plugin, configure it and add it to the repository. Then you create Silex routes and controllers (extending AdminController).

See the cache plugin for a simple plugin implementation.

Enable the debug mode in the config.php when you develop (disable template cache, …).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.