git clone git://github.com/altrano/dmWhoIsOnlinePlugin.git plugins/dmWhoIsOnlinePlugin
class ProjectConfiguration extends dmProjectConfiguration { public function setup() { parent::setup(); $this->enablePlugins(array( // your enabled plugins 'dmWhoIsOnlinePlugin' ));
php symfony doctrine:generate-migrations-diff
php symfony doctrine:migrate
php symfony dm:setup
Open the apps/**/config/filters.yml
and add the filter.
remember_me: ~
security: ~
...
dmWhoIsOnline:
class: dmWhoIsOnlineFilter
...
dm_init: ~
from now user sessions should be stored in database to dmWhoIsOnline table.
Open the front "Add" menu, and drag&drop a dmWhoIsOnline widget somewhere on your site.
// TODO
show how many users are on current page.
dmWhoIsOnlinePlugin, created on June 19, 2010 by altrano, used by 95 projects