PHP code example of kitpages / user-generated-bundle

1. Go to this page and download the library: Download kitpages/user-generated-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 / user-generated-bundle example snippets

 php
 // app/autoload.php

$loader->registerNamespaces(array(
    // ...
    'Gedmo'     => __DIR__.'/../vendor/gedmo-doctrine-extensions/lib',
    'Stof'      => __DIR__.'/../vendor/bundles',
    'Kitpages'  => __DIR__.'/../vendor/bundles',
));
 php 
 // app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        new Kitpages\UtilBundle\KitpagesUtilBundle(),
        new Kitpages\UserGeneratedBundle\KitpagesUserGeneratedBundle(),
    );
}