I leverage Kartik's notification widgets.
I leverage Kartik's notification widgets.
Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.
This tutorial describes how to write your views for help pages using Markdown syntax to be able to generate PDFs from same source files.
Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.
This is how i do before query on Yii 2.0
We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:
It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.
The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.
How to add additional information to a user when using BUM extension?
To use jui auto complete widget first add
I wrote about this on my blog, but wanted to post it here too.
It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.
namespace app\components;
This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.
A Yii Framework 2 component for using assets in different environments (Local/CDNs)
I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.
Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :
public function scopeUnused( $useAnd = true )
{
$join = " left outer join composed_by j on t.ID = j.ID ";
$condition = ' j.ID Is Null';