タイトルの通り、Fatal error: Call to a member function format() on a non-object というエラーが表示されてしまいます。
`
Class MessagesController extends AppController{
public $helpers = array('Time');
public function messages(){
$datetime = $this->Message->getDatetime($userid);
$time = $this->Userinfo->getTimeZone($userid);
$finaltime = $this->Time->format('Y-m-d H:i:s', $dateTime, NULL, $time);
exit();
}
}
`
どこが間違っているのでしょうか。分かる方は、どなたか教えていただけますか。宜しくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。