Re: Fixtures or anything outside the database

2011-11-10 Thread 100rk
Beauty of ArraySource is - conventional usage of model (although limited a bit) - fields, order, limit, associations... https://github.com/cakephp/datasources/blob/2.0/Test/Case/Model/Datasource/ArraySourceTest.php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.

Re: Fixtures or anything outside the database

2011-11-10 Thread 100rk
One solution would be ArraySource from plugin https://github.com/cakephp/datasources - app/Config/bootstrap.php: CakePlugin::load('Datasources'); - app/Config/database.php: class DATABASE_CONFIG { public $array = array('datasource' => 'Datasources.ArraySource'); ... } - app/Mode

Fixtures or anything outside the database

2011-11-10 Thread Thiago Belem
I have this element where I display a list of testmonials and now i'm just creating them on the HTML, there's no data source. I want to use something like *fixtures* to separate this data from the view, but I don't want to use a new table for it, since I will not perfor filters or anything where I