Yii execute code after method

In order to execute a specific code after a Yii controller method (action) called you can proceed by using the following method: afterAction

You cannot specify the action or not

here’s an example:

with the same principle you can call the method: beforeAction

do not forget however to return true before end of the method

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Node.js mobile detect

Install mobile detect module on your nodejs server (place yourself on the root where your node_modules folder is and type

then on your server node.js code type

https://www.npmjs.com/package/mobile-detect

Facebooktwittergoogle_plusredditpinterestlinkedinmail