Questions tagged [yii-components]

Yii is an open source, object-oriented, component-based MVC PHP web application framework. Yii is pronounced as "Yee" or [ji:] and it's an acronym for "Yes It Is!"

For more information on Yii components, please see the Yii documentation at:

http://www.yiiframework.com/doc/guide/1.1/en/basics.component

434 questions
1
vote
1 answer

Yii 1 particular field sorting issue

I need sorting in admin panel or admin page by particular field in ASC and DESC order. SORT_ORDER field are sort. I try to actionindex() in sorting but not working and also call actionadmin() not working but call to…
1
vote
1 answer

Yii1 access model class using 2nd database connection. Multiple database connection

I've used multiple database connection. main.php 'components'=>array( 'db'=>array( 'connectionString' => 'mysql:host=localhost;dbname=testdrive', 'emulatePrepare' => true, 'username' => 'root', 'password' => '', …
Kailas
  • 3,173
  • 5
  • 42
  • 52
1
vote
1 answer

Resource Owner grant type requiring client_id and client_secret in yii2-oauth2-server

Why the password grant_type must be provided with client credentials (in this implementation)???. The oauth2 resource owner spec just needs { "grant_type" : "password", "username" : "some_user_name", "password" : "some_password" } This…
jona
  • 23
  • 4
1
vote
1 answer

Unable to install any package by composer in YII2

I am trying to install package library by composer in YII2. But after running the command from my command prompt I am getting following error My composer command is composer.phar require kartik-v/yii2-widget-datetimepicker "*" Package…
Akhilesh Jha
  • 51
  • 1
  • 1
  • 5
1
vote
1 answer

What is the correct way to apply the yii2 cache?

As I'm new to the cache mechanism, I gone through the yii2 documentation. As per the documentation, I added the below config in db.php in yii2 basic application. 'yii\db\Connection', 'dsn' =>…
Manikandan S
  • 902
  • 1
  • 8
  • 18
1
vote
1 answer

Yii extenstion for pdf generator uding template

I am looking for PDF generator extension/components for Yii 1.1.16. This extension can be download using composer and can generate pdf from using html template . Plz any one know can provide me link for that ??
user1544195
  • 313
  • 4
  • 11
1
vote
1 answer

Yii2 Image Popup in kartik gridview

I need help in displaying image in Kartik gridview Yii2. Please give me suggestion to show image in popup when we click on it. /* Script to load the image in popup */ 'attribute' => 'image', 'width' => '50px', 'value' => function…
vijay nathji
  • 1,608
  • 13
  • 23
1
vote
2 answers

How to sort the grid view in a modal popup without changing the url in YII2?

I have a gridview inside the modal popup. I tried to sort the grid view columns inside the model popup. i tried with Pjax but it changes the page url. I want to sort gridview in the modal popup without changing the url. Code:
Janani Kumar
  • 371
  • 3
  • 18
1
vote
1 answer

Yii Framework : Fatal Error Controller class not found

I have an existing project. I have configured this project on my personal pc but when i try to configure it on other pc i am getting following error. ( ! ) Fatal error: Class 'Controller' not found in…
1
vote
2 answers

Yii session timed out but some controllers are still accessible. How to send the user to the login page

I am using Yii 1.10 and there is an issue with the session. If a user who is logged in leaves his system for some time Yii detects it and destroys the session, In that case user should not be able to access any controller or any action of a any…
Tauseef
  • 369
  • 3
  • 15
1
vote
1 answer

get controller id in Yii2 bootstrap component

I want to get controller id and its action in my component which is a bootstrap component , but Yii::$app->controller is null when component is run , I think this is due to running before controller runs . How can get controller id in my bootstrap…
Masoud Aghaei
  • 1,113
  • 2
  • 15
  • 27
1
vote
1 answer

yii2: how to get slider range value

i use kartik-v/yii2-slider in my project . with this code i added one slider A range select : echo '$10 ' . Slider::widget([ 'name'=>'rating_3', 'value'=>'250,650', 'sliderColor'=>Slider::TYPE_GREY, …
Saltern
  • 1,305
  • 2
  • 16
  • 42
1
vote
5 answers

Undefined variable: yii2

Getting error when I am trying to create dynamic form in using yii2-dynamicform. at the time of create method it is working fine but at the time of update showing the error. I have two tables one is 1.vendors & 2.vendors_more_categories Relation…
Nayank
  • 101
  • 1
  • 3
  • 14
1
vote
1 answer

Yii2 UUID not mapped with model value

I am using p2made/yii2-uuid: * this extension to generate UUID to get UUID $varUuid = \p2made\helpers\Uuid\UuidHelpers::uuid(); mapping uuid to model---> $model->expenses = $varUuid; if i echo $model->expenses it shows uuid but if i print…
user5094904
1
vote
0 answers

Connecting Frontend to backend when login

i have a code in Yii2 advanced template, i want to make a link when i log in from frontend then connecting in backend and when i logout from backend it back to frontend,how can i make that? and this is my comon/config/main.php file