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
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);
}
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
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
.
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,
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
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
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
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
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
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
11 matches
Mail list logo