Questions tagged [yii2-extension]

We use the term "extension" to refer to Yii2-specific software packages. For general purpose software packages that can be used without Yii, we will refer to them using the term "package" or "library".

Extensions are redistributable software packages specifically designed to be used in Yii applications and provide ready-to-use features.

For example, the yiisoft/yii2-debug extension adds a handy debug toolbar at the bottom of every page in your application to help you more easily grasp how the pages are generated. You can use extensions to accelerate your development process. You can also package your code as extensions to share with other people your great work.

Official Site

56 questions
4
votes
3 answers

yii2: set another site for link with Html::a

i have a link (href) to another site but i have problem this is my code : return Html::a('Create More', ["https://face.com/"], ['class' => 'btn btn-primary', 'role' => 'modal-remote']); why my link is a new action? i want change…
Saltern
  • 1,305
  • 2
  • 16
  • 42
3
votes
1 answer

Error InputWidget.php line 75 properties must be specified

I want to make input field with tag using Input Tags Widget. But I got this error : Either 'name', or 'model' and 'attribute' properties must be specified. in /var/www/html/paramoor/vendor/yiisoft/yii2/widgets/InputWidget.php at line 75: /** *…
adn
  • 430
  • 2
  • 7
  • 20
3
votes
1 answer

Yii2 Render view from extension

I have Yii2 application which has a regular controller with regular action and its view trying to render a view that's part of an extension. My view is in the 'views/controllerName' folder and I'm trying to reach a view which is in…
mmvsbg
  • 3,570
  • 17
  • 52
  • 73
2
votes
1 answer

Yii2 Testing: How to run module tests along with main app test?

I want to run my main application Codeception tests and have it automatically go through the tests provided by 3rd party modules (assuming they come with their own Codeception configurations) installed through composer (which means they are living…
mae
  • 14,947
  • 8
  • 32
  • 47
2
votes
2 answers

Yii2-user Dektrium - how to hash password

i want to do hash password and check that with database ( password_hash ) How can I do it???? $username = $auth['username']; my password is $password = $auth['password']; i want hash that : $find =…
Saltern
  • 1,305
  • 2
  • 16
  • 42
2
votes
2 answers

yii2: working with yii2-sitemap-module

i used https://github.com/himiklab/yii2-sitemap-module in my yii2 project this is my console : return [ 'id' => 'basic-console', 'language' => 'fa-IR', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log', 'gii'], …
Saltern
  • 1,305
  • 2
  • 16
  • 42
2
votes
3 answers

Calling unknown method: yii2mod\cms\controllers\CmsController::setInstance()

I don't understand why this error occur. get error on call a cms http://localhost/yii-cms/web/cms Calling unknown method: yii2mod\cms\controllers\CmsController::setInstance() i am try to use of yii2-cms cmsController
shivani parmar
  • 314
  • 2
  • 17
2
votes
2 answers

Yii2 custom widget assets not registering

I'm trying to develop a custom widget, but I've run into a wall. I have some third-party JS/CSS files I need to include, but for whatever reason, Yii2 will not register them. I've followed everything in the Yii2 documentation but seem to get…
1
vote
0 answers

Yii2 queue extension: multiple queue channels/tubes for a single queue server

I’d like to use Yii2-queue extension. In my project I use Beanstalk and I have more than 100 different queue channels/tubes. What is the correct way to use more than one queue channel/tube for a single queue server? It does not seem right to me to…
1
vote
2 answers

Composer is not working for installing yii2 extensions

I want to install some yii2 extension and want to use them in yii2 framework. While using Composer I am getting Error. Also I've tried manually adding extension and adding it's content in composer.json still nothing works. Some some of command…
1
vote
1 answer

Yii2: How to create module commands without controller name?

There was a similar question asking "how to create console command in a module?" which contains a good answer on how to add commands to your Yii2 modules. However, the resulting commands must be in the following format: ./yii…
mae
  • 14,947
  • 8
  • 32
  • 47
1
vote
0 answers

Get Composer to install local package with path type of repository

I have a yii2 project with a local extension: home/ packages/ yii2-unipv-gii/ < my extension composer.json (1) projects/ my-project/ < my project composer.json (2) I would like to install the extension in the Yii2…
ilbassa
  • 11
  • 1
1
vote
1 answer

jQuery File Upload resize uploaded image

Hi guys i'm using this plugin for file upload 2amigos/yii2-file-upload-widget based on BlueImp jQuery File Upload plugin. Like in the guide i configured all right and all actions work well but i have a question. Is there an option for resize an…
Alberto Favaro
  • 1,824
  • 3
  • 21
  • 46
1
vote
1 answer

Yii2 Noam Image manager save outside web folder

I use noam image manager for my yii2 app https://github.com/noam148/yii2-image-manager and in the components , they told me to put this 'components' => [ 'imagemanager' => [ 'class' =>…
KawishBit
  • 650
  • 1
  • 8
  • 18
1
vote
0 answers

PendalF89/yii2-filemanager upload error. (Call to a member function saveAs() on null)

getting Call to a member function saveAs() on null error from ajax request while uploading image via filemanager. Config: ... 'modules' => [ 'site' => [ 'class' => 'app\modules\site\Module', ], 'user' => [ 'class' =>…
1
2 3 4