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.php I have a functio

Re: Custom datasource ignored

2011-05-04 Thread flowctrl
Thanks! That was it. On Apr 30, 7:51 am, Tilen Majerle wrote: > cakephp is still looking for database, because you wrong type model > property...it's $useTable not $useTables :) (so letter S at the end is > problem ) :) > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu &g

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 file which