Re: New Cake FAQ
Let's keep this thread alive ! Here's one I've seen a few times : Q. Can I use scaffolded forms in my application ? A. That's really up to you. The forms will not stop working, and if they do what you need you may consider keeping them in your finished application. However, many people will advise against it, on the grounds that : 1. Hand made forms will always look better and be more usable than scaffolded forms 2. Unlike hand made forms, scaffolded forms cannot be customised - if you need to make the slightest change months later, you will have to do the whole form, causing extra work and delays that you probably had not scheduled in. Anselm --~--~-~--~~~---~--~~ 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: New Cake FAQ
On 3/10/07, Sam Sherlock [EMAIL PROTECTED] wrote: 1: Make a Hello World Application. Yep and perhaps the title should be We knew you were coming so we baked a cake! Such titles could be misleading for a beginner , in my opinion :) Perhaps the FAQ could include these questions as well : Q: What is a baker ? Q: In the context of CakePHP, what's the meaning of the verb to bake ? Cheers, Adrian Maier --~--~-~--~~~---~--~~ 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: New Cake FAQ
Here's some more on answering the often asked question of how do I make my associations : Q. None of the associations provided by CakePhp fit what I want to do. A. In most cases you can express your association in terms of Cake's associations. For instance if you have an Organisation and a Person such that your relationship between the two is An Organisation is founded by a Person and A person founds an Organisation, this can easily be expressed as An Organisation belongs to a Person and A person has many Organisations - so you can use Cake's associations directly. In some cases the semantic meaning is lost, but you can still use Cake's associations -- for instance for a movie database you want to express the relationship has played in the same film as between Actors. While the semantic meaning is different, you can still model this using the has and belongs to many relationship. In other cases, Cake's associations may not be the best route to go -- for instance to model relationships such as is a special kind of or acts as. To implement such relationships, it may be usefull to look at behaviours (see manual) rather than associations. Anselm --~--~-~--~~~---~--~~ 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: New Cake FAQ
I think the question should have Hello World in it, and the answer should have a link to the blog tutorial. This would: 1. Help search engines find this question, I doubt many people search for bake a cake when trying to create a Hello World applictaion. 2. Help new users who don't know what baking a cake means. Nor do they care, I don't think. I didn't care. When talking to someone new you should really speak thier language, not yours. Q: How do I create a Hello World type site with CakePHP? A: A great place to start would be our simple Blog Creation Tutorial[link]. It will walk you through creating a basic site that interacts with your database. -rtconner On Mar 9, 4:23 pm, Sam Sherlock [EMAIL PROTECTED] wrote: 1: Make a Hello World Application. Yep and perhaps the title should be We knew you were coming so we baked a cake! then links to documentation, faq's furthermore how about An example app could be a included with the download ready to copy to an app directory and sql to insert with phpmyadmin. this app would display documentation for cakePHP and credits to the core minds of cakePHP. it could be a simple interactive demo which a newbie to cake would be invited and code to edit and where it is and you can delete and reinstall it - great for trial and error On 09/03/07, rtconner [EMAIL PROTECTED] wrote: I'm pretty much a noob. I just started on cakePHP 2 days ago. Biggest questions so far... Problem 1: Make a Hello World Application. I found nothing like this, just messed around with things and figuered it out eventually. Problem 2: Make a Hello World Application which connects to the database. The blog tutorial was great, its a good thing I had no idea that it existed until I had figuered it out already. Problem 3: My practice application had the commonly used date fields in it. Any system worth its weight in anything would have some automated date handling. It took me forever to find a way to easily handle dates. I'm still learning. But its not been easy to get started at all. Nothing seems to have gone right. I guess, my biggest problem was locating tutorials on how to get started on basic functions. It seems they exist, I did not know they were there at all though. -Rob --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: How do i create bread crumbs? Q: How do i create active state on menu's --~--~-~--~~~---~--~~ 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: New Cake FAQ
I think it should start with a How do I get started with a guided set of links 1. Intro - http://manual.cakephp.org/chapter/intro 2. Basic Concepts http://manual.cakephp.org/chapter/basic_concepts 3. Installing - http://manual.cakephp.org/chapter/installing 3a. link to some trouble shooting faq questions or a page on troubleshooting your installation (like un-ziper doesn't do empty folders, ftp client doesn't do invisible files, php5 doesn't install db drivers be default, Overwrite All not enabled on machine 3b. perhaps links to some instructions on getting started with some of the LAMP/ MAMP/ WAMP packages 4. Building a 'Hello world app - http://manual.cakephp.org/appendix/blog_tutorial 5. where to go from here: links to api, manual, cakegroup, cakeforge, etc... 5a. how to ask a 'good question' - http://www.catb.org/~esr/faqs/smart-questions.html 5b. how to I report a bug information about trac/ that you need to sign up, how to report a bug, https://trac.cakephp.org/wiki/bugreport perhaps even how to make a good patch file. some info: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html, http://inessential.com/?comments=1postid=2727, I am sure there are others 5c. CakePHP conventions http://manual.cakephp.org/appendix/conventions 5d. The Bakery! http://bakery.cakephp.org though I think the search on this could be improved. 5e. Cake Search - http://cakephp.org/search I think this default page could be improved to give an idea of what resources are searched. That is my idea of a getting started FAQ The Old Grumpy Fart -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: how can I make some error pages for different sort of my app errors? A1: create file app/app_error.php with class AppError extends ErrorHandler, implement method (example) AppError::myError($params), create view app/views/errors/myError.thtml and call it from any decendent of Object by $this-cakeError('myError', array('blabla' = 'blah'); A2: AppController::appError($method, $messages) works also (and should be also called by $this-cakeError('myError', array('blabla' = 'blah')) but it's implementation is up to You - means no automatic rendering of some view --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: how can I change 404 error page? A: copy file cake/libs/view/templates/errors/error404.thtml to app/ views/errors/error404.thtml and customize it there --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: where can I put classes I would like to use in multiple applications? A: fill up some of arrays $modelPaths, $controllerPaths, $viewPaths, $behaviorPaths, $componentPaths or $helperPaths in app/config/ bootstrap.php (any of those arrays should contain absolute paths with trailing DS) and cake will look for any of classes in APP directory, then in all additional places from Your arrays and then in cake/libs subdirs. [1:2 only:] If it will find requested class, it will cache it's path in app/tmp/persistent/class.paths.php --~--~-~--~~~---~--~~ 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: New Cake FAQ
Hi Q: I have made the blog tutorial, now how can I build a website ? That kind of question appears sometimes on the list and gets little feedback. Web developers are used to a vocabulary that is different to cake's one. Having made the blog tutorial helps to understand cake but does not show how to get that login box on the top of every page... AD7six's last article could be a good answer to that, but its one approach among dozen possible. So I think the FAQ should contains an introduction to how to think a webapp beyond the blog tutorial, showing where the developer has to respect the framework constraint's, where there more freedom, how to link cake's concepts to traditional web development vocabulary. Olivier nate wrote: Hey Y'all, We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here: https://trac.cakephp.org/ticket/1576 --~--~-~--~~~---~--~~ 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: New Cake FAQ
and don't forget set debug to 0 or you will not see it (also probably worth a FAQ On 3/12/07, jitka [EMAIL PROTECTED] wrote: Q: how can I change 404 error page? A: copy file cake/libs/view/templates/errors/error404.thtml to app/ views/errors/error404.thtml and customize it there -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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: New Cake FAQ
I'm not an expert on Cake, so i just used what the people in the bakesale used on cakeforge. So if your way is the better way, then by all means, use yours. On Mar 11, 8:23 pm, Jon Bennett [EMAIL PROTECTED] wrote: Q. How do I create navigation / links based on the entries in a database? In the cats controller: function navigation() { $this-Cats-recursive = 0; $this-set('navdata', $this-Cats-findAll(null, array('name', 'id'))); $this-render(); } In the navigation.thtml: ul ?php foreach($navdata as $nav): ? li?php echo $html-link($nav['Cat']['name'], /Cats/view/. $nav['Cat']['id']); ?/li ?php endforeach; ? /ul In the default.thtml: $this-requestAction('/cats/navigation/'); I'm not 100% sure that would be considered the best approach, for 2 reasons: 1. you're using Cat-findAll() with restricted fields when really you want Cat-generateList(); 2. using requestAction is another page request, which incurs more of a hit to the server as it's effectively the same as visting a page on the site. I think a better approach would behttp://bin.cakephp.org/view/255041463: ?php // AppController var $uses = array('Cat'); function beforeFilter() { $cats = $this-Cat-generateList(); $this-set('navdata', $cats); } // default.thtml ul ?php foreach($navdata as $nav): ? li?php echo $html-link($nav['Cat']['name'], /Cats/view/.$nav['Cat']['id']); ?/li ?php endforeach; ? /ul ? this could be extended to use cachAction as well, helping to demonstrate realworld cake caching. It could also be fleshed out into a Component/Helper combination, to help demonstrate code re-use. hth jon -- jon bennett t: +44 (0) 1225 341 039 w:http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: Why cant I use an action called list? (I remember you guys had this question posted like 50,000 here before) Q: How do I use the gettext functionality? Q: How do i do i18n and L10n? --~--~-~--~~~---~--~~ 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: New Cake FAQ
@haj: You can open doc tickets on https://trac.cakephp.org -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q. How do I create navigation / links based on the entries in a database? In the cats controller: function navigation() { $this-Cats-recursive = 0; $this-set('navdata', $this-Cats-findAll(null, array('name', 'id'))); $this-render(); } In the navigation.thtml: ul ?php foreach($navdata as $nav): ? li?php echo $html-link($nav['Cat']['name'], /Cats/view/. $nav['Cat']['id']); ?/li ?php endforeach; ? /ul In the default.thtml: $this-requestAction('/cats/navigation/'); I'm not 100% sure that would be considered the best approach, for 2 reasons: 1. you're using Cat-findAll() with restricted fields when really you want Cat-generateList(); 2. using requestAction is another page request, which incurs more of a hit to the server as it's effectively the same as visting a page on the site. I think a better approach would be http://bin.cakephp.org/view/255041463 : ?php // AppController var $uses = array('Cat'); function beforeFilter() { $cats = $this-Cat-generateList(); $this-set('navdata', $cats); } // default.thtml ul ?php foreach($navdata as $nav): ? li?php echo $html-link($nav['Cat']['name'], /Cats/view/.$nav['Cat']['id']); ?/li ?php endforeach; ? /ul ? this could be extended to use cachAction as well, helping to demonstrate realworld cake caching. It could also be fleshed out into a Component/Helper combination, to help demonstrate code re-use. hth jon -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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: New Cake FAQ
Don't use $this-ModelName in AppController::beforeFilter() as this method is called also when cake is rendering error page (404 in production and +various other in development) an in this case models aren't attached. function beforeFilter() { loadModel('Cat'); $Cat = new Cat(); $this-set('navdata', $Cat-generateList()); } --~--~-~--~~~---~--~~ 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: New Cake FAQ
Don't use $this-ModelName in AppController::beforeFilter() as this method is called also when cake is rendering error page (404 in production and +various other in development) an in this case models aren't attached. good point. an alternative would be to place this inside beforeRender()... j function beforeFilter() { loadModel('Cat'); $Cat = new Cat(); $this-set('navdata', $Cat-generateList()); } -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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: New Cake FAQ
I'd like this FAQ answered: How can I create a multilanguage site in cake? Thanks On Mar 8, 12:43 am, nate [EMAIL PROTECTED] wrote: Hey Y'all, We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here:https://trac.cakephp.org/ticket/1576 --~--~-~--~~~---~--~~ 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: New Cake FAQ
On Mar 8, 2:43 pm, nate [EMAIL PROTECTED] wrote: Hey Y'all, We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here:https://trac.cakephp.org/ticket/1576 Q. How do I create navigation / links based on the entries in a database? In the cats controller: function navigation() { $this-Cats-recursive = 0; $this-set('navdata', $this-Cats-findAll(null, array('name', 'id'))); $this-render(); } In the navigation.thtml: ul ?php foreach($navdata as $nav): ? li?php echo $html-link($nav['Cat']['name'], /Cats/view/. $nav['Cat']['id']); ?/li ?php endforeach; ? /ul In the default.thtml: $this-requestAction('/cats/navigation/'); --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: How can i remove /[controllername]/action from my URL.? I have my /users/login/ now but i dont like it. Just /login/ should do the trick! A: Create a route to that action. Routes are great and you can find them in ./config/routes.php. Bake already put some lines there. Just add another one that goes like this: Router::connect('/login/', array('controller' = 'users', 'action' = 'login')); -- Q: I just baked my first controller and the views for it but when i go to my page i can't find a link to it. Whats wrong? Did i made a mistake? A: No, you probably didn't. Cake just doesn't link to it automaticly. You have to call the controller name like so: example.com/app/[controllername]/ Please note that the controllername has to be in plural form: users/, ratings/, notes/, posts/ etc. -- Regards, Kjell www.m3nt0r.de --~--~-~--~~~---~--~~ 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: New Cake FAQ
Aside from FAQ, is there please add this to the manual list somewhere? As a new learner, I found this kind of information: http://groups.google.com/group/cake-php/browse_thread/thread/24a49fe06b1d7938/a81afff37d2400ff?lnk=gstq=other+modelrnum=2#a81afff37d2400ff is REALLY valuable and I don't want to scratch my head for hours trying discover such must-be-a-trivial-thing-if-you-knew-already. (BTW, the above is also really a good candidate for FAQ, in my noob opinion) --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: How to do HABTM with Conditions? (could only find this here) Q: How to select only the fields that you need from the database to cause less overhead? Q: How to do a sidewide (global) menu that does not break Cake when there is an error or when page controller is called? (Happens to me when i put a fcuntion in app_controller. Q: How to deal with templates? Sometimes you will want to switch layout's and views and link certain layouts to certain views so you can switch the entire look and feel of the page. How to do this and how to keep it organized? Well these are some of the questions i have been struggeling with with Cake will post here if i can remember anymore :D --~--~-~--~~~---~--~~ 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: New Cake FAQ
2007/3/8, nate [EMAIL PROTECTED]: We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here: https://trac.cakephp.org/ticket/1576 Q: Why does Cake mess up my website in browser XYZ? A: It's not Cake's fault - check your views and layouts to track down any browser incompatibilities in the rendered HTML. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: New Cake FAQ
I've added some to the ticket. Should I also post them here? I'm not sure if you were following the ticket since no one seems to post on it, they are all writing on this thread :) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de nate Enviado el: Jueves, 08 de Marzo de 2007 12:43 a.m. Para: Cake PHP Asunto: New Cake FAQ We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here: https://trac.cakephp.org/ticket/1576 --~--~-~--~~~---~--~~ 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: New Cake FAQ
On Mar 9, 2007, at 9:24 AM, Mariano Iglesias wrote: I've added some to the ticket. Should I also post them here? I'm not sure if you were following the ticket since no one seems to post on it, they are all writing on this thread :) No need to duplicate the information. We'll make sure to gather info from both places. -- John --~--~-~--~~~---~--~~ 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: New Cake FAQ
Nate, we love you, stop complaining :) I think such a FAQ should have a section dedicated to associations ! Here's some : Q. Which model association should I use ? A. CakePHP offers the following associations to link models together : has many, has one, belongs to, has and belongs to many. These have a clear semantic meaning, and you should be able to work out which you need by thinking about what your models represent : A city has many roads. A road belongs to a city. A post belongs to an author. An author has many posts. An organisation has one president. An organisation has and belongs to many individuals. Things worth keeping in mind : * has one is just a special case of has many ; * belongs to is the converse of has many/has one (if A has many B then B belongs to A) Q. I've worked out which associations to use - which table should I put the association field in ? A. The easy way is to look at the has many relationship. Clearly, if A has many B you don't want an infinite number of fields in A -- so the field making the relationship goes in B (A_id). has one is just a special case of has many, and belongs to is the converse of has many - so if D belongs to E, then you put a field E_id in D. I'll add some more when I have some time :) Anselm --~--~-~--~~~---~--~~ 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: New Cake FAQ
Also there should be in how to work with Ajax.. retrieving data, form validation, making it degradable, accesiable.. right now there is nothing about Ajax in the manuel :( --~--~-~--~~~---~--~~ 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: New Cake FAQ
I'm pretty much a noob. I just started on cakePHP 2 days ago. Biggest questions so far... Problem 1: Make a Hello World Application. I found nothing like this, just messed around with things and figuered it out eventually. Problem 2: Make a Hello World Application which connects to the database. The blog tutorial was great, its a good thing I had no idea that it existed until I had figuered it out already. Problem 3: My practice application had the commonly used date fields in it. Any system worth its weight in anything would have some automated date handling. It took me forever to find a way to easily handle dates. I'm still learning. But its not been easy to get started at all. Nothing seems to have gone right. I guess, my biggest problem was locating tutorials on how to get started on basic functions. It seems they exist, I did not know they were there at all though. -Rob --~--~-~--~~~---~--~~ 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: New Cake FAQ
Q: What really is vendors and how do I use it? (benefits explanation in a big picture with simple damn example) Q: What really is components? (manual explanation doesn't clearly explain me what it is and why they exists) Q: How can split big controller files (or other type files) and manage? Q: Some concrete example of why something should go pages rather than layouts Q: Where should I implement a model function which lays on several tables? (asking a good practice) Q: Any target date for 1.2, or is it stable enough to use in relatively serious real world biz app? Those are questions obviously from a new learner but the manual doesn't explain why they're there and for what etc.. --~--~-~--~~~---~--~~ 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: New Cake FAQ
As a foot note on the tutorial, I just ran through it again using a virgin install of http://mamp.info/ (Mac version of lamp) and it worked perfectly from what I could tell. I tried to do a screen cast of it but my copy of Snapz totally crapped out writing the file. Sam D On 3/9/07, haj [EMAIL PROTECTED] wrote: rtconner: I think the blog tutorial pretty much satisfies problem 1 and 2. Then it is a problem of the tutorial not getting big attention for the beginner... On Mar 9, 1:49 pm, rtconner [EMAIL PROTECTED] wrote: I'm pretty much a noob. I just started on cakePHP 2 days ago. Biggest questions so far... Problem 1: Make a Hello World Application. I found nothing like this, just messed around with things and figuered it out eventually. Problem 2: Make a Hello World Application which connects to the database. The blog tutorial was great, its a good thing I had no idea that it existed until I had figuered it out already. Problem 3: My practice application had the commonly used date fields in it. Any system worth its weight in anything would have some automated date handling. It took me forever to find a way to easily handle dates. I'm still learning. But its not been easy to get started at all. Nothing seems to have gone right. I guess, my biggest problem was locating tutorials on how to get started on basic functions. It seems they exist, I did not know they were there at all though. -Rob -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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: New Cake FAQ
1: Make a Hello World Application. Yep and perhaps the title should be We knew you were coming so we baked a cake! then links to documentation, faq's furthermore how about An example app could be a included with the download ready to copy to an app directory and sql to insert with phpmyadmin. this app would display documentation for cakePHP and credits to the core minds of cakePHP. it could be a simple interactive demo which a newbie to cake would be invited and code to edit and where it is and you can delete and reinstall it - great for trial and error On 09/03/07, rtconner [EMAIL PROTECTED] wrote: I'm pretty much a noob. I just started on cakePHP 2 days ago. Biggest questions so far... Problem 1: Make a Hello World Application. I found nothing like this, just messed around with things and figuered it out eventually. Problem 2: Make a Hello World Application which connects to the database. The blog tutorial was great, its a good thing I had no idea that it existed until I had figuered it out already. Problem 3: My practice application had the commonly used date fields in it. Any system worth its weight in anything would have some automated date handling. It took me forever to find a way to easily handle dates. I'm still learning. But its not been easy to get started at all. Nothing seems to have gone right. I guess, my biggest problem was locating tutorials on how to get started on basic functions. It seems they exist, I did not know they were there at all though. -Rob --~--~-~--~~~---~--~~ 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: New Cake FAQ
I think it should also cover cake sessions, how to handle cake session user validation acl etc.. --~--~-~--~~~---~--~~ 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: New Cake FAQ
Also as people are pointed to articles in the bakery they should get a 'faq' tag that can also be linked too (perhaps sorted by rating and views) like http://bakery.cakephp.org/tags/view/faq Sam D On 3/9/07, Mech7 [EMAIL PROTECTED] wrote: I think it should also cover cake sessions, how to handle cake session user validation acl etc.. -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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: New Cake FAQ
Wow, uh, okay, I guess I'll take everyone's enthusastic silence to mean that our documentation is perfect, no one has any questions, and we can just go ahead and close this mailing list, since everybody seems to know everything. That's amazing. However, if anyone (and yes, *you* are included in 'anyone') happens to have a great, good, decent, or, hell, even a crappy, retarded question, please don't hesitate to attach it to the ticket linked above, with or without an answer. On Mar 7, 10:43 pm, nate [EMAIL PROTECTED] wrote: Hey Y'all, We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here:https://trac.cakephp.org/ticket/1576 --~--~-~--~~~---~--~~ 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: New Cake FAQ
ha! Hey Nate I think the problem may be that it is not immediately obvious how to attach to the ticket. See what I mean? What about if we make a page on this group for now?? Ben On Mar 8, 1:00 pm, nate [EMAIL PROTECTED] wrote: Wow, uh, okay, I guess I'll take everyone's enthusastic silence to mean that our documentation is perfect, no one has any questions, and we can just go ahead and close this mailing list, since everybody seems to know everything. That's amazing. However, if anyone (and yes, *you* are included in 'anyone') happens to have a great, good, decent, or, hell, even a crappy, retarded question, please don't hesitate to attach it to the ticket linked above, with or without an answer. On Mar 7, 10:43 pm, nate [EMAIL PROTECTED] wrote: Hey Y'all, We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here:https://trac.cakephp.org/ticket/1576 --~--~-~--~~~---~--~~ 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: New Cake FAQ
Okay, at the risk of making it *too* easy, what if I said you could attach FAQs directly to this discussion thread. But yeah, a page sounds like a good idea. In that case, I'll be checking all three, just to be on the safe side... On Mar 8, 1:06 pm, phirschybar [EMAIL PROTECTED] wrote: ha! Hey Nate I think the problem may be that it is not immediately obvious how to attach to the ticket. See what I mean? What about if we make a page on this group for now?? Ben On Mar 8, 1:00 pm, nate [EMAIL PROTECTED] wrote: Wow, uh, okay, I guess I'll take everyone's enthusastic silence to mean that our documentation is perfect, no one has any questions, and we can just go ahead and close this mailing list, since everybody seems to know everything. That's amazing. However, if anyone (and yes, *you* are included in 'anyone') happens to have a great, good, decent, or, hell, even a crappy, retarded question, please don't hesitate to attach it to the ticket linked above, with or without an answer. On Mar 7, 10:43 pm, nate [EMAIL PROTECTED] wrote: Hey Y'all, We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here:https://trac.cakephp.org/ticket/1576 --~--~-~--~~~---~--~~ 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: New Cake FAQ
At the risk of sounding like a complete nob, isn't this list sort of evolving/devolving/revolving into a FAQ? I think, if we took a 'Top 25 questions asked in 2007' look at this list, it'd be a darn good start to a faq... Just my 0.002 (I'm poor) -Toby --~--~-~--~~~---~--~~ 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: New Cake FAQ
Indeed Toby, very perceptive. That *would* be a good start, and is in fact the half the point of my making this request on the list. The other half of the point was my meager attempt at recruiting some assistance from our vibrant and active community, so that I don't feel like I'm doing absolutely everything myself. So if you or someone else would like to begin the effort of aggregating those most common questions, that would be a great help. On Mar 8, 1:59 pm, Toby Parent [EMAIL PROTECTED] wrote: At the risk of sounding like a complete nob, isn't this list sort of evolving/devolving/revolving into a FAQ? I think, if we took a 'Top 25 questions asked in 2007' look at this list, it'd be a darn good start to a faq... Just my 0.002 (I'm poor) -Toby --~--~-~--~~~---~--~~ 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: New Cake FAQ
Awesome Toby, thank you so much, I really appreciate it. It's freezing in Boston! On Mar 8, 2:13 pm, Toby Parent [EMAIL PROTECTED] wrote: Actually, I'm doing just as I said - combing though posts since I joined the list, checking for keywords and what are, in fact, the most requested items. I'll let you know what I find. Warm regards from a chilly New England! - Toby --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
New Cake FAQ
Hey Y'all, We're putting together an official CakePHP FAQ. So add your recommended frequently asked questions (and answers) here: https://trac.cakephp.org/ticket/1576 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---