Paging on associative fields
Hi all. I'm having problems with sort function. I have two models Task and Employee, they are related by Employee.nickname. Sort function works well on main model's fields, but it doesn't work with its associated field. I've also tried $paginator->sort('Employee', 'Employee.nickname') Is there anyone who have solved a similar problem? Best regards. -- View this message in context: http://www.nabble.com/Paging-on-associative-fields-tp24759009p24759009.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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: form select/javascript
You can do this: echo $form->input('Model.year', array('onclick'=>'someAction();', 'label'=>'','style'=>"width: 60px", 'minYear' => '1983', 'maxYear' => date('Y'))); kurious oranj wrote: > > > Hi, > > I'm quite new to CakePHP and need to have a SELECT with options for > each year from 1983 to the current year. I can certainly write the > javascript to do the loop from 1983 to current year, but what's the > best way to call that javascript to populate the SELECT? I just need > the general mechanism. > > Thanks > > > > > -- View this message in context: http://www.nabble.com/form-select-javascript-tp22808833p22817340.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Using functions from another model
Hi all! I created a database in postgres it has four tables, I've made their respective models. Only a model has a controller that call some functions from other models. I have the next problem when I try to call these functions: Warning (512): SQL Error: ERROR: syntax error at or near "demoFunction" Is there someone who had the same problem? Thanks! -- View this message in context: http://www.nabble.com/Using-functions-from-another-model-tp22611907p22611907.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Ajax requests destroy sessions
Hi I'm trying to render an element after an ajax request. After the request is successfully accepted by the controller the session will be destroyed. Is there anyone who had the same problem? Thanks! -- View this message in context: http://www.nabble.com/Ajax-requests-destroy-sessions-tp22294048p22294048.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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: Error 404
I'm working with MapServer, it works with the access directories directives in another directory, and I included AllowOveride all in this file. When I wrote again these directives in the main httpd.conf file, my application works! Thanks a lot! yusuf widi wrote: > > have you activated the apache mod_rewrite? the directory for cake > application also have to be AllowOveride to All. > > On Tue, Feb 24, 2009 at 6:51 AM, jc_mich wrote: > >> >> >> Hi >> I created an application according to MVC rules, my .htaccess files look >> like the specifications in >> >> http://bakery.cakephp.org/articles/view/500-errors-with-1and1-hosting-apache-1-x >> Errors with Hosting Apache but it doesn't work when I try to access it, >> the >> server display a 404 error. >> >> If I write http://server/app/index?url=users/login, it looks fine. >> >> What I did wrong? Is there someone who had the same problem? >> >> Thanks >> -- >> View this message in context: >> http://www.nabble.com/Error-404-tp22170947p22170947.html >> Sent from the CakePHP mailing list archive at Nabble.com. >> >> >> > >> > > > -- > http://www.wmonou.com > > > > > -- View this message in context: http://www.nabble.com/Error-404-tp22170947p22172352.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Error 404
Hi I created an application according to MVC rules, my .htaccess files look like the specifications in http://bakery.cakephp.org/articles/view/500-errors-with-1and1-hosting-apache-1-x Errors with Hosting Apache but it doesn't work when I try to access it, the server display a 404 error. If I write http://server/app/index?url=users/login, it looks fine. What I did wrong? Is there someone who had the same problem? Thanks -- View this message in context: http://www.nabble.com/Error-404-tp22170947p22170947.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Initializing form inputs after validation
Hi! I'm having a problem with validation process. I've created a form which its fields must be validated, after validation all fields return initialized to view except checkboxes. Is there someone who had this problem? -- View this message in context: http://www.nabble.com/Initializing-form-inputs-after-validation-tp21314964p21314964.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Checkboxes aren't checked after validations
Hi! I've created a form which has many fields that must be validated. Although some checkboxes are checked before submit but after validation process the checkboxes aren't checked. The value of the checkboxes is correct in data array when the model returns error messages. Is there anybody who had the same problem? Thanks -- View this message in context: http://www.nabble.com/Checkboxes-aren%27t-checked-after-validations-tp21208449p21208449.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Checkboxes aren't checked after validations
I've created a form which has many fields that must be validated. Although some checkboxes are checked before submit but after validation process the checkboxes aren't checked. The value of the checkboxes is correct in data array when the model returns error messages. -- View this message in context: http://www.nabble.com/Checkboxes-aren%27t-checked-after-validations-tp21205169p21205169.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---