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
1
vote
1answer
60 views

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 ...
2
votes
0answers
443 views

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 ...
5
votes
1answer
44k views

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. I'm ...
5
votes
3answers
6k views

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 ...
3
votes
1answer
81 views

Generating the property name of an object

...