doc typos

fixes #2094
This commit is contained in:
Carsten Brandt
2014-01-21 15:22:06 +01:00
parent 4d54408419
commit 13f0bd6656
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ use yii\captcha\Captcha;
/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var app\models\ContactForm $model
* @var frontend\models\ContactForm $model
*/
$this->title = 'Contact';
$this->params['breadcrumbs'][] = $this->title;

View File

@ -118,7 +118,7 @@ in cache and we should regenerate it:
public function getCachedData()
{
$key = /* generate unique key here */;
$value = Yii::$app->getCache()->get($key);
$value = Yii::$app->cache->get($key);
if ($value === false) {
$value = /* regenerate value because it is not found in cache and then save it in cache for later use */;
Yii::$app->cache->set($key, $value);