I installed yii2, (installed automatically yiisoft/yii2-bootstrap4), then installed kartik-v/yii2-widget-datepicker then this error comes out: Invali ...
I installed yii2, (installed automatically yiisoft/yii2-bootstrap4), then installed kartik-v/yii2-widget-datepicker then this error comes out: Invali ...
Now I'm working with a big project written on PHP + YII framework. Now there is a task where it is required to import data from a big json-file into t ...
The following SQL query works fine: The saved field is in JSON datatype. However, when I try to use activerecord query for Gridview widget's search ...
There is my controller code and there is my model rule My problem is a every time i pass the value in create_at and create_by that is ...
here is what i did in web.php .htaccess in browser, if the link it will show data in site index but if I dive inside pages, it will show not ...
I have a main model and it has a field rules: I must say right away that I cannot make changes to this model, I can make all changes only in the ne ...
The following code produces the mentioned error. What is the fix for PHP 8.2? PHP Warning – yii\base\ErrorException Trying to access array offset on ...
I use Yii2 and model rules for validation. I have an $id attribute which is an hash value. The validation rule looks like this: This works fine wit ...
$user id name 001 user 1 002 User 2 I'm using YII2, I'm displ ...
I want to use the session in the console for use a function from model. I use in the config from console the session like that: main.php but I get ...
my frontend and backend is running on a nginx server which i have configure for proxy_pass, GET method is working fine but POST method was rejected be ...
I have a code: It executes and I get "All good!" as a result. However, nothing gets actually stored in database. The code has been working for seve ...
I need to use PHPUnit mocking methods like expect($this->once())->returnSelf(); in codecept/yii2 tests. Cannot find any way to call them. The St ...
I am not able to validate value in model. I am newbie in this can anyone suggest what am I doing wrong. I am working on REST API with excel file uploa ...
I have an YII2 application project with connected Codeception 4.1.8 testing framework (during the life of project before me there where made a lot of ...
I have PostgreSQL DB table with 4 columns ex. col1, col2, col3, col4. Col3 is unique indexed. I want to add new column with notNull and default value ...
I have one many to many relationship model. There are two tables user and entity. and I have created one another table user_entity to apply many-to-ma ...
I need to combine the sql2 into the first sql.How can i combine the second array into first array ?I'm trying to make a second query because i cant jo ...
I’ve set up testing for my app. The test suite runs fine locally, while it fails when executed via Gitlab CI. Locally, whether I run: they all wor ...
i want to retain data after submit if the data failed to validate. i use return render file input but this is doesn't work because the data still disa ...