Diferencia entre revisiones de «Usuario:Lmorillas/desarrollo web servidor/php/silex»
De WikiEducator
| (5 revisiones intermedias por el mismo usuario no mostrado) | |||
| Línea 16: | Línea 16: | ||
=== Otros docs === | === Otros docs === | ||
* http://www.slideshare.net/javier.eguiluz/silex-desarrollo-web-gil-y-profesional-con-php | * http://www.slideshare.net/javier.eguiluz/silex-desarrollo-web-gil-y-profesional-con-php | ||
| − | |||
| − | |||
| − | |||
=== Un ejemplo para aprender === | === Un ejemplo para aprender === | ||
| Línea 25: | Línea 22: | ||
|TOCdepth=2 | |TOCdepth=2 | ||
}} | }} | ||
| + | |||
| + | {{Objetivo| | ||
| + | composer.json | ||
| + | { | ||
| + | "require": { | ||
| + | "silex/silex": "1.0.*@dev" | ||
| + | } | ||
| + | } | ||
| + | <source lang="bash"> | ||
| + | $ curl -s http://getcomposer.org/installer | php | ||
| + | $ php composer.phar install | ||
| + | </source> | ||
| + | |Title=Instalación | ||
| + | |TOCdepth=2 | ||
| + | }} | ||
| + | |||
| + | {{Objetivo|1= | ||
| + | // web/index.php | ||
| + | |||
| + | require_once __DIR__.'/vendor/autoload.php'; | ||
| + | |||
| + | $app = new Silex\Application(); | ||
| + | $app['debug'] = true; | ||
| + | |||
| + | // código de los controladores | ||
| + | |||
| + | $app->run(); | ||
| + | |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 | ||
| + | }} | ||
| + | |||
| + | {{Usuario:Lmorillas/desarrollo_web_servidor/php/silex/actividad_silex}} | ||
Última revisión de 06:41 6 feb 2014
Contenido
¿Qué es?
|
Documentación
OficialOtros docsUn 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(); |
Más ...
Actividad
|
Sigue los pasos del siguiente tutorial:
Código fuente: https://github.com/beryllium/UpThing
|