This is a drop in module that provides a clean and simple template for admin dashboards. It is a self contained module, so you can drop it in and you're good to go. It consists of a styled layout (Yii Bootstrap) and a base controller that handles all access control.
I've stripped everything out so it's a good starting point to get an admin module up and running.
Original design idea came from the 1st example in http://speckyboy.com/2013/05/16/user-experience-trends-for-admin-dashboards/
Bugs ¶
Please report any bugs to http://www.yiiframework.com/forum/index.php/topic/43493-yii-dashboard-bug-discussion/
Requirements ¶
- Yii 1.1 or above
- If you're using Yii Bootstrap in the main area of your app, you must use version 2.0.2 or higher. This module will not work if you're using anything less. Why? This module requires Bootstrap's register method which was added in version 2.0.2.
Usage ¶
Simply drop the extracted Admin module in protected/modules and edit your config file to recognize the module. Done
'modules' => array(
'admin'
),
Thank you
Good work thank you
Why the -1?
If you notice a bug please report it here.
Error
I get an error: Property "TbMenu.itemCssClass" is not defined.
D:\xampp\htdocs\yiiapp\protected\modules\admin\library\bootstrap\widgets\TbBaseMenu.php(66)
@devonc
@devonc I'd be happy to take a look if you post your menu code here - http://www.yiiframework.com/forum/index.php/topic/43493-yii-dashboard-bug-discussion/
re
I'm not sure what menu code you're asking for - the only thing I can think of is the main layout? Thanks
@devonc
So you haven't customized it yet? What version of Bootstrap are you running on the front-end?
re
No, I haven't customized it.
Oh, I didn't realize Bootstrap was required in the main area ("If you're using Bootstrap...") - and I'm not using it.
re
You don't need to use Bootstrap in your main area. The module provides a version; the only restriction is that IF YOU ARE USING Bootstrap in you main area, you must use version 2.0.2.
Nice
Thanks, for the beginners it looks good.
drop down sub menu
Just need a help, Is there any possibility to have drop down menu ? so that we can have more menus (instead of top)
Problem with yiistrap
There's a problem if you're using Yiistrap (the newer version of Yii Bootstrap).
This still gets set up with the component name 'bootstrap', but it doesn't have a getVersion method, so the version check in AdminModule::checkDependencies() gives an error.
It's simple enough to comment out the version check, though I'm not sure how you could easily distinguish between the old Yii Boostrap and Yiistrap
Updating yii-dashboard assets
If I change the bootstrap.css what is the best way of refreshing the published asset files from the yii-dashboard module?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.