How to get the current file path in Node

Accessing the current file path in Node can be handled in multiple ways. The easiest way to get the current file path in NodeJS is to use the module variable __dirname. An example of how to use this is below: There is also another variable that works very similar called __filename, but __filename will return … Read more

Yii2 pjax tutorial

Pjax is a jQuery plugin that allows quick website navigation by combining ajax and pushState. It works by sending a special request to the server every time a link is clicked or a form is submitted. The server sends back the content that needs to be updated, pjax replaces old content with new content and … Read more