cake-php
[Arriba] [Todas las Listas]

cronjob En cakephp 1.3

To: cake-php@xxxxxxxxxxxxxxxx
Subject: cronjob En cakephp 1.3
From: Chris <chris69m@xxxxxxxxx>
Date: Thu, 20 Jun 2013 23:39:50 -0700 (PDT)
Delivery-date: Fri, 21 Jun 2013 02:40:02 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=7vcDZj1ggIoPJq2v08/sauX/29Rw8PW7Lh1i02Gxfc4=; b=aLUfdGVAQ3pyW9YCCg0QtjmDqdb2g9/l3P4TIPSFsIlScM92nX111skly0WruZpoa1 aX31kEueTF8hgNs9cRyeH44JWzpOPViO35lxUrQNA46x90rnXjT5ckveIQa4jiEv2ipf ddzjYXSUQSqNsaPM8VuJwxSYyskeeT3zCFv2X/T9OeUwTWu3fwUYZBVYJc5bdke3J4bc eFKCeioA4uzk210OqGB0GYXVQFqsaWP8Z6vXfxI9ofa3iH6S6OKkt+KonSd4HLHLvfEw d78ocDFK5If2ZaaA+ooytTYYIlcWGs0IhtlN5SzT7OZrqhTfpei+K5Nx5eUBbrKQDdHh ZaIA==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/cake-php>
List-help: <http://groups.google.com/support/>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
*Hi *guys,... Puede cualquiera ayuda complacer 
estoy intentando correr *cronjob y ejecutar la función actualiza() en 
controlador_de huéspedes.*php Para sacar *outdated *raws de mesa de huéspedes con final 
"de campo". 
Lo corro en *ssh para probar en *server *e.*g. /*usr/Cubo/*php -*f 
/camino/de casa_a/mi_ámbito.*com/*html/*app/Controlador/de huéspedes_de los controladores/actualiza 
así que es el /*usr/cubo/*php -*f 
/camino/de casa_a/mi_ámbito.*com/*html/*app/Controlador/de huéspedes_de los controladores.*php/Actualiza 

pero me da un error .../*html/*app/Controlador/de huéspedes_de los controladores/actualiza 
 Y/OR .../*html/*app/Controlador/de huéspedes_de los controladores.*php/Actualiza no Podría ser 
encontrado

y aquí es mi función en controlador_de huéspedes.*php: 

   La Función actualiza()
$#prn->*layout = *null;
Configura::escribe('depura', 0);

      $hoy_fecha = de fecha('*Y-*m-*d *H:*i:*s');
$huéspedes = $esto->Huésped->encontrar('todo');

*foreach ($huéspedes como $huésped)
#cnj($huésped['Huésped']['final'] <= $hoy_fecha)
$#prn->Huésped->eliminar($huésped['Huésped']['*id']);
}
}
    }

*thanks anticipadamente 
*chris 

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


Hi guys,... can anyone help please 
I'm trying to run cronjob and execute function update() in 
guests_controller.php to remove outdated raws from guests table with field 
"ending". 
I run it in ssh to test on server e.g. /usr/bin/php -f 
/home/path_to/my_domain.com/html/app/controllers/guests_controller/update 
so is the /usr/bin/php -f 
/home/path_to/my_domain.com/html/app/controllers/guests_controller.php/update 

but it gives me an error .../html/app/controllers/guests_controller/update 
 AND/OR .../html/app/controllers/guests_controller.php/update Could not be 
found

and here is my function in guests_controller.php: 

   function update()
    {
$this->layout = null;
Configure::write('debug', 0);

      $today_date = date('Y-m-d H:i:s');
$guests = $this->Guest->find('all');

foreach ($guests as $guest)
{
if($guest['Guest']['ending'] <= $today_date)
{
$this->Guest->delete($guest['Guest']['id']);
}
}
    }

thanks in advance 
chris 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>