0
I’d like some help converting this function to the Cakephp standard.
She takes the date from datetimepiker
and turns it into milliseconds, but I’ve searched a lot and I can’t find anything similar to the pattern Cakephp.
public function add()
{
$this->db->set("start", $this->_formatDate($this->input->post("from")));
$this->db->set("end", $this->_formatDate($this->input->post("to")));
}
Need cakephp to do? It can’t be a php function or another library and you pass it to
$this->db
the data?– Guilherme Nascimento
I agree with @Guilhermenascimento about the need to be a Cakephp native?
– Danilo Miguel