forked from linusnorton/xFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
linusnorton edited this page Dec 30, 2011
·
10 revisions
A lightweight MVC framework
- Incredibly fast (boot in 2.2ms)
- Simple autoloading
- Dependency injection container
- Annotation based request mapping
- Phing build, test and documentation scripts
- Multiple view types: Twig (default), PHPTAL, pure PHP
- Inbuilt caching
- Doctrine2 integration (optional)
Pear installation
$ pear config-set auto_discover 1
$ pear install pear.linusnorton.co.uk/xFrame
Install with Doctrine2 (Optional)
$ pear config-set auto_discover 1
$ pear install --alldeps pear.linusnorton.co.uk/xFrame
(Note that PHP5.3 is required and APC is recommended)
Create directory structure
$ xframe --create-project /var/www/demo
Ensure you have created your virtual host, enabled mod_rewrite, restarted apache and edited /etc/hosts if necessary
Enter the domain you entered in the virtual host and test the set up was successful.
- Start hacking
src/demo/controller/Index.php
andview/index.html
- read about request mapping
- read about the dependency injection container
- read about bootstrapping
- read about Doctrine2 integration
- read about the phing script
- read about adding CLI targets