function updateCategory1() { $id = get_post_value('id'); $category1 = new Category(); $category1Date = $category1->getcategory1UpdateDate($id); if ($category1Date) { $this->assign('category1Date', $category1Date); } }