Hi folks, I'm using CakePHP for a new project, and I am having a great time not having to do so much CRUD work! That said, I want to set up a simple $scaffold based model, and I'm having trouble reconciling a table to a model. My application handles client billing for a business, and I have a model named Invoice, with all the convention based names for tables, columns, controllers, etc. Invoices must carry a status, and here is where I'm having some trouble. Here is the layout of the assets in question:
Table name: invoicestatuses (OR invoice_statuses) Model name: InvoiceStatus Model file name: invoice_status.php Controller name: InvoiceStatusesController Controller file name: invoicestatuses_controller.php CakePHP is able to find my model and controller, but it chokes on locating the table. If I use the former table name, CakePHP throws an error saying it can't find the latter, and vice versa. I've tried hardcoding either table in my model using the $table variable, and even $useTable (not sure if that would generally work anyway), but CakePHP always comes back telling me it can't find the table for my model. What am I doing wrong here? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
