Questions tagged [yii]

Yii is a high-performance, MVC architecture based, open source PHP framework best for developing Web 2.0 applications.

Filter by
Sorted by
Tagged with
3 votes
2 answers

Archiving / Moving Data from one database server to another database server

I am working on an SMS marketing project based on Yii2 Framework (PHP 7.3 & MariaDb (innodb engine)) where we have to move the logs from different tables to the archive db, which is total a ...
Muhammad Omer Aslam's user avatar
1 vote
1 answer

Generate meta tags for paging on views, refactoring needed for 'if else'

I know this is a long code and hard to read but when i started working on this it was just a few if-s, and as time passed i added more and more and came to this. Tried refactoring it by my self and ...
Hajrudin Hajrulahović's user avatar
2 votes
0 answers

PHP code to connect to Facebook API

I was given a tech test for a prospective job a small game that uses Facebook API to connect a user then to guess the image. The feedback from the employer was good but they said they had to modify ...
James Kirkby's user avatar
5 votes
1 answer

Building a "LIKE" query in Yii2

This code makes an SQL query. The last andWhere() method adds a LIKE condition with one percentage sign at the right side of the ...
Turako's user avatar
  • 151
5 votes
3 answers

Comparison of PHP/Yii controllers

I was recently asked to write a Question-and-Answer feature for my company's product pages using Yii 1. It was my first Yii project, and it was a little rough around the edges (Code A). However, when ...
Jack's user avatar
  • 51
3 votes
1 answer

Generating the property name of an object

tareq's user avatar
  • 131