1. Go to this page and download the library: Download kitpages/activity-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kitpages / activity-bundle example snippets
$this->get("kitpages_activity.activity_manager")->createActivity(
"my_category",
"my title",
"my message content",
"my url", //optionnal
"my reference", //optionnal
array("key1" => "val1", ), //optionnal
);
public function registerBundles()
{
$bundles = array(
// ...
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Kitpages\ActivityBundle\KitpagesActivityBundle(),
new Kitpages\DataGridBundle\KitpagesDataGridBundle(),
);
}