Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Jul 13, 2017
1 parent e32192e commit 1633a53
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
==============

4.0.0-alpha5.pre
---------------
* Fixed

4.0.0-alpha4
---------------
* Fixed admin php info url
Expand Down
17 changes: 17 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ FAQ
);
Как можно загрузить файл в хранилище?
-------------------------------------

Скачать с удаленного сервер и загрузить в хранилище

.. code-block:: php
$imageUrl = 'http://test.ru/test.jpg';
$element = \skeeks\cms\models\CmsContentElement::find(10);
$file = \Yii::$app->storage->upload($imageUrl, [
'name' => $element->name
]);
$element->link('image', $file);
Как отметить обязательные поля в формах ``*``
---------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/components/urlRules/UrlRuleTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @date 24.05.2015
*/
namespace skeeks\cms\components\urlRules;
use common\modules\company\models\CmsSite;
use skeeks\cms\models\CmsSite;
use skeeks\cms\models\CmsTree;
use skeeks\cms\models\Tree;
use \yii\base\InvalidConfigException;
Expand Down

0 comments on commit 1633a53

Please sign in to comment.