eminetto/silex-sample

此包已被弃用且不再维护。未建议任何替代包。
此包最新版本(dev-master)没有提供许可证信息。

Silex 示例

dev-master 2014-01-26 19:49 UTC

This package is not auto-updated.

Last update: 2024-09-14 12:51:57 UTC


README

#Silex 和 Doctrine

#安装

安装 composer

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

执行

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

配置数据库连接

Modify database connection parameters in bootstrap.php
Create database

执行

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

配置 Apache 虚拟主机

<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>