How to get the current file path in Node

When working with Node, it is often necessary to determine the file path of the current script. There are several ways to achieve this, each with its own advantages and use cases. In this article, we will explore the different methods for getting the current file path in Node. __dirname The __dirname global variable is … 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