Categories wordpress Tutorials

Make API in WordPress.

How to make API in wordpress. 1] Install the following plugins. a] json-api b] json-api-user c] really-simple-ssl (Optional) d] rest-api (Optional) e] restrict-content-pro (Optional) 2] Now go to login on dashboard(Admin panel) then go to Settings >> JSON API >> Activate the “User” controller. 3] Now Past the api folder into root(i.e along with wp-content […]

Read More
Categories Uncategorised

How to manage all control on vimeo video.

<!doctype html> <html> <head> <meta charset=”utf-8″> <title>Vimeo All Controll Management</title> <script src=”http://code.jquery.com/jquery-1.11.3.min.js” type=”text/javascript”></script> <script type=”text/javascript” src=”src/jquery.vimeo.api.js”></script> <link rel=”stylesheet” href=”http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css”> <script type=”text/javascript”> $(document).ready(function($) { $( “#play” ).click(function() { $(“iframe”).vimeo(“play”); }); $( “#pause” ).click(function() { $(“iframe”).vimeo(“pause”); }); $( “#seek-to” ).click(function() { $(“iframe”).vimeo(“seekTo”, 10); }); $( “#set-volume” ).click(function() { $(“iframe”).vimeo(“setVolume”, 0.6); }); $(“iframe”).vimeo(“paused”, function(data){ console.log( “Is paused?”, data […]

Read More
Categories CodeIgniter

Validation in CodeIgniter

Step 1 : Make View in view folder as “myform.php” Step 2 : Make controller in controller folder as “Form.php” Step 3 : Make another view in view folder as formsuccess.php to show after successful validation. myform.php file <html> <head> <title>My Form</title> </head> <body> <?php echo form_open(‘form’); ?> <h5>Username</h5> <input type=”text” name=”username” value=”<?php echo set_value(‘username’); […]

Read More
Categories CodeIgniter

Remove index.php from URL in CodeIgniter

Remove index.php from URL in codeIgniter. Open and make .htaccess file in the root and follow these steps. Step 1 : Make .htaccess file in root location i.e along with application folder Step 2 : Write this code into .htaccess file. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]

Read More
Categories laravel Tutorial

Events in laravel ?

An event is an action or occurrence recognized by a program that may be handled by the program or code. Events provides a simple observer implementation, that allowing you to subscribe and listen for various events/actions that occur in your application. All Event classes are generally stored in the app/Events directory, while their listeners are […]

Read More
Categories Android Studio Tutorial

Show data from mysql database to android fragment

There are two files. 1] java file. 2] fragment file. 1] Java file code package com.example.clinicmgmt; import android.os.AsyncTask; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; public class fetchData extends AsyncTask { public fetchData() { } String data = “”; String dataParsed = […]

Read More
Categories Android Studio Tutorial

Insert data from android app to mysql database

Write this code into fragment file like AddExpensesFragment package com.example.clinicmgmt; import android.os.Bundle; import android.os.StrictMode; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import java.io.BufferedWriter; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; /** * A simple {@link Fragment} subclass. […]

Read More