Questions tagged [yii2-basic-app]

Yii 2 Basic Project Template is a skeleton Yii 2 application best for rapidly creating small projects.

Yii 2 Basic Project Template is a skeleton Yii 2 application best for rapidly creating small projects.

The template contains the basic features including user login/logout and a contact page. It includes all commonly used configurations that would allow you to focus on adding new features to your application.

GitHub

Official Site

769 questions
-1
votes
1 answer

Yii2: show init text for kartik/select2 on load

I am using KARTIK-Select2-AJAX. All work fine, but I got id of title which I found instead text of title. How I can get title in $_POST after save? after selected item of dropdown I save this in db through other ajax request. I think that the…
Anton
  • 27
  • 4
-1
votes
1 answer

Regarding GridView Filter in yii2

I have a table like this with 5 columns. TableName -Column1 -Column2 -Column3 -Column4 -Column5 I had merged them to display them in grid view as single column. Question How can i make filter condition query to search them based on user…
5.1tat
  • 19
  • 6
-1
votes
1 answer

How to make local running yii2 CRUD application available online?

I have developed Yii2 CRUD application using models, controllers and views. It is used locally on PC. I wanted the users to use it online. For eg. I have www.example.com and I wanted to make this yii2 CRUD application available on this site. What…
Questions
  • 69
  • 1
  • 9
-1
votes
2 answers

How to make textfield search from list view Yii2 without Gii

I want make textfield search in Yii2. Previously I've make crud without Gii on Yii2. How to do that without using Gii? Code index.php in view
CrashBurn
  • 317
  • 1
  • 2
  • 17
-1
votes
1 answer

Filtering yii2 grid using a form with related model

Am using a search model with a search form and i would like to filter a grid view based on the value entered in the form. The form field is of a related table Am actually searching tblpritems and filtering its grid on the column pr_solicitation_id…
Geoff
  • 4,505
  • 14
  • 65
  • 156
-1
votes
1 answer

How to store another table value using their id?

I have two tables with foreign key relation . How to store company name in employee table. in my view i have like this field($model, 'Company_company_id')->dropDownList(ArrayHelper::map( …
Ammu
  • 55
  • 1
  • 12
-1
votes
2 answers

Yii2 - encrypt password for db connection

How to encrypt the database password ? return [ 'class' => 'yii\db\Connection', 'dsn' => 'pgsql:host=localhost;port=5432;dbname=database', 'username' => 'user', 'password' => 'abcPassword', 'charset' => 'utf8', ];
kasmawati
  • 51
  • 2
  • 8
-1
votes
1 answer

Dynamically Show View in yii2 advance

Hello i am working on web application in yii2 advance.i am new in yii2 development. In this project i want to show some part of body refreshed ajax request like in facebook when we click on Home just post area refresh, In my application i want…
-1
votes
1 answer

Listview and custom dataprovider search yii2

I am working on a project in which to display some data i am using a custom query and saving those data in dataProvider. Passing that dataProvider to view file and displaying using a Listview. just like below
Mike Ross
  • 2,753
  • 3
  • 38
  • 81
-1
votes
1 answer

Yii2: Images stored in different tables

Here my controller: $model = new VehicleType(); if ($model->load(Yii::$app->request->post())) { if($model->validate()){ $model->save(); $id = $model->id; $model->file =…
Starite
  • 71
  • 9
-1
votes
3 answers

Yii2: Add 'user_id' when create a post

I have a 'post' table with attribute 'user_id' in it to know who have posted that post. I run into a problem, when create a post, the 'user_id' didn't add into database, which can't be null, so I can't continue from there. So how can I add 'user_id'…
Starite
  • 71
  • 9
-1
votes
1 answer

How can i create a gridview with no data on loading?

So i have an standard gridview created by gii, it is connected to a mysql database that already have some records, it works perfect but i need that when the page is loaded, no data should be displayed on the view, it only should be displayed after a…
hackbro
  • 1
  • 2
-1
votes
1 answer

how to make seo friendly url for dynamic title in yii2

I am working on the multiple post site,there will be multiple post, what i need to do that i need dynamic seo friendly url with the post title, Suppose i have created the one post like "sachin tendulkar" then in yii2 its url should be like…
Nikul
  • 365
  • 7
  • 21
-1
votes
3 answers

How to group models array in yii2

Hi everyone i have a page on which i am displaying data using foreach loop from models. I wants to know that how can i group those classes and display accordingly. For example I have registration forms on the page which has dates and classes. So i…
Mike Ross
  • 2,753
  • 3
  • 38
  • 81
-1
votes
1 answer

Yii2 - Value Not Getiing Updated Through $model->save()

I was updating the user details using save(). And, i followed the guide of yii framework i.e. Yii2-Guide-Save() $customer = Customer::findOne(123); $customer->email = 'james@newexample.com'; $customer->save(); But, it's not updating any value. I'm…
Nana Partykar
  • 10,175
  • 8
  • 43
  • 73