Re: Using a model without a table

2008-12-29 Thread George
I've been using the release candidates, and just upgraded to stable 1.2, hoping that would fix the issue but it hasn't. I've tried using MySQL now instead of MS SQL Server just to see if that had an effect (final will have to be MS though) but I'm still getting the same problem. If you're getting

Re: Using a model without a table

2008-12-29 Thread George
Ok, I finally solved the problem, and I feel like an idiot. I had my model files named plural instead of singular, so that's why there weren't getting loaded. ie: app/models/posts.php instead of app/models/ post.php. Argh. I thought I checked that first but probably got caught up in other stuff

Re: Using a model without a table

2008-12-26 Thread Dr. Loboto
George, what Cake version do you use? I tried your posts test with table replacing (to users one in my case) and it was fine. Debug outputed Post::$useTable = users etc. Test with $useTable = false also was fine. Do you use hacked core or some automagic components/AppModel/ AppController or any

Re: Using a model without a table

2008-12-25 Thread Webweave
Yes it was that podcast, and it was just a brief question about how to build a Model without a table. I tried to listen again to find it, but it's a long podcast, so I wasn't successful in finding the answer for you. I'd suggest going to the #cakephp channel and asking the question again. On

Re: Using a model without a table

2008-12-23 Thread George
Hmm...are you sure you linked the right podcast? That seemed to be only about formHelper. I listened to the whole thing and didn't hear anything related to setting up models without tables. Does anyone know how to check some sort of diagnostics on a model at runtime to see if the parameters are

Re: Using a model without a table

2008-12-23 Thread Dr. Loboto
Checked my models without tables, all of them work fine and differ from yours only in one param. All of them have $name : ?php class Utility extends AppModel { public $name = Utility; public $useTable = false; } ? Try add $name, maybe it is just strange bug? (and clear cache too) On

Re: Using a model without a table

2008-12-23 Thread George
Thanks for the suggestion Dr. Loboto. That doesn't seem to do it for me either though. I'm still getting the stupid complaint that the table doesn't exist. If I add a reports table to the database, then it works fine, but obviously I don't want to have to add tables to the database I have no

Re: Using a model without a table

2008-12-22 Thread George
Thanks for the suggestion, but unfortunately it didn't seem to do anything, and I still am getting a complaint that the reports table for the Report model was not found. Here is the exact code in the model: ?php class Report extends AppModel { var $useTable = false; public

Re: Using a model without a table

2008-12-22 Thread Webweave
This podcast http://live.cakephp.org/shows/view/4 has some info on what you need to do for this. There's a method you have to implement (sorry I didn't write it down). On Dec 22, 11:26 am, George geo...@hakumei.net wrote: Thanks for the suggestion, but unfortunately it didn't seem to do

Using a model without a table

2008-12-18 Thread George
Hello. I'm pretty new to cake and am working on creating a reporting intranet application. Basically I aggregate a bunch of data through views and stored procedures on the database, and would like to build a Report model that will just have a bunch of custom functions to run the various stored

Re: Using a model without a table

2008-12-18 Thread Kappa
Have you tried to reset the cache? Sometimes i have the same problem, and i solve it deleting the cache in /app/tmp/cache bye, Andrea On Dec 18, 6:55 pm, George geo...@hakumei.net wrote: Hello. I'm pretty new to cake and am working on creating a reporting intranet application. Basically