Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini
Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini
I have a calls which help me display json directly in html table.
There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.
I'm using PayPal's script from
I leverage Kartik's notification widgets.
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
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.
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;
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.
It is convenient to use the same identification attribute, say info
, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.
I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem>
is different from null as it represents an empty string. Also, although some use <elem/>
to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...
This tutorial shows you how to safely remove records between relationships.