1
0

Added Visible & Enabled to BlogPost

This commit is contained in:
2014-09-13 17:37:47 +02:00
parent 5c940826de
commit ff5ecbc144
10 changed files with 69 additions and 13 deletions

View File

@@ -42,11 +42,14 @@ class APIController extends MSController
public function actionUpdate2($Name)
{
if (! isset($_GET['Name'])) {
throw new CHttpException(404,'Invalid Request - [Name] missing');
}
$data = ProgramUpdates::model()->findByAttributes(['Name' => $Name]);
if (! isset($_GET['Name'])) {
if (is_null($data)) {
throw new CHttpException(404,'Invalid Request - [Name] not found');
return;
}
$this->render('update', ['data' => $data]);