1. Go to this page and download the library: Download orbitale/cms-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/ */
orbitale / cms-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
$bundles = [
// ...
new Orbitale\Bundle\CmsBundle\OrbitaleCmsBundle(),
];
}
namespace AppBundle\Entity;
use Orbitale\Bundle\CmsBundle\Entity\Page as BasePage;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="Orbitale\Bundle\CmsBundle\Repository\PageRepository")
* @ORM\Table(name="orbitale_cms_pages")
*/
class Page extends BasePage
{
/**
* @var int
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
}
namespace AppBundle\Entity;
use Orbitale\Bundle\CmsBundle\Entity\Category as BaseCategory;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="Orbitale\Bundle\CmsBundle\Repository\CategoryRepository")
* @ORM\Table(name="orbitale_cms_categories")
*/
class Category extends BaseCategory
{
/**
* @var int
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
}