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
0
votes
1 answer

Yii2 - extension structures

Recently I added a telegram bot extension in my Yii2 application to use it. but actually it is not a Yii2 extension but its a normal php namespace structured files and classes. the name of this telegram extension is irazasyed/telegram-bot-sdk…
0
votes
1 answer

Yii2 Assets: How to use image asset inside CSS file?

I want to create an extension which contains an AssetBundle, which provides a simple static CSS file. In that static CSS file, I want to use an image file, which is also part of the extension. How can I know the image file's URL so I can use it…
mae
  • 14,947
  • 8
  • 32
  • 47
0
votes
1 answer

Setting kartik switch input true and false value

Am using yii2 kartik switch input and I would like to set the switch input true and false value explicitly This is the switch input field($model, 'PR_Status_ID')->widget(SwitchInput::classname(), [])->label(false);; ?> Am…
Geoff
  • 6,277
  • 23
  • 87
  • 197
0
votes
1 answer

Error in adding a custom action in kartik dynagrid

I have a dynagrid and add an extra column in the dynagrid but it doesnt work. I have tried: 'yii\grid\SerialColumn',], 'officename', [ 'class'…
Geoff
  • 6,277
  • 23
  • 87
  • 197
0
votes
2 answers

Composer uninstalls other extensions when i install a plugin

When i run following command: php composer.phar require kop/yii2-scroll-pager "dev-master" While installing it removes other extension. Screenshot: here is the complete Composer.json file: { "name": "yiisoft/yii2-app-advanced", "description": "Yii…
Ilyas karim
  • 4,592
  • 4
  • 33
  • 47
0
votes
1 answer

Input image in Yii2 Dynamic Form always null

I want to make dynamic input that save an image to my website. I use yii2-dynamicform and Kartik input file extension. But, it always save it as null. Thank you for your help Ps : ... is other part of my code that not relevant with this question.…
0
votes
2 answers

How to validate custom file input in yii2

I used kartik's custom file input it is working fine for me except validation,this is reference site from where i taken this extension https://github.com/kartik-v/yii2-widget-fileinput Here is my code, echo '
Nikul
  • 465
  • 1
  • 8
  • 24
0
votes
2 answers

Yii2 Elasticsearch extension - how do I handle type mapping?

I want to be able to store a json object in my ES index. Here's an example of what I'm trying to store (this a serialized model, a request body that is sent to ES): "{"id":218,"name":"Test2","category_id":1,"address":"Pushkin…
nainy
  • 520
  • 1
  • 4
  • 21
0
votes
1 answer

Facebook PHP SDK 5.0 in Yii 2.0 framework (config file)

I was following this tutorial for setting up Facebook PHP SDK 5.0 extension in my Yii 2.0 project. And it works as expected, but every time (in any of the controllers) I need to use some of the features from here this, I need to make an instance…
-1
votes
1 answer

Error in wbranca dynagrid update

Am using wbranca yii2 to create dynamic forms but the update action returns an error of array_combine(): Both parameters should have an equal number of elements This is the form for the update
Geoff
  • 6,277
  • 23
  • 87
  • 197
-3
votes
1 answer

yii2 kartik-v/yii2-widget-fileinput installation

I installed yii2 fileupload extension with: php version 7 and linux (putty) php version 7 and 5 and window (cmd) but failed! message that shown to me on composer is : ./composer.json has been updated Loading composer repositories with package…
Hamed B
  • 183
  • 1
  • 12
1 2 3
4