Re: CakePHP 3 - Where is custom datasource ?

2015-09-06 Thread Rahul Singh
Salines writes: > > > > Hi, > > I have a large number of CakePHP 2 web applications, many of them use remote data over the DataSource. I'm reading the documentation of CakePHP 3, but I can not find instructions for remote datesource. > > My next project also

Re: CakePHP 3 - Where is custom datasource ?

2015-04-03 Thread Salines
Ok, thank you. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email t

CakePHP 3 - Where is custom datasource ?

2015-04-03 Thread mark_story
The custom datasource approach from 2.x had a number of drawbacks and leaky abstractions which we decided we didn't want to bring forward. The new orm focuses on being really great for sql based datastores, and we felt it would be impossible to provide great sql support and every other ki

CakePHP 3 - Where is custom datasource ?

2015-04-02 Thread Salines
Hi, I have a large number of CakePHP 2 web applications, many of them use remote data over the DataSource. I'm reading the documentation of CakePHP 3, but I can not find instructions for remote datesource. My next project also requires a custom DataSource (ArangoDB), so I planned to bui

problems with custom datasource

2011-12-28 Thread flosky
Hi everyone, I am writing a custom datasource with cake 2.x to get data from an api call. I did everything according to the twitter example in the book. But when I run a Model->find('all') I get following error message: Error: Database table examples for model Example was not foun

Re: Custom Datasource

2011-11-15 Thread RhythmicDevil
I got it working finally. This is what I ended up with: database.php public $gti = array( 'datasource' => 'GtiSource', 'url' => 'http://swright-dev:1337/' ); Model public $useDbConfig = 'gti'; Datasource filename: GtiSource.php class : GtiSource Although the filename:

Re: Custom Datasource

2011-11-15 Thread RhythmicDevil
ng the naming conventions for a > custom datasource. > > datasource file name: gti_api_source.php > class name GtiApiSource > > Database Config > >         var $gti_api = array( >             'driver' => 'gti_api', >             'url'

Custom Datasource

2011-11-15 Thread RhythmicDevil
Hi All, I am having some issues understanding the naming conventions for a custom datasource. datasource file name: gti_api_source.php class name GtiApiSource Database Config var $gti_api = array( 'driver' => 'gti_api', 'url&

Re: accessing a function in a custom datasource, from the model

2011-05-05 Thread dreamingmind
y written properties and methods. Other times, you'll have to break out the big guns to load your class. App::import() will do that for you. http://book.cakephp.org/view/1031/Saving-Your-Data#!/view/933/The-App-Class Regards, Don On May 4, 4:21 pm, flowctrl wrote: > Hello, > > In CakeP

accessing a function in a custom datasource, from the model

2011-05-04 Thread flowctrl
Hello, In CakePHP 1.3, how do I use a function in a custom datasource, from a model that uses that datasource? My custom datasource works for regular queries, but I want to extend the default "find" method to include a new parameter. In app/models/ datasources/foofiles_source.ph

Re: Custom datasource ignored

2011-05-04 Thread flowctrl
t; > 2011/4/30 flowctrl > > > > > Hello, > > > CakePHP seems to be ignoring the $useDbConfig variable in my model. > > I'm trying to use a custom datasource, but I'm getting the error: > > > Database table foo_files for model FooFiles was not found.

Re: Custom datasource ignored

2011-04-30 Thread Tilen Majerle
variable in my model. > I'm trying to use a custom datasource, but I'm getting the error: > > Database table foo_files for model FooFiles was not found. > > When I first loaded the model and new datasource, there were typos in > the datasource file which caused error

Custom datasource ignored

2011-04-30 Thread flowctrl
Hello, CakePHP seems to be ignoring the $useDbConfig variable in my model. I'm trying to use a custom datasource, but I'm getting the error: Database table foo_files for model FooFiles was not found. When I first loaded the model and new datasource, there were typos in the datasource

Custom Datasource for INI files

2010-02-23 Thread john Lange
I'm trying to write a custom datasource that reads and writes INI files (php ini files, not Windows). Even though INI files and databases are fundamentally incompatible in many ways, I never the less would like it to be as compatible with database sources as possible. I've created class