lsroudi/classifiedads

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:symfony-bundle

dev-master 2014-07-11 15:02 UTC

This package is not auto-updated.

Last update: 2024-04-22 23:21:39 UTC


README

The ClassifiedAdsBundle provide a sample classified ad system for your application based on symfony2

Installation

Step 1: Download ClassifiedAdsBundle using composer

$ php composer.phar require "lsroudi/classifiedads": "dev-master"

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Lsroudi\ClassifiedAdsBundle\LsroudiClassifiedAdsBundle(),
    );
}

Step 3: Create your Own Ad class

<?php

/**
 * 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.
 */

namespace Acme\DemoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Lsroudi\ClassifiedAdsBundle\Entity\Ad as BaseAd;


/**
 * @ORM\Entity
 * @ORM\Table(name="lsroudi_classified_ad")
 */
class Ad extends  BaseAd
{
     
    /**
     * @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;
    }  
}