jQueryUI based Dashboard controller.
You can:
- drag/drop portlets
- store user preference in your own table
- set autosave portlets position on/off
- write page's content before and after dashboard
- apply any of jQuery UI theme
- set dashboard columns count
- show/hide dashboard header
- show/hide dashboard
Requirements ¶
Yii 1.1.5 or above
Usage ¶
Extend your controller from this dashboard base controller
class DashController extends UIDashboardController
and have fun.
Sample controller is present.

- add feature to store portlet's state
Change log: ¶
ver 1.1
(March 10, 2011)
(March 4, 2011)
- fixed autosave bug
- fixed double ajax call during autosaving
- rewrite store preference code. Now the record is not completely removed but only updates the "preference" field.
(Thanks Tobias B. for the help)
ver 1.0
Resources ¶
See other extensions: ¶
Total 19 comments
Wow So Cool
This is make beautiful dashboard
Hi... Support yii 1.13?
To install you do the following:
This is an additional controller not a extension or module so you don't have to do much to get it to work.
I just used xNicox db table:
create this table in your database
Download and extract the files to their locations under your protected file.
i.e. in the download controllers file, put all of its contents in your protected/controllers file. You will do the same for the view and components files.
Go to yourdomainname/dashboard and you can see it. Use the peoples mods in this post to make your other portlets work.
Please, extract all from archive under protected folder and use DashController or just extend your own controller from UIDashboardController. The Controllers init function must set up params for table (table name, user ID field name, user preference field name). Sample: $this->setTableParams('dashboard_table', 'user_id', 'prefference'); Then, set array of portlets (see sample in DashController). You may use $this->setAutosave(true) for saving user's prefference;
Dear extension provider,
I am new to yii and need to know to setup this DashBoard extension to my yii project. Since this information is not available on this page, please update this page with more details like other pages for extensions have.
Moreover,This is my kind request if anybody know how configure and use this extension, please put some notes here so that others like me can get benefit of this package.
Thank you all
Modify the code to render any component in the protlet
DashController:
View showDash:
Thanks so much for your ext.... Would you please write some database tutorial...
or.....any tutorial would be great.
Thanks so much.
I can't find a way to solve this problem without modifying the script a little.
In showDash.php:
To set the portlet:
If you use ajax update in your CGridView (like sorting/searching), you may need to use something like livequery plugin so that everything will work properly after ajax refresh. In dashboard.js I add something like:
Hope this can help someone else in the future. Thanks for the great extension, anyway!
Is it possible to render CGridView inside the portlet? I tried something like this:
but keep getting this error:
Portlet is array('id', 'title', 'content'). Example in controllers/DashController.php file. Portlets use jQuery UI theme from assets/themes. I just dont know how to use the dashboard_page table also :-)
Hai FlyBot
I just dont know how to use the dashboard_page table.. and how it customize the portlet..
Hey guys I create this database:
If your "prefix" is not blanks, yo should change: "app_roo_dir"/protected/controllers/DashController.php
Best regards
Yes it seems , like it need a database !! Some install steps could be nice ! Regards
Does it need database?
Does it need database?
Simple unzip this archive under protected folder and look http://localhost/dash in your browser.
How to use this extension?
I know this may seem self explanatory, but Install instructions here or in the zip file would help us simple folk.
I have 2 projects that might use an extension like this. I'm looking forward to running some tests.
Leave a comment
Please login to leave your comment.