Learn how developing with the Lithium framework for PHP 5.3+ not only allows you to develop applications on tighter deadlines, but how Lithium's unique, superior architecture allows much-improved maintainability over the life of your apps.
$ li3 create Photos
Photos created in appmodels.
PhotosController created in appcontrollers.
PhotosTest created in apptestscasesmodels.
PhotosControllerTest created in apptestscasescontrollers.
photoblog/config/bootstrap.php
/**
* This file contains configurations for handling different
* content types within the framework, including converting data to
* and from different formats, and handling static media assets.
*/
require __DIR__ . '/bootstrap/media.php';
photoblog/config/bootstrap/media.php
Media::type('jpg', 'image/jpeg', array(
'cast' => false,
'encode' => function($data) {
return $data['photo']->file->getBytes();
}
));