multiple pagination per page in ajax
Is it possible in CakePHP to have multiple pagination in ajax on one page? If so, how? Cake uses the $paginator to hold pagination content. so this is why multiple ones are not possible, since there is only one paginator variable. How can I solve this? thanks 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 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
links point to wrong folder
When I cake bake a project it appears that all the links are pointing to a wrong folder. http://localhost/users instead of http://localhost/project1/users. Also the images are not displayed. I have added Alloworverride all in httpd.conf and also uncommented in core.php configure::write('App.baseURL'env(SCRIPT_NAME));, but of this seems to solve my problem. Any advice is appreciated. 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 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 request using default.ctp instead of ajax.ctp
The below ajax request works well, but it's using default.ctp as layout file instad of ajax.ctp. How can I tell it to use ajax.ctp as layout file? thanks ? $options = array( 'url'=array( 'controller'='items', 'action'='view', 'before'='startLoading()', $item['Item']['id'] ), 'update'='item_view'); ? ? echo $ajax-link('Show the details now','/items/ view/'.$item['Item']['id'],$options);? 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 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: ajax request using default.ctp instead of ajax.ctp
thanks. that worked. On Feb 11, 7:38 pm, John Andersen j.andersen...@gmail.com wrote: In your items controller, you have to set the layout, when you detect that it is an AJAX request that you are processing. See how to detect this athttp://book.cakephp.org/view/350/Obtaining-Request-Information And here for the layouthttp://book.cakephp.org/view/51/Controller-Attributes#Page-related-At... Enjoy, John On Feb 11, 9:22 pm, NickPick dickreu...@yahoo.com wrote: The below ajax request works well, but it's using default.ctp as layout file instad of ajax.ctp. How can I tell it to use ajax.ctp as layout file? thanks ? $options = array( 'url'=array( 'controller'='items', 'action'='view', 'before'='startLoading()', $item['Item']['id'] ), 'update'='item_view'); ? ? echo $ajax-link('Show the details now','/items/ view/'.$item['Item']['id'],$options);? 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 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
hasOneAndBelongsToOne Bmodel?
I have the following problem: - user model [id, firstname, lastname, email] - review model [id, author_id, target_id, comment] Each user can review other users. Both review.author_id and review.target_id should be linked to user.id. What is the relation between those models? Each review hasAndBelongs to one user, right? Both the author_id and the target_id are refering to the user model. How can this be described in the models? many thanks 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 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