Blog

Yii2.0 Features

You can stay focused on the tasks specific to your business requirements, and let Yii provide an implementation strategy for all of the following:Active Record Supporting Relational MVC (Model View Controller) RBAC RESTful API Validators Security Helper Session Sessions storage in database AJAX-enabled widgets Cookie Caching CSRF Tokens for security DAO Error Handling Gii i18n support Multi-tier caching support Namespaces, Traits features available NoSQL databases support like mongoDB Pure OOP-based framework Query builders skinning and theming URL Manager

Read more...

Installing Yii2.0

We can install Yii in two ways, using Composer or downloading an archive file. The former is the preferred way as it allows you to install new extensions or update Yii by running a single command.Step 1 Install via Composer(one time only) The installer will download composer for you and set up your PATH environment variable so you can simply call composer from any directory.Download and run Composer-Setup.exe – it will install the latest composer version whenever it is executed.and run following command php composer [...]

Read more...

Yii2 Request Lifecycle

The following diagram describe how an application handles a request and response. You are also requested to scroll down to read the step..A user makes a request to the entry script web/index.php. The entry script loads the application configuration and creates an application instance to handle the request. The application resolves the requested route with the help of the request application component. The application creates a controller instance to handle the request. The controller creates an action instance and [...]

Read more...

Yii2 with Netbeans

NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and web applications, as well as HTML5 applications with HTML, JavaScript, and CSS. The IDE also provides a great set of tools for PHP  developers. It is free and open source and has a large community of users and developers around the world.      Download Now       must have JDK download           

Read more...
phptutorial

Simple Pagination with php-mysql

Simple pagination code for PHP developers. Step 1 :Create database name “pagination” in mysql using phpMyadmin.-- -- Table structure for table `exclusive_news` --CREATE TABLE `exclusive_news` ( `id` int(2) NOT NULL, `post_id` int(6) DEFAULT NULL, `date` varchar(25) CHARACTER SET latin1 NOT NULL, `title` longtext CHARACTER SET utf8 COLLATE utf8_general_mysql500_ci NOT NULL, `content` longtext NOT NULL, `media` varchar(500) CHARACTER SET latin1 NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16; orStep 2 :import the sql file from db folder of project to database [...]

Read more...

How to call webservice from kotlin in android

Step 1:create new application on Android Studio 3.0 Create GUI  textView, button and progress bar Add some external library create kotlin data class define your webservice url in MainActivity.kt add internet uses permission your mainfest.xml fileMainActivity.kt package com.iotwebplanet.learn.myapplication1import android.os.Bundle import android.support.design.widget.FloatingActionButton import android.support.design.widget.Snackbar import android.support.v7.app.AppCompatActivity import android.support.v7.widget.Toolbar import android.util.Base64 import android.view.Menu import android.view.MenuItem import android.view.View import android.widget.Button import android.widget.TextView import java.net.HttpURLConnection import java.net.URL import android.os.StrictMode import android.widget.ProgressBar import com.beust.klaxon.* import com.github.salomonbrys.kotson.fromJson import com.google.gson.Gsonclass MainActivity : AppCompatActivity() {public fun parse(name: String):Unit { val cls = Parser::class.java [...]

Read more...

How to Transfer Data between Android Activity using Kotlin

Here is i am describing how to transfer variable or value from one  Activity to Another Activity in Android Application.I am using Android Studio 3.0.I hope my code will help you. You can use this code in button event or any other place where it is required.Set Data in Activity val myvalue="I am from Main Activity" val myActivity = Intent(applicationContext, Another_activity::class.java) //name of activity to launch myActivity.putExtra("value",myvalue) // value will save of your myvalue variable used for another activity [...]

Read more...

Good bye findViewById() use Kotlin Android Extensions

Hi Developers as we always juggle with findViewById() in Android activity class . Some time we forget to typecast xml into Kotlin or java . So good news for Kotlin android developer. Kotlin Android Extensions Kotlin Android Extensions are another Kotlin plugin that is included in the regular one, and that will allow to recover/find views from Fragments, Activities,   and Views in an effective  way.see how easy it is ….Step 1. Add Kotlin Android Extensions in Gradle (Project) apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' //this the main plugin And [...]

Read more...