{"action":"created","issue":{"url":"https://api.github.com/repos/bizley/yii2-content-tools/issues/3","repository_url":"https://api.github.com/repos/bizley/yii2-content-tools","labels_url":"https://api.github.com/repos/bizley/yii2-content-tools/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/bizley/yii2-content-tools/issues/3/comments","events_url":"https://api.github.com/repos/bizley/yii2-content-tools/issues/3/events","html_url":"https://github.com/bizley/yii2-content-tools/issues/3","id":184488742,"number":3,"title":"saveEngine","user":{"login":"gomonkey","id":1906546,"avatar_url":"https://avatars.githubusercontent.com/u/1906546?v=3","gravatar_id":"","url":"https://api.github.com/users/gomonkey","html_url":"https://github.com/gomonkey","followers_url":"https://api.github.com/users/gomonkey/followers","following_url":"https://api.github.com/users/gomonkey/following{/other_user}","gists_url":"https://api.github.com/users/gomonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/gomonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gomonkey/subscriptions","organizations_url":"https://api.github.com/users/gomonkey/orgs","repos_url":"https://api.github.com/users/gomonkey/repos","events_url":"https://api.github.com/users/gomonkey/events{/privacy}","received_events_url":"https://api.github.com/users/gomonkey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bizley/yii2-content-tools/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-21T13:45:41Z","updated_at":"2016-10-21T15:33:37Z","closed_at":"2016-10-21T15:33:37Z","body":"Hello, in my SiteController I put the new save path but is not working\r\n\r\n```php \r\n/**\r\n     * @inheritdoc\r\n     */\r\n    public function actions()\r\n    {\r\n        return [\r\n            'error' => [\r\n                'class' => 'yii\\web\\ErrorAction',\r\n            ],\r\n\t\t\t'content-tools-image-upload' => \\bizley\\contenttools\\actions\\UploadAction::className(),\r\n\t\t\t'content-tools-image-insert' => \\bizley\\contenttools\\actions\\InsertAction::className(),\r\n\t\t\t'content-tools-image-rotate' => \\bizley\\contenttools\\actions\\RotateAction::className(),\r\n\t\t\t'saveEngine' => [\r\n\t\t\t\t'save' => '/site/savecontent',\r\n\t\t\t],\r\n        ];\r\n    }`\r\nit is correct ?"},"comment":{"url":"https://api.github.com/repos/bizley/yii2-content-tools/issues/comments/255409706","html_url":"https://github.com/bizley/yii2-content-tools/issues/3#issuecomment-255409706","issue_url":"https://api.github.com/repos/bizley/yii2-content-tools/issues/3","id":255409706,"user":{"login":"bizley","id":8577314,"avatar_url":"https://avatars.githubusercontent.com/u/8577314?v=3","gravatar_id":"","url":"https://api.github.com/users/bizley","html_url":"https://github.com/bizley","followers_url":"https://api.github.com/users/bizley/followers","following_url":"https://api.github.com/users/bizley/following{/other_user}","gists_url":"https://api.github.com/users/bizley/gists{/gist_id}","starred_url":"https://api.github.com/users/bizley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizley/subscriptions","organizations_url":"https://api.github.com/users/bizley/orgs","repos_url":"https://api.github.com/users/bizley/repos","events_url":"https://api.github.com/users/bizley/events{/privacy}","received_events_url":"https://api.github.com/users/bizley/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T15:33:37Z","updated_at":"2016-10-21T15:33:37Z","body":"`saveEngine` option should go into the widget configuration so if you want to change the path do it like that:\r\n\r\n    <?php \\bizley\\contenttools\\ContentTools::begin([\r\n        'saveEngine' => ['save' => '/site/savecontent'],\r\n    ]); ?>\r\n    ...\r\n    <?php \\bizley\\contenttools\\ContentTools::end(); ?>\r\n\r\nWith that configuration widget sends data to the method `actionSavecontent()` of the `SiteController` (instead of default `actionSaveContent()`).\r\n\r\nRemember that this saving action is not prepared by the widget (like `upload`, `insert` and `rotate`) and you have to do it by yourself."}}
{"actor":{"display_login":"bizley"}}