Re: RewriteEngine not allowed here - 500 Internal Server Error

2009-04-08 Thread Rhett Waldock
If you're using Apache2, try adding "AllowOptions all" in addtion to "AllowOverride All" to your conf file. -RW On Mar 31, 11:30 pm, djXternal wrote: > /htdocs/cake/.htaccess: RewriteEngine not allowed here > > this is resulting in a 500 Internal Server error, I have checked for > the existence

RE: Different Validations on 1 Table (Model) Based on the Action

2007-03-06 Thread Rhett Waldock
You could also do the reverse: if (!$this->User->validates()) { $this->Session->setFlash('Please enter a valid username and password') $this->redirect(array('action'=>'login'), null, true); }

RE: Different Validations on 1 Table (Model) Based on the Action

2007-03-06 Thread Rhett Waldock
In that case, instead of unsetting each field you don't want validated, just set validation to a new, abridged array of rules. Something like: $this->User->validate = array( 'username' => VALID_NOT_EMPTY, 'password' =&g

RE: Setting up a self-referential many-to-many relationship

2007-03-06 Thread Rhett Waldock
ships to always be mutual... I would recommend just adding two records to the mapping table for each instance. The somewhat redundant insertion and deletions would still probably reduce complexity overall. rhett waldock clearsite new media -Original Message- From: cake-php@googlegroups.com

RE: Different Validations on 1 Table (Model) Based on the Action

2007-03-06 Thread Rhett Waldock
. However a more abstract action like a login, which presumably does a select operation and compares the fields wouldn't be likely to use save(). rhett waldock clearsite new media -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cecplex Sent: Tuesday,

RE: setFlash()

2007-03-06 Thread Rhett Waldock
g like this: check('Message.flash')) $session->flash(); ?> Hope this helps. rhett waldock clearsite new media -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christopher E. Franklin, Sr. Sent: Tuesday, March 06, 2007 4:29 P

RE: setFlash()

2007-03-06 Thread Rhett Waldock
Hi Eric, Try $this->Session->setFlash. rhett waldock clearsite new media -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ericc59 Sent: Tuesday, March 06, 2007 4:08 PM To: Cake PHP Subject: setFlash() I am getting an error with setFlas

Directory Separators / Best Practice?

2007-02-21 Thread Rhett Waldock
Hello Everyone, Another thread here made me want to raise a question of best practices when defining directory paths - it really applies both in Cake and in general. I notice that the Cake convention when defining paths is to create a concatenated string for the path using the "DS" constant for

RE: Extracting Anchor string from URL

2007-02-21 Thread Rhett Waldock
parse_url() would work well for this IF you could pass a full URL including the anchor to it, but the HTTP request sent to the server does not include the anchor. Javascripts in the view would have access to the location URL including the anchor... so you could send that information to the serv

RE: Extracting Anchor string from URL

2007-02-21 Thread Rhett Waldock
I think you would have to use JavaScript to extract an anchor value and send the information to Cake through AJAX. I could be mistaken but as far as I know, the anchor portion of a request URL is not even passed to the server. Rhett -Original Message- From: cake-php@googlegroups.com [mail

RE: file upload

2007-02-21 Thread Rhett Waldock
Hi Ritesh, Try placing: Options -Indexes In your .htaccess file. That should disable directory listings. Rhett -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bingo Sent: Wednesday, February 21, 2007 7:41 PM To: Cake PHP Subject: Re: file uploa