Re: database table setup
Yes, it is a join table in Cake terminology: http://manual.cakephp.org/chapter/6; see Section 3 about hasAndBelongsToMany relationships. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: database table setup
This depends on your context and the data involved.Cake does support the "hasAndBelongsToMany" relationship which does use third table to link the other two. You would use this for assigning "tags" or "labels" to pictures, posts, or another object. On 5/27/06, modmans2ndcoming <[EMAIL PROTECTED]> wrote: In cakephp, would it not be better to set up a multiple to multiplerelationship using an intermediate table? How well does cake deal withthat situation? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
database table setup
In cakephp, would it not be better to set up a multiple to multiple relationship using an intermediate table? How well does cake deal with that situation? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem with 1.1.x release
I installed the new cake folder, but now I get the errors pasted below at the top of my page. Probably related, the little debug section with database queries and query times is missing. Notice: Undefined index: fields in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 978 Notice: Undefined index: conditions in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 985 Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 1199 Notice: Undefined index: order in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 986 Notice: Undefined index: fields in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 978 Notice: Undefined index: conditions in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 985 Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 1199 Notice: Undefined index: order in /Library/WebServer/Documents/phplibs/cake/libs/model/datasources/dbo_source.php on line 986 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Multi-Step Form
That sounds interesting.I am redoing what I was writing to comply with Cake concepts now that I have learned more Cake.I too am shooting for something generic and re-usable.I looked at incorporating the pagination class, but at least right now I don't think it suits my process. On 5/27/06, AD7six <[EMAIL PROTECTED]> wrote: Hi John/all,If anyone is still interested: I actually did this a couple of weeksago to provide a search page. I'm currently trying to make my solutionmore generic so that I can share it in a meaningful way. The solution I had, which I didn't realise fitted the PRG model untilreviewing the links above, relies upon a search form which redirects toa results page with the query defined in the url (e.g./Boats/results/Mode/Sale/ManufacturerIn/1/ManufacturerIn/3/TypeIn/8/LengthTotalFrom/10/LengthTotalTo/15/) The juicy bit is generating the search form automatically, convertingthe query to and from a url and displaying the query in words on theresults page. All to keep individual controller code to a minimum. More soon :),AD7six --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
Strategy? That's a pretty weighty word for something so minor, There's nothing in this situation that needs to be documented. If you know how to use PHP, you know what the reserved words are. If you know how to use Cake, you know how to write a route to get around that. @All: just goes to show you that you can't make everybody happy *and* develop good software. If you want to go over to the land of flowers and butterflies where everyone is happy all the time, and all development happens be group consensus, go use the Zend Crapwork. @Kace: You can't always get what you want. No you can't always get what you want. You can't always get what you want. But if you try sometimes, well you might just find, you get what you ned!! Ahhh yeah! And really, that's the point of opinionated software. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: prevent expiration of session info?
How would the Cake database sessions help? Wouldn't there still be a browser component (cookie, URL key) that would go away at the end of the browser session? Otherwise, I'll try what you suggested. The encryption class you supplied looks like just the thing. Do you know how to make sure all actions (i.e. all URLs) use the cookie for the base URL instead of generating new cookies? I was having that problem in Camino, anyway. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: hasAndBelongsToMany Manual error
On 5/27/06, cwsTrummer <[EMAIL PROTECTED]> wrote: > i don't know where to post this. hopefully someone of the documentation > team reads this. i also want to help with the documentation. please > contact me. currently i am writing the yahoo ui helper. Goto http://trac.cakephp.org, register and place a ticket with the Documentation and 1.x.x.x on the appropriate drop-downs. -- < If you know Red Hat you know Red Hat, If you know Slackware you know Linux > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
I completely agree with 100rk. MVC can be a design paradigm that people don't quite grasp right away. There are lots of people who don't understand Rails because of the same reason. But once those people start getting answers on the group/IRC/manual/API/etc and play with cakePHP more, they will begin to understand it as qwoo pointed out (isn't that how everything works?). Kace's question comes from a lack of understanding of how cake works, and his reponse to nate's solution shows he's not willing to learn. It's people that aren't willing to accept the paradigm and won't spend the time to understand how to utilize it that hurts cake... not the developers. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Multi-Step Form
Hi John/all, If anyone is still interested: I actually did this a couple of weeks ago to provide a search page. I'm currently trying to make my solution more generic so that I can share it in a meaningful way. The solution I had, which I didn't realise fitted the PRG model until reviewing the links above, relies upon a search form which redirects to a results page with the query defined in the url (e.g. /Boats/results/Mode/Sale/ManufacturerIn/1/ManufacturerIn/3/TypeIn/8/LengthTotalFrom/10/LengthTotalTo/15/) The juicy bit is generating the search form automatically, converting the query to and from a url and displaying the query in words on the results page. All to keep individual controller code to a minimum. More soon :), AD7six --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
> ...how many people have trouble and then comeback saying... I think it is caused by MVC rules, which not everyone is prepared to follow. There is many people in this fast-living world who try to ommit time with printed manual and/or study foreign code. @Kace: I really don't think 'mailing list is full of people complaining how difficult cake is to understand' ;-) Show me those threads which aren't finished by solution. I think routes could satisfy Your needs. If not, be more detailed, pleace - there is surely possible way (or You're trying to use CakePHP by way it is not supposed to). --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Strange behaviour with Java applet
Just an idea. Maybe you should put your java class file in the Webroot directory of cake? app/webroot/files ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Strange behaviour with Java applet
Hi guys I'm a fairly experience web developer and I am at a dead end here. I have a site that I am putting into Cake from an XHTML Strict prototype. The site uses a Java applet that pre-dates IPIX for doing panoramas, in this case, for the inside of a motor car. The Java applet functions 100% in the XHTML site, but when I Cake-ified that page, it stops working, and even causes Firefox to crash. One clue I have is that the JPEG image used by the applet is sitting in "WEBROOT_DIR/assets/models//360/int.jpg", and since /assets is not a "special" Cake directory, perhaps when the GET request is being put through from the Java applet to the Cake site, Cake is trying to do something to the file before returning it. I have fairly good evidence that this is the case. See the code and experiment below: This is the code: --- --- That code does not work in the Cake site, but does work in a plain HTML site. 1) I created 2 virtualhosts, one called http://site.cake and one called http://site.html (using my HOSTS file to setup the fake domain names). The http://site.html virtualhost simply hosts the plain html site, with no Cake installation. The other virtualhost hosts my Cake site. 2) I changed all paths in the code above to http://site.html/assets/... and the applet worked. 3) I changed all the paths to http://site.cake/assets/... and it refused to work. So... what the heck is going on!? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
hasAndBelongsToMany Manual error
hello i found an incorrect line at manual.cakephp.org at the definition of HABTM the array contains 'foreignKey' => 'tag_id', 'associationForeignKey'=> 'post_id', but it has to be as following: 'foreignKey' => 'post_id', 'associationForeignKey'=> 'tag_id', i don't know where to post this. hopefully someone of the documentation team reads this. i also want to help with the documentation. please contact me. currently i am writing the yahoo ui helper. cu chri --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Quick Fix Release
Thanks to your great work! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: CakePHP 1.1.2.2955 Release
Hi leinchu,Why you can´t use? You are being too vague... please, tell us more about your problem, don´t just say "I can´t get this working..."Marcelo.On 5/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I try to update my cake from 0.10.8.2047_rc5 to 1.1.3.2967,Then I found I can't use $controllername->modelname->findAll,What can I do ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: CAKE_ADMIN and /bare
Actually, bare with admin routes should never have worked, and never has for me. However, with the RequestHander, bare routes are a thing of the past. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
@Kace: Developers have opinions, as you have clearly expressed. PhpNut, Nate and I, along with others regularly discuss our differences of opinion. This is actually what makes Cake work so well. As AD7six pointed out twice, routes is the answer to your question. Count how many people have trouble and then comeback saying "I figured it out" or "wow, this is neat" or as pat recently said "i may be getting a hang of this" and you will find that there are many people enjoying Cake. That said, it sounds to me like you are looking for reasons not to use a framework. Understand that each framework is one of personal tastes. You say any strategy that works sometimes and not sometimes is fundamentally flawed, when in fact this is the purpose of the 80% rule that most frameworks live by. For the other 20%, you could always modify things to your liking. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Error after installing oceancms
Hi Any results? Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
CAKE_ADMIN and /bare
Hi people, With an older version (say, two/three weeks ago) of Cake I was able to make bare requests to admin actions, eg.: /bare/admin/books/index. Now while /bare works fine with "regular" URLs, requesting /bare/ admin/* yelds a missing AdminController error. Was this change in behaviour intentional, and if so, how can I restore the previous? TIA, - fm --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Adding a child record
I've got my associations all setup but want to have an "add" link below the list where the parent key will be setup. Example: viewing a category with the list of titles. Want to click "new title" and the category predefined. How do I construct this url? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
Hi Kaceong, Have you invesigated what you would need to do to use the url "/controller/list" ..? Writing one line in the routes file means that you DON'T need to write action_ in front of every method ( using the suggestion above ). It can quickly become tiresome writing things that you don't need to ;). Cheers, AD7six For info: http://es2.php.net/manual/en/reserved.php#reserved.keywords --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
nate wrote: > The fact that you can't use a few words out of an entire language > (absent a small configuration change) is a minor inconvenience at best, > and hardly reason enough to change the way Dispatcher works. Unbelievable! If that is the attitude of developers on this platform, I won't be pinning much hope on the future of cake. Any strategy that works sometimes and not sometimes is fundamentally flawed. It's not a minor inconvenience, because it creates a situation where the undesirable behaviour need to be explicitly documented. And as far as I can see, no one has bothered to document it. Is that why the mailing list is full of people complaining how difficult cake is to understand??? Kace --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---