Codxplore.com

Latest news:

Sahih al-Bukhari (সহীহ বুখারী) is a free Hadith application for android. This application is advertisement free. Download now https://play.google.com/store/apps/details?id=com.akramhossin.bukharisharif

1099
Views
Integrate Razorpay in Yii2

Integrate Razorpay in Yii2

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. Aft
870
Views
Yii2 ccavenue payment gateway integration.

Yii2 ccavenue payment gateway integration.

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
845
Views
Install Smart App Banner Yii2 without jQuery

Install Smart App Banner Yii2 without jQuery

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 Download the javascript library from github using this https://github.com/kudago/smart-app-banner  as .zip format Put smart app bann
2665
Views
Yii2 Scenarios validate only create Action

Yii2 Scenarios validate only create Action

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
2985
Views
 Yii2 - Get Current Action ID in main.php

Yii2 - Get Current Action ID in main.php

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
3147
Views
Yii2 pagination

Yii2 pagination

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
2499
Views
Yii2 joinWith(), innerJoinWith(), join(), leftJoin()

Yii2 joinWith(), innerJoinWith(), join(), leftJoin()

Yii2 active record has powerful built-in feature to join database table. In this post we will learn some of the useful features joinWith() innerJoinWith(), join() leftJoin() join using query builder Example of joinWith(): $model = Users::find()                ->joinWith('posts', false, 'INNER JOIN')                ->all(); Example of innerJoinWith(): $mod
1815
Views
Yii2 GridView sorting and pagination using pajax

Yii2 GridView sorting and pagination using pajax

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 Close Pja
1410
Views
Yii2 Turning on Pretty URLs

Yii2 Turning on Pretty URLs

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

Subscribe Us


Follow Us