Skip to content

kahwee/backstage

Repository files navigation

Backstage - Easy admin interface for Yii

What is Backstage?

Backstage is a Yii Framework module that is easily deployable and can be used for scaffolding.

How to make it work

Deploy it by placing it Backstage into protected/modules/backstage.

And in your ./protected/config/main.php, add backstage to begin:

<?php
return array(
  'modules' => array(
  	'backstage' => array(),
	),
);

Go to the website http://localhost/index.php?r=backstage to view Backstage.

More advance usage

For more advance usage, here is an example.

<?php
return array(
  'modules' => array(
		'backstage' => array(
			'class' => 'application.modules.backstage.BackstageModule',
			#'autoloadModels' => false,
			#'login_required' => true, // with support of CWebUser
			'name' => 'Backstage',
			'copyright_name' => 'Backstage, Inc.'
			'models' => array(
				'Tag' => array(
					'id' => array(
						'control' => 'datetime',
						'visible' => true,
						'format' => 'M j, Y g:i A',
					),
				),
				'User' => false,
				'Article' => array(
					'content' => array(
						'control' => 'richtext',
					),
					'create_by' => array(
						'control' => 'relation',
					),
					'create_time' => array(
						'visible' => array('index', 'search'),
						'locked' => array('update'),
					),
				),
			)
		),
	),
);

Issues?

If you have any issues, please highlight them in Backstage's GitHub issues.

About

Backstage — Easy admin interface for Yii Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published