Re: Framework Integration Question

2007-06-19 Thread [EMAIL PROTECTED]
That's cool, I'll look at that when 1.2 get's released prime time, when is that incidentally. For now though : ) I need to integrate the current mimemailhtml functionality in, is there an easier way than creating a component for this...? On Jun 19, 11:14 pm, Walker Hamilton <[EMAIL PROTECTED]> wr

Re: Cake is not working correctly on sourceforge.net

2007-06-19 Thread Geoff Ford
Looks to me like rewrites aren't working i can access your hello page via pretty urls http://coaddons.sourceforge.net/cake/index.php/pages/hello On Jun 20, 1:33 pm, "chanh.ong" <[EMAIL PROTECTED]> wrote: > It is odd that I am the only person use sourceforge.net for my cake > development. > > Loo

Re: Wrong fieldset type for MySQL SET datatype. Workaround?

2007-06-19 Thread Dr. Tarique Sani
Please add the patch to http://trac.cakephp.org/ The devs will notice it there and patch it Tarique On 6/16/07, Nick <[EMAIL PROTECTED]> wrote: > > > After checking the dbo files, "set" is indeed missing for the mysql > and mysqli drivers so a simple patch is to add > > if (strpo

Re: is there a separate manual for 1.2

2007-06-19 Thread Jonathan Langevin
chanh, is demapp correct, or did you mean demoapp? just checking for possible typo On 6/19/07, chanh.ong <[EMAIL PROTECTED]> wrote: > > > You will find the console in 1.2 and I learn that you can do this: > > cake bake -app demapp > > very similar to 1.1 whereas php bake.php -app demoapp > > > On

Re: is there a separate manual for 1.2

2007-06-19 Thread chanh.ong
You will find the console in 1.2 and I learn that you can do this: cake bake -app demapp very similar to 1.1 whereas php bake.php -app demoapp On Jun 19, 5:13 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > > because things work very different that 1.0 did and I am confused. How > > do I b

Re: Cake is not working correctly on sourceforge.net

2007-06-19 Thread chanh.ong
It is odd that I am the only person use sourceforge.net for my cake development. Look like I might just bark on the wrong tree here! On Jun 19, 7:02 am, "chanh.ong" <[EMAIL PROTECTED]> wrote: > I tried to set up cake on my sourceforge.net project but having lot of > issues but don't know exactly

Re: My own global function

2007-06-19 Thread chanh.ong
Sound really simple way! Thanks On Jun 19, 4:25 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > Put your global helper functions in app/config/bootstrap.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 8:06 PM, [EMAIL PROTECTED] wrote: > > It seems to me that there are a lot of good arguments on both sides of > the wiki style debate (wikipedia seems to work, but only through shear > number of managers). > > However, the point here is more fundamental to Cake in my opinion.

Re: Commented Version of CakePHP Manual

2007-06-19 Thread [EMAIL PROTECTED]
It seems to me that there are a lot of good arguments on both sides of the wiki style debate (wikipedia seems to work, but only through shear number of managers). However, the point here is more fundamental to Cake in my opinion. It's already been raised that it can be difficult to identify and d

Re: findAll and order by related detail

2007-06-19 Thread Chris
Did you ever get a response to this question, I'm looking for the same thing? On May 21, 7:37 am, szeta <[EMAIL PROTECTED]> wrote: > Hello, > > I don't know how I can achieve this.. > > I want to find all Persons, butorderthem by the 'Due_Date' of the > 'Group' they are assigned to (hasAndBelongs

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi John! As I have stressed few threads ago, I do agree with you, we should not fork or split our efforts on documenting CakePHP. I am just worried about licensing issues, which would - at least in my thoughs - give a fright on independent initiatives; and availability of resources, such comment

Re: is there a separate manual for 1.2

2007-06-19 Thread Felix Geisendörfer
because things work very different that 1.0 did and I am confused. How do I bake with 1.2 CakePHP 1.2 is not officially released yet and there is no official support for it. A new manual is in the works but not released. So if you are new to the kitchen - stay with 1.1. And regardless, in

Re: The State of the Docs Address 2007

2007-06-19 Thread Divagater
Thanks for the update John. I look forward to seeing the 1.2 manual when it is released. I am pretty new to CakePHP and am developing my app on the 1.2.x.x code base. To date there has not been a single problem that I could not overcome by browsing this group, the api, or the Bakery. I encourage

is there a separate manual for 1.2

2007-06-19 Thread Amy1234
because things work very different that 1.0 did and I am confused. How do I bake with 1.2 --~--~-~--~~~---~--~~ 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.

Re: error message new installation 1.2

2007-06-19 Thread Amy1234
thank you, that worked On Jun 19, 6:10 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote: > shorten the string that's there --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Re: My own global function

2007-06-19 Thread Grant Cox
Put your global helper functions in app/config/bootstrap.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

Re: Framework Integration Question

2007-06-19 Thread Walker Hamilton
Found it: http://bakery.cakephp.org/articles/view/brief-overview-of-the-new-emailcomponent --~--~-~--~~~---~--~~ 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@googlegroup

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 3:45 PM, Finster wrote: > > On Jun 19, 3:03 pm, "John David Anderson (_psychic_)" > <[EMAIL PROTECTED]> wrote: >> >> Why would you need to distribute the docs when they're already freely >> available? >> > > Because they are, like the wiki apparently was, outdated. The manual

Re: Vendors.php and javascript folder

2007-06-19 Thread nate
This file is no longer relevant and is there primarily for backwards compatibility. See this post for sharing JS and CSS assets across multiple applications: http://joelmoss.info/switchboard/blog/2142:Whats_new_in_CakePHP_Asset_Sharing All you really have to do is drop the files into vendors/js

Re: Framework Integration Question

2007-06-19 Thread Walker Hamilton
the new 1.2 has an email component built-in... there's a tutorial in the bakery --~--~-~--~~~---~--~~ 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

Re: error message new installation 1.2

2007-06-19 Thread Walker Hamilton
shorten the string that's 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 [EMA

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 3:32 PM, Dérico Filho wrote: > > Hi John! > >> Why would you need to distribute the docs when they're already freely >> available? > > "Free" -> chmod 0444??? Free to read, you mean, I guess. :-) Yes. There's a reason we don't allow everyone to post freely to an official C

error message new installation 1.2

2007-06-19 Thread Amy1234
hello, I have upgrated to 1.2 but i get this error Notice: Please change the value of CAKE_SESSION_STRING in app/config/ core.php to a salt value specific to your application in /Library/ WebServer/Documents/cake/cake/libs/debugger.php on line 373 what should i change it to? thanks for your he

Framework Integration Question

2007-06-19 Thread Jonathan Holloway
Hi all, I've just started out with CakePHP over the last few days and I'm stuck trying to integrate htmlmimemail into the framework. Do I have to create a Component and reference it in app/vendors or is there another way to do this? Can I just reference the htmlmimemail.php class directly. If s

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Finster
On Jun 19, 3:03 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > > Why would you need to distribute the docs when they're already freely > available? > Because they are, like the wiki apparently was, outdated. The manual is great, but there is a LOT of stuff in there that is out

Re: The State of the Docs Address 2007

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 3:31 PM, Jonathan Langevin wrote: > Thanks for the info, it's greatly appreciated :-) > > I'd love to be able to help out, but I dunno that I have anything > to contribute. I'm 2 weeks into Cake (I've tested it before, but > never attempted development until now), and I'm

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi John! > Why would you need to distribute the docs when they're already freely > available? "Free" -> chmod 0444??? Free to read, you mean, I guess. :-) Let's us take a hypotetic project (not so hypothetic, because I am doing one with CakePHP). I make a Project using CakePHP. MIT Licence allo

Re: The State of the Docs Address 2007

2007-06-19 Thread Jonathan Langevin
Thanks for the info, it's greatly appreciated :-) I'd love to be able to help out, but I dunno that I have anything to contribute. I'm 2 weeks into Cake (I've tested it before, but never attempted development until now), and I'm about as lost as most of the other newbies out there, if not more :-)

Re: My own global function

2007-06-19 Thread chanh.ong
I like to have a little worker function that I would like to have available in Cake wherever I need them. Which of these options will my functions be availalbe in all places like model, controller, and view? Thanks On Jun 19, 2:08 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > If it is a set of

The State of the Docs Address 2007

2007-06-19 Thread John David Anderson (_psychic_)
Bakers one and all, I think the recent "Commented Version of CakePHP Manual" is a direct result of me not sharing what's going on with the docs: where we've been, and where we're headed. Hopefully I can clear this up a bit right now. First, the wiki was a festering pit of misinformation an

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
ah, okay, sometimes the emails just don't seem to have posted (@_@;) thanks for the tip, Jonathan! Yeah, I should really be keeping this in some type of SVN or CVS or something someday... andy On Jun 19, 12:44 pm, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote: > both of your responses showed

Vendors.php and javascript folder

2007-06-19 Thread mdcatc
I'm noticing that the vendors.php file refers to ..\..\vendors \javascript\, however the folder doesn't exist or is still named vendors\js\ in the cake templates. Is this intentional if I want to use the vendors.php structure do I need to add a javascript folder to vendors and then add my .js file

Re: My own global function

2007-06-19 Thread Tane Piper
If it is a set of classes, you can put them in your vendors directory, within your application. You can then call them like this: vendor('my_class'); $myClass = new MyClass; If it just a bunch of functions you have, you can create a component with them: http://manual.cakephp.org/chapter/compon

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Tane Piper
I think you'll agree Chris that the CakePHP community has grown a lot recently, maybe there would be more people willing to take it on. There are certainly quite a few regulars on the IRC channel and here in the group. I for one would volunteer some time. On 6/19/07, Chris Hartjes <[EMAIL PROTE

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 1:42 PM, Jonathan Langevin wrote: > I'm not saying the developers aren't capable of providing > documentation. Docs for 1.1 are probably the nicest I've seen > (although since the group convinced me to try 1.2, I've become very > frustrated with 1.2 's lack of docs). my

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Chris Hartjes
On 6/19/07, rtconner <[EMAIL PROTECTED]> wrote: > > My only commnents: "I wish we had a Wiki." > Are you volunteering to maintain it? My impression was that last time CakePHP had a wiki that it was terrible and didn't contribute anything. Maintaining a wiki is a critically important job. -- C

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
I wonder, why Wiki was replaced by Bakery? On Jun 19, 5:52 pm, rtconner <[EMAIL PROTECTED]> wrote: > My only commnents: "I wish we had a Wiki." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

My own global function

2007-06-19 Thread chanh.ong
If I have a set of commonly use functions want to make it available like Cake global functions what is the most acceptable way to tag along my global function and still ease of doing Cake upgrade without needing to add my global function in each time. I don't want to hack basics.php to add my fun

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Tane, I've opened the link... Heed your link is almost exactly what Bakery and Cakeforge nowadays already do. But I understood the point, a outside effort that would meet the project documentation needs. I do not think it's the CakePHP case... CakePHP has active effort on documentation... T

Re: Commented Version of CakePHP Manual

2007-06-19 Thread rtconner
My only commnents: "I wish we had a Wiki." --~--~-~--~~~---~--~~ 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

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Tane Piper
See http://jquery.com/plugins/ This was a team effort from people outside the core team, that has been brought under the official site. It sits on top of a customized Drupal install, and provides an excellent resource for plugins, not just downloading but commenting, examples and scores. I'm wo

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi John, I don't see a matter of diluting the energy among several projects... But people that does not feel comfortable with restrictive licences (or restrictive behaviour of companies that hold their particular licences, which is my case) might want help only the free initiatives. Perhaps it

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Chris, I think the point here is not the ability of Cake Core Team providing documentation or not. You guys are excellent and have been doing a great job. The point is: "Why can't I deal with the documentation on the same terms I do with the software?" Officially the MIT License allows me t

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Anderson, That's why I posted before: > I plan to talk to CakePHP core team in order to offer the tool I made > for commenting to be hosted on manual.cakephp.org... If they refuse > the offer, surely I'll make it available on some sort of mirroring > system... Thus it would be hosted either

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Chris! I just wanted to be polite, not posh. :-) Well, he's the president... I was affraid of being uncivil towards him. :-) Uldérico On Jun 19, 2:52 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 6/19/07, Dérico Filho <[EMAIL PROTECTED]> wrote: > > > > > Hi Jonathan, > > > I am not s

Re: More about Behaviors ?

2007-06-19 Thread Max
Thanks a lot for explanation, Ad and Dan. I guess it will be interesting to work more with them :) Max On Jun 19, 12:00 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jun 19, 6:26 am, Max <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I've been trying to find more about behaviors to start with them.

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
I'm not suggesting multiple efforts, maybe 1 effort that is supported by cake, with no infringement :-) On 6/19/07, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote: > > > On Jun 19, 2007, at 1:24 PM, Jonathan Langevin wrote: > > I agree a central location would be best, but to also avoid

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 1:24 PM, Jonathan Langevin wrote: > I agree a central location would be best, but to also avoid any > legal issues, is why I suggested a 3rd party GPL effort How many third-party efforts would you suggest? :) I still don't see how diluting the effort in many parallel proj

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Jonathan Langevin
both of your responses showed up for me ;-) maybe set your .htaccess to be read only, to avoid an issue like that? that's happened many times in the past for me, i hate it :-) that's why now I keep all my code in SVN, and just do a checkout to the website when it's ready, helps me avoid overwrites

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
I'm not saying the developers aren't capable of providing documentation. Docs for 1.1 are probably the nicest I've seen (although since the group convinced me to try 1.2, I've become very frustrated with 1.2's lack of docs). my comment wasn't intended to put down anyone, my thinking is to keep trad

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Chris Hartjes
On 6/19/07, Jonathan Langevin <[EMAIL PROTECTED]> wrote: > I agree a central location would be best, but to also avoid any legal > issues, is why I suggested a 3rd party GPL effort > So you seem to think that the CakePHP developers themselves (disclaimer: I am one of them) aren't capable of provi

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Sorry, somehow my response to this has been lost. Anyway, earlier this morning, I replied to you guys (or tried to,) that I finally realized what I had messed up in the cake project. I accidentally overwrote one of the main .htaccess files because I didn't realize there was already one in the ma

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Okay, now I know what happened-- I was copying a previously created .htaccess file into the main cake directory. What I didn't know is that there is already a .htaccess file in that folder (as well as the webroot folder, apparently,) and so... I accidentally overwrote the old .htaccess. Stupid

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
I agree a central location would be best, but to also avoid any legal issues, is why I suggested a 3rd party GPL effort On 6/19/07, John David Anderson <[EMAIL PROTECTED]> wrote: > > > > On Jun 19, 2007, at 11:43 AM, Dérico Filho wrote: > > > > > Hi Jonathan, > > > > > > I am not sure... But I thi

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson
On Jun 19, 2007, at 11:43 AM, Dérico Filho wrote: > > Hi Jonathan, > > > I am not sure... But I think the CakePHP Manual and CakePHP logo are > intellectual property of Cake Software Foundation, which is the back- > company of CakePHP. > CakePHP is MIT Licensed, however that's not the case of th

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 11:58 AM, Jonathan Langevin wrote: > Ah, I can understand logo, surprised about the documentation itself > though. > > So maybe there should be a 3rd-party documentation effort, GPL > licensed, so that other sites can host the documentation, as many > do with php.net's d

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Jonathan Langevin
thanks for that catch nate On 6/19/07, Ita <[EMAIL PROTECTED]> wrote: > > > OK - you are right. > It just seems that no one picked up on this "feature". > Nothing to be done then :) > > On Jun 19, 7:42 pm, nate <[EMAIL PROTECTED]> wrote: > > Providing a DOM ID in the create() *and* end() method...

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Jonathan Langevin
Do you have access to your HTTPD error log? On 6/19/07, andy <[EMAIL PROTECTED]> wrote: > > > No, I haven't touched the core Cake files since I set this project up. > > I haven't touched the config files for a while as well... which is why > I don't understand this problem. > > > On Jun 19, 10:59

Re: Cake dependency on mod_rewrite?

2007-06-19 Thread chanh.ong
I found out the $html helper does return the right url but if I want to use image rather then text in the url then it does not work! So I did a little hack and it works for just this! $img=$html->image('edit.gif',array('title'=>'Edit')); $url=$html->link('','/records/edit/' . $record['Record']['

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
No, I haven't touched the core Cake files since I set this project up. I haven't touched the config files for a while as well... which is why I don't understand this problem. On Jun 19, 10:59 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 6/19/07, andy <[EMAIL PROTECTED]> wrote: > > > That

Re: HABTM gives me problems with conditional queries.

2007-06-19 Thread Daniel Dias
Hi Dax. Or else, could you give me an example of how such a dynamic > bindModel() will look like? > Thake a look at this article http://cakebaker.42dh.com/2006/02/22/new-feature-bindmodelunbindmodel/ -- Daniel Dias --~--~-~--~~~---~--~~ You received this mes

Re: Tree behavior - unexpected result

2007-06-19 Thread Jonathan Langevin
Okay, i'll post on the ticket then, though likely my issue is likely due to programmer error on my end. On 6/19/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > On Jun 19, 5:52 pm, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote: > > - > > > > What is puzzling me, is the fact that an

Cake dependency on mod_rewrite?

2007-06-19 Thread chanh.ong
While it is nice that Cake allow to not use .htaccess and mod_rewrite with the change in the core.php define ('BASE_URL', env('SCRIPT_NAME')); But I found out all code the generated by Cake are counting on .htaccess and mod_rewrite to be there otherwise Cake will not work correctly! To s

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Chris Hartjes
On 6/19/07, andy <[EMAIL PROTECTED]> wrote: > That's what I thought, too, and I have checked my httpd.conf and > restarted the web server a few times to see if that would fix the > problem. But Cake still doesn't run like it should. I checked > another PHP/MySQL/Apache-based script program on th

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
Ah, I can understand logo, surprised about the documentation itself though. So maybe there should be a 3rd-party documentation effort, GPL licensed, so that other sites can host the documentation, as many do with php.net's docs On 6/19/07, Dérico Filho <[EMAIL PROTECTED]> wrote: > > > Hi Jonathan

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Yeah, I know that nothing should stop working if nothing has been done to it. So, it might be the localhost webserver that has caused some sort of problem. That's what I thought, too, and I have checked my httpd.conf and restarted the web server a few times to see if that would fix the problem.

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Chris Hartjes
On 6/19/07, Dérico Filho <[EMAIL PROTECTED]> wrote: > > Hi Jonathan, > > > I am not sure... But I think the CakePHP Manual and CakePHP logo are > intellectual property of Cake Software Foundation, which is the back- > company of CakePHP. > CakePHP is MIT Licensed, however that's not the case of th

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Chris Hartjes
On 6/19/07, andy <[EMAIL PROTECTED]> wrote: > > Hi, > > The project I've been working on in Cake has been working for weeks, > even months. Yet when I opened up my laptop this morning and tried to > open up my project, none of the normal links work (links to methods, > etc.)! My webroot folder c

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Jonathan, I am not sure... But I think the CakePHP Manual and CakePHP logo are intellectual property of Cake Software Foundation, which is the back- company of CakePHP. CakePHP is MIT Licensed, however that's not the case of their documentation and logo... But that's OK, mr. Woodworth told m

Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Hi, The project I've been working on in Cake has been working for weeks, even months. Yet when I opened up my laptop this morning and tried to open up my project, none of the normal links work (links to methods, etc.)! My webroot folder cannot seem to be found either, so all of the CSS is missi

Re: HABTM gives me problems with conditional queries.

2007-06-19 Thread daxhuiberts
On Jun 19, 7:20 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Jun 19, 2007, at 11:11 AM, daxhuiberts wrote: > > > > Hello, > > > > I have a HABTM association between 'movies' and 'genres'. All works > > fine 'n stuff. > > Now I want a list of movies by a specific genre, o

Re: Tree behavior - unexpected result

2007-06-19 Thread AD7six
On Jun 19, 5:52 pm, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote: - > > What is puzzling me, is the fact that an entry is made with id = 0. Any > subsequent entries, whether a child entry or not, has no weird behavior. > Only the first child does this. > > Any ideas? Please e

Re: HABTM gives me problems with conditional queries.

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 11:11 AM, daxhuiberts wrote: > > Hello, > > I have a HABTM association between 'movies' and 'genres'. All works > fine 'n stuff. > Now I want a list of movies by a specific genre, on which I do $this- >> Genre->find("name = '".$name."'"). So far so good. > But since there wil

HABTM gives me problems with conditional queries.

2007-06-19 Thread daxhuiberts
Hello, I have a HABTM association between 'movies' and 'genres'. All works fine 'n stuff. Now I want a list of movies by a specific genre, on which I do $this- >Genre->find("name = '".$name."'"). So far so good. But since there will be thousands, possibly a couple tenthousand movies in the databa

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
OK - you are right. It just seems that no one picked up on this "feature". Nothing to be done then :) On Jun 19, 7:42 pm, nate <[EMAIL PROTECTED]> wrote: > Providing a DOM ID in the create() *and* end() method. um. > why > > Can someone please enlighten me as to where that fits into t

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread nate
Providing a DOM ID in the create() *and* end() method. um. why Can someone please enlighten me as to where that fits into the core philosophy of "Don't Repeat Yourself"? FormHelper::create() already allows you to pass an ID in the $options array parameter. On Jun 19, 10:05 am, Ita <

Re: Tree behavior - unexpected result

2007-06-19 Thread Jonathan Langevin
btw, the need for parent_id surprises me, as the nested set model is supposed to function with only requiring lft,rght On 6/19/07, Jonathan Langevin <[EMAIL PROTECTED]> wrote: > > I'm attempting to use the Tree behavior (patched with AD7six's diff that > he posted in trac 2 days ago). > > I've add

Tree behavior - unexpected result

2007-06-19 Thread Jonathan Langevin
I'm attempting to use the Tree behavior (patched with AD7six's diff that he posted in trac 2 days ago). I've added parent_id, lft, rght to my table, modified the Model to enable the Tree behavior. Now, if I create a new item in the table (starting from scratch), it adds with id = 1, parent_id = 0

Re: Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread rtconner
Hey Mark, So I'm pretty sure some of the functions I used are specific to 1.2. But you can try. I'll give you a basic overview of what I did. I made a componant, and inside the componant in the initialize method.. I do this: (all the connection data is stored in a Client Model, that I load with

Re: More about Behaviors ?

2007-06-19 Thread Jonathan Langevin
dan, thanks for this post, it helped me out alot with the Tree behavior (struggled with that code for 2 days, lol) On 6/19/07, danfreak <[EMAIL PROTECTED]> wrote: > > > Hey Max, > > well behaviours are great in terms of code reusability. > They stand to modules as components stand to controllers.

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
How was the intellectual property misused? Not arguing or doubting, just wondering On 6/19/07, Dérico Filho <[EMAIL PROTECTED]> wrote: > > > Hi, everyone! > > I've been contacted by Mr. Woodworth, President for Cake Software > Foundation. > > I seems I misused Cake's Intellectual Property. I play

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Jonathan Langevin
I agree, hopefully your request gets applied :-) On 6/19/07, Ita <[EMAIL PROTECTED]> wrote: > > > I think that giving an id in the create and end is not a bad idea. > I'll file a request... > Thanks > > On Jun 19, 3:59 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > > On 6/19/07, Ita <[EMAIL PROT

Re: cakex html inside controller

2007-06-19 Thread jitka (poLK)
> i want to have only ONE code logic for addUser, thats why i use innerHTML to add the html code within the addUser-div only if its necessary. Do you understand what does this code? link('Add new item', '/phases/formAdd/', array('update' => 'add')); ?> It renders link, which will cause that rende

help with association and table structure for a 3rd data set

2007-06-19 Thread luke BAKING barker
Hi I receive from a 3rd party, a CSV of data with a Unique field "code", which is a varchar of 5 characters or so, e.g. TR34 or XE288 I need to turn this into a table that will work with Cake well, so lets call it "codes" and then I am not sure what to do about setting a primary key? I am think

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi, everyone! I've been contacted by Mr. Woodworth, President for Cake Software Foundation. I seems I misused Cake's Intellectual Property. I play by the rules, and therefore, I had to shutdown the free-to-comment version of the manual. I managed to talk to Mr. Woodworth and we are on talks to

Re: upload behavior

2007-06-19 Thread luke BAKING barker
thanks tane, yeah, I thought this might work when I switched to a lvie deployment, so I tested it on the remote server and it just worked. I think it is to do with move_uploaded_file PHP command. thanks again, luke On Jun 15, 12:10 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > Hmm - Now I get t

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
I think that giving an id in the create and end is not a bad idea. I'll file a request... Thanks On Jun 19, 3:59 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 6/19/07, Ita <[EMAIL PROTECTED]> wrote: > > > - > > Back to 2 forms with he same ID? > > Well, the problem is that t

Cake is not working correctly on sourceforge.net

2007-06-19 Thread chanh.ong
I tried to set up cake on my sourceforge.net project but having lot of issues but don't know exactly what they are until today! I track down the problem that I am having on sf.net but need some cake expert to tell me what to do to get around this I created a static page hello.thtml in pages fold

Re: How process data from input file type in cake php?

2007-06-19 Thread Chris Hartjes
On 6/19/07, wahyu setianto <[EMAIL PROTECTED]> wrote: > I have some problem using cakephp while posting input file type, how get the > filename store to database and data file store to directory? i have not > answer yet :( Do you have debug set to 1 or greater in config/core.php. You might be se

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Chris Hartjes
On 6/19/07, Ita <[EMAIL PROTECTED]> wrote: > - > Back to 2 forms with he same ID? Well, the problem is that the magic methods aren't smart enough to know you are having two forms on the same page pointing to the same controller. What I have done in the past is use a separate cont

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
Iulian - as I wrote a few posts ago: "My Bad. I used $from->submit when I should have used $form->end ok now each form send the right data but still both of them have the same ID. Even if this doesn't cause any problem should they have different ID's just so things will be clearer? " So the miss

Re: Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread Chris Hartjes
On 6/19/07, Mark aka drecaise <[EMAIL PROTECTED]> wrote: > > I'm trying to add a database config and use it after init. It's for an > application that numerous clients will use. Each with it's own > database. During login a master database is queried for a users > corresponding company database an

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
The why is not related to the fact that 2 forms should not have the same ID but I'll clarify. I'm creating a web site. On the top right corner there will be a login box. This login box allows loin via ajax from and always sits the no matter what the website displays. When the user logs in it says

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Iulian Ilea
Are you sure appears in your HTML source? From what are you saying it seems your first form is not closed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-p

RequiresPost method

2007-06-19 Thread Gaurav
Hi, I am new to Cake and to PHP as well. I haev a question about reuiresPost() method which supposedly takes list of actions which can only be triggered by a POST request. The way Cake bakes the code it uses same edit and add methods to do 2 things: 1.) present form to user to add or edit (if f

Re: cakex html inside controller

2007-06-19 Thread pete
thanks for all your hints. as i really like xajax i have already installed Cakex. the reason why i create this html-code inside the controller is, that i have a Navigation with "Add User" which is available on each page. As soon as i click on it, i render the html code inside - i want to have o

How process data from input file type in cake php?

2007-06-19 Thread wahyu setianto
I have some problem using cakephp while posting input file type, how get the filename store to database and data file store to directory? i have not answer yet :( example : I have one table : name table_galleries with field id, title, description, and picture i want to the data file store to web

Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread Mark aka drecaise
I'm trying to add a database config and use it after init. It's for an application that numerous clients will use. Each with it's own database. During login a master database is queried for a users corresponding company database and the application should switch to that database. Is this possible?

Syntax for having a JS Confirm message called via $html->submit('Delete')

2007-06-19 Thread joe
Hi, I notice the $html->link has an optional parameter for Confirmation (the rest of the confirm control passed via htmlAttributesArr): $html->link( $title, $url, $htmlAttributesArr, $confirmMessageBool, $escapeTitleBool, $returnBool); Is there a similar way of doing this with a $html->submit

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Chris Hartjes
On 6/19/07, Ita <[EMAIL PROTECTED]> wrote: > > The problem is that when I have 2 forms in the same page they both get > the same ID. > And when I submit one form via get (in my example) I also get an empty > field from another from. > Perhaps you can clarify this for me: why do you have two form

  1   2   >