2017 © Pedro Peláez
 

symfony-bundle classifiedads

image

lsroudi/classifiedads

  • Friday, July 11, 2014
  • by lsroudi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ClassifiedAdsBundle

The ClassifiedAdsBundle provide a sample classified ad system for your application based on symfony2, (*1)

Installation

Step 1: Download ClassifiedAdsBundle using composer

``` bash $ php composer.phar require "lsroudi/classifiedads": "dev-master", (*2)


### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Lsroudi\ClassifiedAdsBundle\LsroudiClassifiedAdsBundle(), ); }

Step 3: Create your Own Ad class

``` php, (*3)

<?php, (*4)

/** * Description of Ad * * (c) lsroudi http://lsroudi.com/ lsroudi@gmail.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */, (*5)

namespace Acme\DemoBundle\Entity;, (*6)

use Doctrine\ORM\Mapping as ORM; use Lsroudi\ClassifiedAdsBundle\Entity\Ad as BaseAd;, (*7)

/** * @ORM\Entity * @ORM\Table(name="lsroudi_classified_ad") */ class Ad extends BaseAd {, (*8)

/**
 * @var integer
 *
 * @ORM\Column(name="id", type="integer", nullable=false)
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="IDENTITY")
 */
protected $id;

public function __construct()
{
    parent::__construct();       
}

public function getId()
{
    return $this->id;
}  

} ```, (*9)

The Versions

11/07 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

classified ads petites annonces