Re: install cakephp; Rootserver needed?

2006-09-03 Thread nate
By 'root server' I'm assuming you mean 'root access,' and no, you don't need it to install. Ideally, you want to have only your /app/webroot/ directory publicly accessible, but in practical terms it really doesn't matter. You can just drop the entire install folder in your publicly accessible

Re: order in hasOne associations not implemented?

2006-09-03 Thread nate
hasOne associations are implemented via an SQL LEFT JOIN, which means you can use hasOne associated fields in your conditions or ordering automatically in calls to find/findAll. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

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 thing

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 thing

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

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: 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

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: 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

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

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 ...

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 Google

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

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 when

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

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: 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 Groups

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

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:

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

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

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

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: 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:

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. Unless you read

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 a

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

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

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]