Re: Automagic in CakePHP 3.x
There are still conventions for loading model/table classes in the controller with the same name, but nothing for validators. Right now validators are built in the table classes and applied to entity data during saving. While it is not required to put validations into a class that is an option people can use. How would a controller using a validator work? Wouldn't that make it harder to apply validation when one model alters the data of another? -mark -- 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 to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Spaces in Field Names
John, I am only reading from the Customers table. For list views, only one column; for detail views, several columns. Never all records from Customers, only what's necessary to supply customer data to the Quotes queries. Dale On Wednesday, March 5, 2014 12:55:06 PM UTC-6, John Andersen wrote: Please clarify your requirement with regard to the data in the MS SQL database. - are you only going to read data from the customers table? - do you need all the data from the customers table or only a subset? - do you need all the columns of the customers table or only specific ones? -- 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 to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
How to update data in several models in a single Web Service?
There are 3 tables in my database. Table1 has a one-to-many relationship to Table2. Table2 has a one-to-many relationship to Table3. I would like to write a web service API that allows the user to add rows to all 3 tables at the same time. The problem with CakePHP is that it only allows a controller to access its own corresponding model's data. How can a controller access other models? What is the best practices for CakePHP for a single controller to access other models? For my case in particular, which table should I use? Will Table1 be a good start since it is the parent to the other tables? -- 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 to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Exception output issue
Hello people, I realized recently that when an exception is triggered through a view (calling a nonexistent helper, for example), the error message along with the error layout (if customized) are displayed after the contents of the view in that the error is being generated (before the DOCTYPE). Is there any way to display only the error output without this content view? -- 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 to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.