Giter Club home page Giter Club logo

silex-sample's Introduction

#Silex and Doctrine

#Install

Install composer

curl -s https://getcomposer.org/installer | php

Execute

php composer.phar create-project -s dev eminetto/silex-sample project_name

Configure database connection

Modify database connection parameters in bootstrap.php
Create database

Execute

./bin/doctrine orm:schema-tool:create

Configure Apache VirtualHost

<VirtualHost *:80>
    DocumentRoot "/vagrant/silex-sample"
    ServerName silex-sample.dev

    <Directory "/vagrant/silex-sample">
            Options Indexes Multiviews FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all


            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule !\.(js|ico|gif|jpg|png|css|htm|html|txt|mp3)$ index.php
    </Directory>
</VirtualHost>

silex-sample's People

Contributors

eminetto avatar kinncj avatar jfranciscos4 avatar

Stargazers

Marcelo Filho avatar Fabricio Konell avatar Gabriel Pimenta avatar Angus H. avatar samdus avatar Eilem avatar  avatar Ricardo Fontanelli avatar Alex Junior avatar Sérgio R Siqueira avatar Andrey Kolomiets avatar George W Neto avatar Romeu Mattos avatar Daniel Archer avatar Erick Patrick avatar Guilherme Pereira avatar Davi Marcondes Moreira avatar amm avatar Dennis Fridrich avatar Wellington Freire avatar Thiago Paes avatar Fabio avatar Artem Zinoviev avatar Thiago Marinho avatar Alexandre Cyro avatar  avatar Si Nguyen avatar Gab Stehr avatar Rostyslav Gulka avatar Artem Kovardin avatar duynguyen avatar Sun Feng avatar Hussani Oliveira avatar Lucho Mayta avatar Anderson Fraga avatar Claudson Oliveira avatar Mohammed Irfan avatar Rajib Ahmed avatar Hong Truong avatar

Watchers

Si Nguyen avatar  avatar James Cloos avatar Lucas Leme de Moura avatar Luiz Felipe Kohler avatar

silex-sample's Issues

Layout enhancements

What do you think about a Twitter bootstrap or any other "bootstrap" implementation?
And a sample with the symfony validators ?

Database schema

I was studding Silex at Code Squad and I decide run this example on my own computer. I can't find the database schema at this project. When I run the app, it returns a error 500. May You give me the database schema?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.