Multiple forms per page, field IDs need to be unique
Hello, I'm currently working on an e-commerce application. On the product pages, I am generating a form to add products to the cart. As such, each page can contain several forms. I've created a helper for my application which contains: product display; add to cart form generation; menu generation for the cms; etc. My helper uses the Form and HTML helpers. Each form I create has the same ID (CartAddForm) as each form has the same action. Also, each field within the form shares the same ID with the form elements in the other forms (eg. CartProductDescription). As such, the pages fail validation. Can anyone immediately think of a way around this? Thanks, Chris. --~--~-~--~~~---~--~~ 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: Cake for large websites...Zend?
On Dec 24, 6:57 am, blange [EMAIL PROTECTED] wrote: Can cake handle very large enterprise websites? We have a site with user submitted articles, blogs, and an active forum with tens of thousands of users. Some of the developers are skeptical that cake can handle the load. Would zend be a better choice for a large site. If so, why? Thanks in advance, Brian If this helps: http://addons.mozilla.org/ is written in CakePHP, as are several other high traffic sites. Also take a look through the list found at: http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild Thanks, Chris. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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 -~--~~~~--~~--~--~---
Best Practice for multiple belongsTo associations (Cake 1.1)
Hello, I'm currently designing a database for an app I'm writing, and have a question on something. I have four tables: tasks, contacts, documents and companies. Multiple tasks can be assigned to either a contact, document or company. The problems is, I don't want to limit myself to just three tables, and I'd rather not have contact_id, document_id and company_id in my tasks table. What would be the best way around this? Does the answer lie with bindModel() ? Thanks in advance! Chris. P.S. I hope everyone has a great Christmas, and a good 2008 baking lots of cool stuff! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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: Adding new routes from a controller. (Cake 1.2)
Ok, I've cracked it, I have put the code in the applications app/ config/routes.php file. The code is as follows: $Configure = Configure::getInstance(); $Folder = new Folder(); $Folder-cd($Configure-pluginPaths[0]); $plugins = $Folder-ls(); foreach ($plugins[0] as $plugin) { $File = new File($Configure-pluginPaths[0] . $plugin . DS . 'config' . DS . $plugin . '_routes.php'); if ($File-exists()) { include_once($File-pwd()); } } Ta, Chris. On Dec 7, 6:42 pm, Chris Hawes [EMAIL PROTECTED] wrote: Hello, The application I am currently developing will make the use of plugins. Currently in the app/app_controller.php beforeFilter (which is probably the wrong place) I get a list of plugins. I then check to see if a config file exists for the plugin, and execute the file. I would also like to allow the plugin to define routes (could be dangerous I know). Should I include a custom file in bootstrap.php and from there load in the various plugins routes? Can I use the nice File and Folder classes from a file loaded with bootstrap.php? The long and short of it is, how do I define more routes in a controller? Is there a better way of doing this? Sorry if this isn't clear, or if I'm horribly breaking the MVC way. Many Thanks, Chris. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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 -~--~~~~--~~--~--~---
Adding new routes from a controller. (Cake 1.2)
Hello, The application I am currently developing will make the use of plugins. Currently in the app/app_controller.php beforeFilter (which is probably the wrong place) I get a list of plugins. I then check to see if a config file exists for the plugin, and execute the file. I would also like to allow the plugin to define routes (could be dangerous I know). Should I include a custom file in bootstrap.php and from there load in the various plugins routes? Can I use the nice File and Folder classes from a file loaded with bootstrap.php? The long and short of it is, how do I define more routes in a controller? Is there a better way of doing this? Sorry if this isn't clear, or if I'm horribly breaking the MVC way. Many Thanks, Chris. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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: Please Help me
On 30 Jan 2007, at 11:13, anand wrote: Please tell me the procedures to install cake php and how to create a simple registration form Please give me the sample coding thanks alot CakePHP is really easy to install, the guide can be found at the following URL: http://manual.cakephp.org/chapter/installing The blog tutorial, which is very simple and easy to follow should set you on the right path. http://manual.cakephp.org/appendix/blog_tutorial I also learnt a lot by looking at the CakePHP source code, and various projects on CakeForge. Also use the api to find out the correct arguments for the various function etc. http://api.cakephp.org/ Cheers, Chris. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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 -~--~~~~--~~--~--~---