Motorbike bundle store
MotorbikeBundle used to create and store registered motor bike in database ., (*1)
requirements
symfony >= 2.7, (*2)
php > 5.4, (*3)
imagick, (*4)
installation
composer require rth/motorbike-bundle "dev-master"
in your AppKernel.php file add following line :, (*5)
public function registerBundles()
{
$bundles = array(
.
.
.
.
new \Rth\MotorbikeBundle\RthMotorbikeBundle(), // Motorbike bundle
)
}
now add these lines in app/config.yml, (*6)
rth_motorbike:
general:
upload_directory: "uploads" # upload directory name
upload_path: "%kernel.root_dir%/../web/uploads" # upload path will be this. do not change it!
image_tumbnail_width: 50 # image thumbnail width , imagick resizer
image_tumbnail_height: 50 # image thumbnail height , imagick resizer
default:
motorbikes_per_page: 5
filters: "color:text" # example : color:text,model:text,make:text
update database schema, (*7)
doctrine:schema:update --force
How to use ?
well you must first make your security system config then you need registered user with ROLE_ADMIN to have access
to following admin page to add or list motorbikes ., (*8)
example.host/admin/motorbike
public page, (*9)
example.host/motorbike
if you wanna add some more filters it's better to take look at config section once again !
we have limit filters and it depends on entity field ., (*10)
To Do
adding motorbike edit page ., (*11)