A little more info on the admin_delete problem. It's the only admin
function without a corresponding view, but it redirects before a view
is rendered so it shouldn't matter (and it works perfectly on my local
server), but it doesn't work on my shared host:
function admin_delete($id = null)
{
$this->autoRender = false;
if(!$id)
{
$this->redirect(array('action' => 'index'));
}
if($this->Post->del($id))
{
$this->Session->setFlash('Post #'.$id.' deleted.',
$layout =
'flash_success');
$this->redirect(array('action' => 'index'));
}
}
On Feb 11, 8:53 pm, Action <[EMAIL PROTECTED]> wrote:
> So, I finished my app and everything works fine on my local server.
> Now that I've uploaded it to my shared host (1&1), I am having 2
> problems:
>
> 1) Cake is saving "December 31, 1969, 7:00 PM" into my "created" field
> every time instead of the correct date. I've used Cake before on 1&1
> and never had this problem.
>
> 2) I get "Not Found Error: The requested address 'admin_delete' was
> not found on this server." when I call my admin_delete function. All
> of the other admin functions (admin_edit, admin_view, etc.) work
> fine...
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---