Quote escaping patch for $javascript->object()

2006-09-03 Thread Markus Bertheau
Hi all, find attached a tiny patch to Javascript::object() for quoting string values. I ended up with ["He said: "Nevermind." and turned away."] The patch makes that ["He said: \"Nevermind.\" and turned away."] Thanks Markus -- Markus Bertheau <[EMAIL PROTECTED]> --~--~-~--~~-

MySQL Error Messages

2006-09-03 Thread John Zimmerman
I posted this a couple of days ago, but it was late and I am not sure that anyone saw it.I am curious if the following is possible.I am enforcing a field in my MySQL table to be unique in my schema. When submitting my form to insert a new row into my table, if that particular field already exists i

Re: AJAX Submit in Document with Multiple Forms?

2006-09-03 Thread Grant Cox
Depends what you mean by multiple forms. It isn't valid HTML to have embedded forms within other forms, and IE doesn't support this (but Firefox handles it ok). I've been caught by that before with AJAX, if an area inside a greater form is updated and now includes a form itself, this is not vali

Re: association model

2006-09-03 Thread DJ Spark
do two hasMany relationships to that table, and make a model for it i've done that way to make a 'Vote' model , where I have a user_id and a movie_id , and the value for the vote also. phpnut said something about cake having this in a future release (adding different fields to a join table) s

Re: Model::read() : fetch the first level with conditional argument

2006-09-03 Thread Mikee Freedom
hey Ian, I think so yes. I'm still getting my head around the proper use of the bind / unbind methods myself but that could be a use for it i'm sure. cheers, freedom On 03/09/06, ianh <[EMAIL PROTECTED]> wrote: > > > If we use this hard-coded conditions in the model but want to override > it on

Re: Re: newbie: Obfuscating a CakePhp project

2006-09-03 Thread Samuel DeVore
On 9/3/06, Chris Lamb <[EMAIL PROTECTED]> wrote: > > On Sun, 3 Sep 2006 14:01:18 -0400, Chris Hartjes wrote: > <..snipped a whole load of common sense..> > > > On a related note, never ask the 'obfustication' question in #php. I've > seen other people do it, and the outcome is not pretty. > Unles

Re: newbie: Obfuscating a CakePhp project

2006-09-03 Thread Chris Lamb
On Sun, 3 Sep 2006 14:01:18 -0400, Chris Hartjes wrote: <..snipped a whole load of common sense..> On a related note, never ask the 'obfustication' question in #php. I've seen other people do it, and the outcome is not pretty. -- Chris Lamb, Cambs, UK WWW: http://chris-l

Re: Re: Problem with $this->redirect()

2006-09-03 Thread Samuel DeVore
Also with some tools that people use to uncompress the cake files to begin with the .htaccess files are not uncompressed or their file permissions are set in such a way that the web server can not read them. Sam D On 9/3/06, nate <[EMAIL PROTECTED]> wrote: > > Either you don't have mod_rewrite

Re: Problem with $this->redirect()

2006-09-03 Thread nate
Either you don't have mod_rewrite enabled, or one of Cake's .htaccess files got misplaced. This can happen if you're on OSX and moving directories around. If you think mod_rewrite is enabled, try doing a fresh install of Cake, otherwise go into /app/config/core.php and uncomment the line that st

Re: newbie: Obfuscating a CakePhp project

2006-09-03 Thread Chris Hartjes
All I was saying was that *I* don't see the point in worrying about that sort of stuff. To use your analogy of the locked house: if I don't think there is anything worth stealing I won't worry if someone breaks in. All the stuff I think is valuable is locked up in the safest place I can think o

Re: Session problem on ie

2006-09-03 Thread Onur HOS
also you could add session_start() function to /app/config/bootstrap.php. Every page including this file. --~--~-~--~~~---~--~~ 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

Problem with $this->redirect()

2006-09-03 Thread kacperix
Hi! When i use function $his->redirect() to redirect for example $this->redirect('/user/login') I am redirecting to: http://exampleserv.com/app/webroot/users/login but I want url like this: http://exampleserv.com/users/login Where is the problem. Please help. Cake ver: 1.1.7.3363 PHP ver: 5.

Re: Session problem on ie

2006-09-03 Thread Onur HOS
Onur HOS wrote: > i tried this. Unfortunately, it didn't work bernardo. Thanks. i will > use standart login structure and redirect to cake :) i hate ie :) > thanks for help my friends. Another solution; in app/config/core.php; define('AUTO_SESSION', true); if this value is false, cake could not

Re: Model methods in AppControlles

2006-09-03 Thread nate
FYI, if you wanted to do it the Cake way, you could rewrite that query in one line, as: $data = $this->Config->find(array("name" => $name), "value"); return $data["value"]; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Session problem on ie

2006-09-03 Thread Onur HOS
i tried this. Unfortunately, it didn't work bernardo. Thanks. i will use standart login structure and redirect to cake :) i hate ie :) thanks for help my friends. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Cake and Index.php

2006-09-03 Thread nate
Have you tried changing the name of index.php? If mod_rewrite and AllowOverride are enabled on your server, you just need to change the one in app/webroot/, otherwise, change the one in the root of the install. --~--~-~--~~~---~--~~ You received this message beca

Re: Session problem on ie

2006-09-03 Thread bernardo
Jac wrote: > hi, sorry for my english. i have a problem about sessions on internet > explorer. When i use $this->Session->write method or standart $_SESSION > assignment in controller, internet explorer cannot save my session > variables ( cannot set cookie ). it works fine on firefox. Otherwise >

Re: Model methods in AppControlles

2006-09-03 Thread kacperix
Hi! Yeah...Mike Freedom was right, this work. Thank you Mikee very much. Bye --~--~-~--~~~---~--~~ 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 unsu

Re: Session problem on ie

2006-09-03 Thread Jac
thanks, but i'm using my own computer (localhost) as web server. my configuration is; ms windows xp, IIS 5.1, php 4.4.2. But problem's source is internet explorer. why?, thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Session problem on ie

2006-09-03 Thread Olivier Percebois-Garve
What is the level of security of your IE ? With high (and maybe medium) level of security in IE on SP2, I heard that IE requires now to provides a P3P policy file. Can anybody confirm/infirm what I am saying ? olivvv Jac wrote: > hi, sorry for my english. i have a problem about sessions on inte

Re: association model

2006-09-03 Thread Dolorian
Dolorian wrote: > Then I make a record for the season : > > $this->Season->save($countries_data) > this is wrong. I mean: $this->Season->save($this->params['form']['Season']) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: association model

2006-09-03 Thread Dolorian
Have tried many different wayes, but with no success. I can't think out how to populate a join table which has more than two fields. In the index controller I 'm using the following: $this->set('langs', $this->Lang->findAll()); In the form: .. input fields for the seasons table ... $html->inp

Re: Session problem on ie

2006-09-03 Thread RosSoft
are you using a subdomain with the character '_' in the name? IE doesn't support cookies in domains like my_domain.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this grou

Re: install cakephp; Rootserver needed?

2006-09-03 Thread Seb-el
Cool, thanks. It was just the Zip file that I put into the html folder. --~--~-~--~~~---~--~~ 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

Cake and Index.php

2006-09-03 Thread josh zeidner
Hello, I need to use Cake in a Hosting environment where I have no access to the httpd.conf file. Currently, index.php is not set as a DirectoryIndex. Is there a way to configure CakePHP to work without depending on this configuration? Thanks, Josh Zeidner --~--~-~--~~--

Re: How to retrieve tree data from the result fo findAllThreaded() query?

2006-09-03 Thread [EMAIL PROTECTED]
If guiListTree() is deprecated, it probably shouldn't be in the manual then? http://manual.cakephp.org/chapter/helpers.Should this be reported as a bug someone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Model::read() : fetch the first level with conditional argument

2006-09-03 Thread ianh
If we use this hard-coded conditions in the model but want to override it on a case-by-case basis (e.g. in an app I'm developing 'delete' means set a boolean field to 1 so things can be undeleted by the admin) is that a use for bind/unbind model? Thanks, Ian Mikee Freedom wrote: > Hey Felipe,

Re: newbie: Obfuscating a CakePhp project

2006-09-03 Thread M
Thank you very much, I will consider trying / buying Source Guardian. M. --~--~-~--~~~---~--~~ 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 unsubscri

Session problem on ie

2006-09-03 Thread Jac
hi, sorry for my english. i have a problem about sessions on internet explorer. When i use $this->Session->write method or standart $_SESSION assignment in controller, internet explorer cannot save my session variables ( cannot set cookie ). it works fine on firefox. Otherwise when i try this thin

Session problem on ie

2006-09-03 Thread Onur HOS
hi, sorry for my english. i have a problem about sessions on internet explorer. When i use $this->Session->write method or standart $_SESSION assignment in controller, internet explorer cannot save my session variables ( cannot set cookie ). it works fine on firefox. Otherwise  when i try this thin