1
0

Changed {{core.ignorecase}} to false

// git config --unset-all core.ignorecase false
This commit is contained in:
2014-07-30 20:10:00 +02:00
parent a287b1b1a5
commit c4692fee0a
17 changed files with 966 additions and 3 deletions

View File

@@ -0,0 +1,59 @@
<?php
class APIController extends MSController
{
public $layout = false;
/**
* @return array action filters
*/
public function filters()
{
return array(
'accessControl',
);
}
/**
* Specifies the access control rules.
* This method is used by the 'accessControl' filter.
* @return array access control rules
*/
public function accessRules()
{
return array(
array('allow',
'users'=>array('*'),
),
);
}
public function actionUpdate()
{
if (! isset($_GET['Name'])) {
throw new CHttpException(404,'Invalid Request - [Name] missing');
return;
}
$Name = $_GET['Name'];
$this->actionUpdate2($Name);
}
public function actionUpdate2($Name)
{
$data = ProgramUpdates::model()->findByAttributes(['Name' => $Name]);
if (! isset($_GET['Name'])) {
throw new CHttpException(404,'Invalid Request - [Name] not found');
return;
}
$this->render('update', ['data' => $data]);
}
public function actionTest()
{
$this->render('test', []);
}
}