Questions tagged [yii2-advanced-app]

Yii 2 Advanced Application Template is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers. The template includes three tiers: front end, back end, and console, each of which is a separate Yii application. The template is designed to work in a team development environment. It supports deploying the application in different environments.

##Resources

2222 questions
0
votes
1 answer

Subjquery outside of Join

code downstairs will perfom query like this SELECT anrede FROM `l_anrede` INNER JOIN `person` ON `l_anrede`.id = `person`.id_anrede But I need a query like this: SELECT anrede FROM `l_anrede` INNER JOIN `person` ON…
tklustig
  • 483
  • 6
  • 24
0
votes
1 answer

SubQuery in ActiveRecord

i have following models in yii2: use frontend\modules\bewerber\models\Bewerber; use common\modules\basis\models\base\Person; use common\modules\lookup\models\LAnrede; How to create following query using methods of ActiveRecord? SELECT anrede FROM…
tklustig
  • 483
  • 6
  • 24
0
votes
2 answers

Activerecord cant update a row

I want update just one column of table I'm getting this error when updating a table rows: Call to a member function load() on null This is my action: public function actionAddNote(){ $id = \Yii::$app->request->post('id'); $model…
moh
  • 433
  • 10
  • 33
0
votes
0 answers

Yii2 checkboxList check checked value

My demo code is given below. My method returns data from database and on that value how i show it checked or not 'User Create', "2" => 'User Update', ]; $check_data =…
Destroyer.0211
  • 113
  • 1
  • 3
  • 13
0
votes
0 answers

YII2 use active record with “join with“, I think these Sql shouldnt excute

Why these sql is execute I think the the "joinWith" finsh all work * this is my Model php $query = Teacher::find()->select([ …
ahan feng
  • 26
  • 1
0
votes
1 answer

Yii2 gridview filter with comparison operators

How to filter gridview results with a column greater than specified value? My gridview have a column amount. When user searches as 1000, i want to filter results as amount greater than 1000. How do i do this? Now my search model is like this. public…
0
votes
3 answers

how to add data from Employee table to user table in YII2 advanced

I am working on my collage project i.e. Employee Management. I have Employee table in sql(crud is also generated from gii). only Admin is having rights to create Employee (there is no Signup). My Problem: when I am creating employee then I am not…
0
votes
2 answers

Yii2: how to use two models in one view?

I have a model called Person.php and a model called Country.php. Then I have the view Persons/create.php I included the model of the countries and I called $modelCountry but is it not working. I got the error: Undefined variable: modelCountry This…
Roby Sottini
  • 2,117
  • 6
  • 48
  • 88
0
votes
1 answer

Checkbox for each item in select2 multiple select

im using select2 multiple select, in this Im getting all items on search, even i have option of selectAll and Unseclect All. But what i want is to have checkbox in front of all items. it is like tags, So that he can check items at once and Done..…
Salman Riyaz
  • 808
  • 2
  • 14
  • 37
0
votes
0 answers

Problems showing views with Yii2 Framework

I'm trying to develope a simple crud with yii2 and I have problems because when I try to show a view I have a 404 Error I have this structure And I'm trying to show the person view so I do this:…
Carl35
  • 73
  • 1
  • 8
0
votes
2 answers

Show plain text in Gridview/DetailView

I use kartik/GridView. In my database, I have following record using widget of \dosamigos\ckeditor\CKEditor in _form.php:

ist gewöhnungsbedürftig aber halt auch kompetent

Any ideas how to outline this record in GridView without…
tklustig
  • 483
  • 6
  • 24
0
votes
1 answer

Updated value in form doesn't show on view

I'm using Yii2 as my framework in PHP develiping, In my ticket.php the "time_end" will automatically get the computer time when a specific data in ticket.php is going to be updated my problem is when it gets updated it doesn't show on view. It says…
noobkoder
  • 87
  • 18
0
votes
1 answer

yii2 autocompelete not work for me

i have table that have developer_id, name, family .etc columns i want to show suggest name in input in view i did something like this but this give me a input whitout any suggestion and autocompelte why? $data = Developers::find() …
moh
  • 433
  • 10
  • 33
0
votes
0 answers

How to get rid of of page parameter in url

I'm creating pretty pagination rules on my site using Pagination and url configs specified here . Everything works fine, but I'm getting duplicate content according to…
Sarkhan
  • 269
  • 1
  • 2
  • 9
0
votes
1 answer

Yii2 Links between Frontend and Backend

how can I switch from frontend to backend using links in yii2 application? Actually, I only can set links between frontend or backend, not from frontend to backend.I suppose, I have to change my config-file(main-local.php/urlManager) So, here it…
tklustig
  • 483
  • 6
  • 24
1 2 3
99
100