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

800 questions
-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,942
  • 5
  • 49
  • 101
-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,556
  • 10
  • 48
  • 77
-1
votes
1 answer

Yii2 full calendar AjaxEvents not working properly

Hi everyone i am using this extension in my project and i am having problem with the ajaxEvents,i want to know what is wrong i am doing here?? Here is my code of view file and controller action
Mike Ross
  • 2,942
  • 5
  • 49
  • 101
-1
votes
1 answer

How to use bower installed widget in yii2

Hi everyone this might be a stupid question but i am not sure how to proceed thats why i am asking the question here. I wants to use bootstrap-calendar in my yii2 project. I installed all the necessary files using the command given on the project…
Mike Ross
  • 2,942
  • 5
  • 49
  • 101
-1
votes
1 answer

Handle Image update in yii2

Hi everyone i am using FileInput kartik widget in yii2 project and uploading and saving works fine but i am having problem while updating the images I can get the images path on the update form and create and array and display in as initialpreview…
Mike Ross
  • 2,942
  • 5
  • 49
  • 101
-1
votes
1 answer

Define rules for multiple user login in yii2

In my project i have 2 users Organiser and User with 2 different tables. I want to define rules for Event table for both users. For example if Organiser is logged in which i can see as Yii::$app->user->isGuest and if User is logged in which i can…
Mike Ross
  • 2,942
  • 5
  • 49
  • 101
-1
votes
1 answer

Why is the button page on my gridview not shown?

i have model from "feedbackmodel" : public function search($params) { $query = Feedback::find(); $dataProvider = new ActiveDataProvider([ 'query' => $query, 'sort'=> ['defaultOrder' => ['TANGGAL'=>SORT_DESC]], …
-1
votes
1 answer

How to set value to phonenumber in register.php from the signup.php in Yii2?

This is my field in signup.php (view file) 'post','id' => 'form-signup','action' => 'http://localhost/basic1/web/index.php?r=site/reg']);?> field($model, 'PhoneNumber') ?> How to set value in…
alvina
  • 1
  • 1
-1
votes
2 answers

Yii2 archive installation symbolic link issue

I am trying to install Yii framework via archive file in Windows 7...after downloading the file I tried extracting it into a folder in my C:\wamp\www\bid location, however, I encounter an error saying this: ! …
user3580218
  • 121
  • 1
  • 13
-2
votes
1 answer

How to make search filters work with formatted dates in Yii2?

$query->andFilterWhere(['like', 'date_of_birth', date('d-m-Y',strtotime($this->date_of_birth))]); It's not working..
-2
votes
1 answer

How to access the attributes of the joined tables in yii2

I have two models(User, ReferralsForm) joined together in my controller. The join works fine but I am having a problem in accessing the attributes in ReferralsForm. Here's the code in my controller: public function actionReferrals() { …
codex
  • 432
  • 2
  • 7
  • 18
-2
votes
1 answer

Yii2 How to hide sub-menu items from other users

I am working on yii2. I have a menu named SIM Management in which there are some sub-menus like shown below. There are 3 Roles added in the system which are SIM Manager with role id 6 Production Manager with role id 7 SIM Tester with role id…
Moeez
  • 494
  • 9
  • 55
  • 147
-2
votes
1 answer

Yii2 ~ How do you setup Mpdf?

after installing Mpdf via composer. and reading the documentation over and over agian, I still don't understand how to use Mpdf... could someone please tell me how this extention is used? maybe with some examples or maybe you have a great video…
Michael Rotteveel
  • 89
  • 1
  • 3
  • 13
-2
votes
1 answer

Json_encode and json_decode not working in yii2

i want to insert value through Json_encode through controller but json_encode() not working in yii2. json_encode();
Priya
  • 1
  • 1
  • 4
-2
votes
1 answer

How to convert below sql query into yii2 code

SELECT student_subjects.student_id,student_subjects.subject_id,student_subjects.amount FROM student_subjects where NOT EXISTS(SELECT subject_id from payment_history where student_subjects.subject_id=payment_history.subject_id)
Dijo
  • 73
  • 2
  • 10
1 2 3
53
54