Re: Latest Cake Release breaks HABTM pagination
I had the same problem, and after hours of searching, I've come across some luck. Here is what I did to get it to work: I don't quiet understand why, but this seems to fix the issue with 1.2.1.8004. I just hope there aren't any side-effects. I made $reset (second parameter for bindModel) to false, and it worked. Instead of code$this-Book-bindModel(array('hasOne' = array ('BooksCategory')));/code I used code$this-Book-bindModel(array('hasOne' = array ('BooksCategory')),false);/code The API says 'If $reset is false, association will not be reset to the originals defined in the model' and I don't quiet understand the repercussions of that. If I shouldn't be doing this, please do let me know. :-) Hope that helps, Palaniappan. On Jan 29, 5:31 am, aron acaldw...@gmail.com wrote: Following this tutorial http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-... we had this working great in rc4 but when we upgraded the final release cake seems to ignore the relationships and throws the following error: Unknown column ‘Listing.city_id’ in ‘where clause’ the sql statement no longer does a join, when we replace the cake folder with the rc4 cake folder it works fine again. Any insight from any cake gurus? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Latest Cake Release breaks HABTM pagination
Oh wait, no, that shouldn't matter, I can just unbind later... On Feb 3, 4:30 pm, palam palaniapp...@gmail.com wrote: I had the same problem, and after hours of searching, I've come across some luck. Here is what I did to get it to work: I don't quiet understand why, but this seems to fix the issue with 1.2.1.8004. I just hope there aren't any side-effects. I made $reset (second parameter for bindModel) to false, and it worked. Instead of code$this-Book-bindModel(array('hasOne' = array ('BooksCategory')));/code I used code$this-Book-bindModel(array('hasOne' = array ('BooksCategory')),false);/code The API says 'If $reset is false, association will not be reset to the originals defined in the model' and I don't quiet understand the repercussions of that. If I shouldn't be doing this, please do let me know. :-) Hope that helps, Palaniappan. On Jan 29, 5:31 am, aron acaldw...@gmail.com wrote: Following this tutorial http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-... we had this working great in rc4 but when we upgraded the final release cake seems to ignore the relationships and throws the following error: Unknown column ‘Listing.city_id’ in ‘where clause’ the sql statement no longer does a join, when we replace the cake folder with the rc4 cake folder it works fine again. Any insight from any cake gurus? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
shared images across applications
I'm using AD7Six's production setup on a shared host. http://www.ad7six.com/MiBlog/ProductionSetupRevisited I'm trying to figure out a way to share common images across applications. The cakes/thiscake/vendors folder doesn't work for images. Only CSS and JavaScript. If possible, I want to avoid making symlinks. Any ideas? Thanks! Palaniappan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Custom model functions not being recognised
The problem is that custom model functions are not getting called from my controller. $this-Model-findById() works, but $this-Model- getCitiesListForCentreType() (for example) doesn't work and the query literally becomes getCitiesListForCentreType I have setup a bare bones version on my server : http://cloudmint.com/desperation3/foneclubs/locations The controller and model codes are here : http://bin.cakephp.org/view/505844569 What am I doing wrong? Thanks, Palaniappan C. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Custom model functions not being recognised
I should add that it works okay on my localhost. It's a problem only on the server. Palaniappan C. On Jun 6, 4:50 pm, palam [EMAIL PROTECTED] wrote: The problem is that custom model functions are not getting called from my controller. $this-Model-findById() works, but $this-Model-getCitiesListForCentreType() (for example) doesn't work and the query literally becomes getCitiesListForCentreType I have setup a bare bones version on my server :http://cloudmint.com/desperation3/foneclubs/locations The controller and model codes are here :http://bin.cakephp.org/view/505844569 What am I doing wrong? Thanks, Palaniappan C. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Custom model functions not being recognised
Fixed in #cakephp I had mistakenly capitalised my model filenames. Beware! Read the conventions! This worked on my comp because Mac OS X has a way to find files either way. Apparently Windows does too. Lowercasing the filenames made it work. Thanks to woopstash2! On Jun 6, 10:18 pm, palam [EMAIL PROTECTED] wrote: I should add that it works okay on my localhost. It's a problem only on the server. Palaniappan C. On Jun 6, 4:50 pm, palam [EMAIL PROTECTED] wrote: The problem is that custom model functions are not getting called from my controller. $this-Model-findById() works, but $this-Model-getCitiesListForCentreType() (for example) doesn't work and the query literally becomes getCitiesListForCentreType I have setup a bare bones version on my server :http://cloudmint.com/desperation3/foneclubs/locations The controller and model codes are here :http://bin.cakephp.org/view/505844569 What am I doing wrong? Thanks, Palaniappan C. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---