Diferencia entre revisiones de «Usuario:Lmorillas/desarrollo web servidor/php/silex»
De WikiEducator
| Línea 53: | Línea 53: | ||
$app->run(); | $app->run(); | ||
|Title=Inicialización | |Title=Inicialización | ||
| + | |TOCdepth=2 | ||
| + | }} | ||
| + | |||
| + | {{Objetivo| | ||
| + | |||
| + | * Tutorial | ||
| + | ** http://bojanz.wordpress.com/2013/11/11/learning-php-development-with-silex/ | ||
| + | ** https://github.com/bojanz/musicbox | ||
| + | * Silex y doctrine: http://asiermarques.com/2013/silex-con-doctrine-dbal-y-orm/ | ||
| + | |Title=Más ... | ||
|TOCdepth=2 | |TOCdepth=2 | ||
}} | }} | ||
Revisión de 21:53 5 feb 2014
Contenido
¿Qué es?
|
Documentación
OficialOtros docs
Un ejemplo para aprender |
Instalación
|
composer.json {
"require": {
"silex/silex": "1.0.*@dev"
}
}
$ curl -s http://getcomposer.org/installer | php $ php composer.phar install |
Inicialización
// web/index.php
require_once __DIR__.'/vendor/autoload.php'; $app = new Silex\Application(); $app['debug'] = true; // código de los controladores $app->run(); |