Razorpay is the only payments solution in India that allows businesses to accept,
process and disburse payments with its product suite.
It gives you access to all payment modes including credit card, debit card, netbanking,
UPI and popular wallets including JioMoney, Mobikwik, Airtel Money, FreeCharge, Ola Money and PayZapp.
Now we will try to integrate Razorpay in Yii2 application.
Date: December 28, 2021, 12:58 pm Author: Akram Hossain
In this blog post, i will try to explain how to integrate ccavenue payment gateway in Yii2.
ccavenue is one of India's leading digital payments and e-commerce solutions provider.
They provide extensive suite of web services to extend digital payment solutions. Before getting started with implementation
you need to clone or download my github repository https://github.com/akramrana/yii2-ccav
Smart app banner is an important element which is used to motivate user to download mobile application instead of using the website. The usage of a smart banner is only to promote app.To implement smart banner in Yii2 web application we need to do the following
Put smart app bann
Yii2 model scenarios can be used differently. Lets say, we have a model as Customer Which can be used to store customer sign-in inputs, but it can be also used for the customer sign-up purpose. In different scenarios, Yii2 model can be used in multiple business rules and logic.the email attribute may be required during customer sign-up, but not required customer sign-in.
Yii2 model uses the y
Date: December 17, 2015, 10:58 am Author: Akram Hossain
Yii2 web application project, sometimes we need to current controller ID, action ID.
Specially when we need role based access control, we need to check the controller ID as well as action ID.
Using Yii2 view context api we can get these data.
for example if we need controller ID we can use below code
$controller = $this->context->action->controller->id;
if we need action ID only we can use as
Date: July 23, 2015, 5:07 pm Author: Akram Hossain
Today we will discuss how to implement pagination to any Yii2 web application.
The pagination represents information relevant to pagination of data items fetch from any data sources.
When we need data to be rendered in multiple pages,this can be used to display information such as total item count, page size, current page.
Pagination implementation has two steps.
Fetch data from data source
Date: July 22, 2015, 6:09 pm Author: Akram Hossain
Yii2 active record has powerful built-in feature to join database table. In this post we will learn some of the useful features
join using query builder
Example of joinWith():
$model = Users::find() ->joinWith('posts', false, 'INNER JOIN') ->all();
Example of innerJoinWith():
Date: July 20, 2015, 3:51 pm Author: Akram Hossain
In this article we will learn how to use Pjax for Yii2 grid view sorting and pagination.
Pjax is a jquery plugin which progressively enhances website page loads and behave more like single-page web application.
We need to these steps to enable Pjax in yii2 web page
Import yii\widgets\Pjax class
Begin Pjax widget using Pjax::begin()
Code block which needs to be rendered using Pjax
Date: July 20, 2015, 3:45 pm Author: Akram Hossain
In this blog post i will discuss about Yii2's pretty URLs.
Yii2 pretty URLs relies on mod_rewrite module on apache or httpd server.
Without Yii2 pretty URLs if you click on any link for example About Us menu,
the URL will be something like http://localhost/hello/web/index.php?r=site/about.
I'd like to change that to http://localhost/hello/web/site/about.
The config subdirectory includes env
Date: July 16, 2015, 12:09 am Author: Akram Hossain