#Silex Test Case Started as a hackday.. ended as something like a Cookbook for Silex.
Following Components are used:
- Session
- SymfonyBridges
- Validator
- Translation
- Twig
- UrlGenerator
- Forms
- MonologService
- SwiftMailer
- Doctrine
git clone git://github.com/podlebar/Silex-Test-Case.git
and
cd Silex-Test-Case
then
sh vendors.sh
cd vendor/silex
git submodule update --init --recursive
<VirtualHost *:80>
ServerName www.silex-test-case.local
DocumentRoot "/Library/WebServer/Documents/Silex-Test-Case/web"
<Directory "/Library/WebServer/Documents/Silex-Test-Case/web">
Options -Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
Don't forget to add the url (silex-test-case.local) to your hosts file
Edit YAML Config-Files in /config and copy and rename ist to .yml
Change back to the project's root directory. mkdir log
..and make sure it's writable
touch log/development.log
Create the folder for uploads
mkdir web/uploads
..and make sure it's writable
name it "silex_test_case" or what you defined it in your app.yml
CREATE TABLE IF NOT EXISTS `user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(200) NOT NULL,
`userhash` varchar(255) NOT NULL,
`email` varchar(200) NOT NULL,
`password` varchar(255) NOT NULL,
`birthdate` date NOT NULL,
`language` char(4) NOT NULL,
`validated` tinyint(1) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;