Skip to main content

Questions tagged [yii]

Use for questions about any version of Yii, an open-source MVC framework for writing web 2.0 applications in PHP5+

yii
0 votes
0 answers
22 views

Yii's URL manager doesnt process the request

The DeliveryController exists, actionCalculate inside it too. Yii or something else solves every request to '/' which is /setting/index. What else might be affecting this URL management behavior? ...
sepia__plot's user avatar
1 vote
2 answers
43 views

Creating default object from empty value in YII2

Code that causes problem foreach ($items as $itemData) { $item = new PurchaseItem(); $item->internal_product_id = (int)$itemData['internal_product_id']; $item->quantity = (float)$...
Raihan Uddin's user avatar
1 vote
0 answers
40 views

How to configure yiisoft/yii-swagger package?

How Can I configure routing that package yiisoft/swagger is using? I installed all necessary packages, but still can't use routes like Route::... Documentation of yiisoft/router https://github.com/...
Mateusz_Procner's user avatar
0 votes
1 answer
26 views

A list and a detail view

Could you, please, tell me how to do this: https:///categories/ - a list of categories. https:///categories/?id=1 - details about each category. I've done: class CategoriesController extends ...
Trts's user avatar
  • 1,059
0 votes
0 answers
12 views

Yii2 UnknowPropertyException

I'm writing a PHP code that puts ingredients and recipes on a website, but when i try to use the URL for the form that adds an ingredient, it throws UnknowPropertyException claiming that there is no ...
Arthur Bastos's user avatar
1 vote
2 answers
63 views

How to conditionally require a field in Yii2 SettingsForm model based on another field value?

I'm using the SettingsForm model from Dektrium in my Yii web app for user profile settings. In this model, there's a requirement to input the current password (current_password) whenever a user wants ...
Abdelilah Dahdahi's user avatar
0 votes
1 answer
43 views

Yii search function update

I created a simple Database with a few rows : . I created this page using the Gii CRUD: I would like that when I search on the Value column for example "10" it shows me all the rows with ...
sproud's user avatar
  • 13
0 votes
1 answer
113 views

HeadersAlreadySentException: Headers already sent in Error in Yii2 framework

I encounter an issue where my Yii2 project are giving below error on hosting. Running fine on local. Fatal error: Uncaught yii\web\HeadersAlreadySentException: Headers already sent in/home8/nakkadka/...
yai's user avatar
  • 80
0 votes
1 answer
59 views

Sending Email using Outlook MailServer in Yii

I am trying to send emails using outlook mail server in my yii website. I have used the below configuration : 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath'...
Pawan lakhera's user avatar
1 vote
0 answers
13 views

Placholder for TbExtendedGridView search input

I'm using TbExtendedGridView within the Yii framework with Bootstrap extension to display data in a tabular format. I have a search field within this interface, but I'd like to add a placeholder to ...
Martin Gaidos's user avatar
1 vote
1 answer
59 views

ERROR with this combination : mPDF on Yii 1.1.29 + php 7.4

Hi I’m trying to migrate my yii app to Php 7.4, In the process I found that mPDF need to be upgraded. So I get into “protected” folder, and run “composer intall mpdf/mpdf”, this create a composer.json ...
Nicolas400's user avatar
0 votes
0 answers
33 views

How to tell the Yii framework to add a header x-request-id to each request?

I want to basically add a Request ID to my Yii application so that I can track requests that come from other services and figure out errors that are linked across them. I want to add an x-request-id ...
Camilo Urán's user avatar
0 votes
0 answers
58 views

Yii2 authenticate through LDAP

I installed "\stmswitcher\Yii2LdapAuth\LdapAuth" this package in yii2 for authenticate user through ldap. below is the configuration for ldap. 'ldapAuth' => [ 'class' => '\...
Nirali Kavar's user avatar
0 votes
0 answers
51 views

I cannot be able to make two dropdowns on yii2 php website pull interdependent data

I am getting ths error Object of class yii\widgets\ActiveForm could not be converted to string below is the snipet of the controller where the issue might be $campusList = ArrayHelper::map(...
Ezekiel Leo's user avatar
0 votes
0 answers
14 views

Yii not diagnosis route when first same started

Why my yii 1 route not diagnosis when first same started. I have two same route in first characters and yii not diagnosis second route in route array list : first route: array('/shop/order/view', '...
mehrdad199511's user avatar

15 30 50 per page
1
2 3 4 5
1119