Questions tagged as 'yii'

1
answer

how to get the id of a row in CgridView

Good evening I am trying to capture the id of a row from a CgridView with a pop-up window, and place it in a text box from where it is being called but it brings me value undefined in yiiframework I hope you can help me, I leave you the u...
asked by 11.07.2017 / 04:37
2
answers

Problems encountered in YII2

First of all, I talk about my stage. I am using the SAP RFC library in YII2 where I am importing an SAP ERP table into my PHP program. The problem is that when printing a variable that contains accents is not printing them correctly, it puts s...
asked by 07.04.2016 / 16:33
0
answers

Save log with a php button

Good morning I have a php button like this. echo CHtml::button(Yii::t('site', 'Help (F2)'), array('id' => 'run_example')); that calls a function js: <script> $("#run_example").click(function(){ Sideshow.start({ listAll:true });})...
asked by 11.10.2018 / 19:02
2
answers

Show only certain data in a yii2 grid?

Edito (08/22/2018): The problem is already solved, I add the corrected code and it works so that it can be used as a guide by those who need it, thanks to the user Sr1871 who was the one who gave the answer. Well I know that maybe my query ma...
asked by 14.08.2018 / 19:56
0
answers

Menu that does not take me ajax

I have a problem with a dependent menu made with the YII framework, what I need is that when I enter a value in a dropdown and change another two dropdown, but it only takes me a few. this is my controller: public function actionAjaxListado...
asked by 04.04.2018 / 20:20
0
answers

yii problems with my dependent menu

I have problems to make a menu dependent, the problem I have is that it only takes the data from one menu and the other takes all the values by default. This is the function of my controller: public function actionAjaxResultados(){...
asked by 02.04.2018 / 14:24
0
answers

yii dependent menu

I have problems to make a menu dependent, the problem I have is that it only takes the data from one menu and the other takes all the values by default. This is the function of my controller public function actionAjaxResultados(){...
asked by 26.03.2018 / 21:03
1
answer

error in yii 1 with js files

download a system that they use in the company which works well in the production server but when you download it to local all js files mark this error Uncaught SyntaxError: Invalid or unexpected token I have reviewed the url and it is ok...
asked by 31.01.2018 / 22:05
1
answer

change database before starting session

good afternoon the truth I hope you help me and thank you very much for any comments in the main of yii the database is configured. but I would like to select which Database I want to enter without needing to go to main o...
asked by 01.10.2016 / 20:05
1
answer

Sort records in admin view [closed]

I need the records that show listings in the CGridView of the admin view to be sorted alphabetically (ascending or descending) in any of the fields. Could you help me?     
asked by 15.12.2015 / 21:55