Commit 13f0bd66 by Carsten Brandt

doc typos

fixes #2094
parent 4d544084
...@@ -6,7 +6,7 @@ use yii\captcha\Captcha; ...@@ -6,7 +6,7 @@ use yii\captcha\Captcha;
/** /**
* @var yii\web\View $this * @var yii\web\View $this
* @var yii\widgets\ActiveForm $form * @var yii\widgets\ActiveForm $form
* @var app\models\ContactForm $model * @var frontend\models\ContactForm $model
*/ */
$this->title = 'Contact'; $this->title = 'Contact';
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;
......
...@@ -118,7 +118,7 @@ in cache and we should regenerate it: ...@@ -118,7 +118,7 @@ in cache and we should regenerate it:
public function getCachedData() public function getCachedData()
{ {
$key = /* generate unique key here */; $key = /* generate unique key here */;
$value = Yii::$app->getCache()->get($key); $value = Yii::$app->cache->get($key);
if ($value === false) { if ($value === false) {
$value = /* regenerate value because it is not found in cache and then save it in cache for later use */; $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); Yii::$app->cache->set($key, $value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment