Sunday, August 20, 2017

The action you have requested is not allowed in codeignitor

The easiest way to ignore this is to add the url you want to exclude in config.php.

To do this ,

Go To application -> config -> config.php

Now search for the following "csrf_exclude_uris"
Then add your url into the excluded urls list like
$config['csrf_exclude_uris'] = 'admin/updatevpassword','admin/submitnewpassword';




Wednesday, April 26, 2017

Reasons to choose Wordpress to make your website

Reasons to choose Wordpress to make your website

This post is for the people who wants to make their website very quickly using a trending open source framework called Wordpress.
We have number of open source ready made CMS (Content Management System) platforms.
  1. Wordpress
  2. Joomla
  3. Drupal etc



But now a days the world of CMS is looking towards the wordpress. The king of CMS platforms. Earlier days wordpress was used to make a blog. Which means you write a post it will show. You can also create pages for your website but it can be done by the developers who know wordpress development. Availability of the plugins for our need was the main problem.

Thursday, April 20, 2017

Retrieve Duplicate Values from an alphanumeric column in mysql database

To retrieve duplicate values and its count from an alphanumeric column in mysql database
you can use the following query
SELECT `column_name`, COUNT(*) c FROM `table_name` GROUP BY `column_name` HAVING c > 1;

Wednesday, April 19, 2017

How to Create a Custom 404 Page in codeigniter

To Create a Custom 404 Page in CodeIgniter. I will tell you the  quick and easiest way.

1. Find Create a View Page as per your design requirements
2. Next define a route in config/routes.php like this

$route['404_override'] = 'MyCustom404Page';

3. Next Create a New Controller in your application/controller with the name MyCustom404Page

4. Then paste the below code in the newly created controller

<?php

class MyCustom404Page extends CI_Controller  {
    public function __construct() {
        parent::__construct();
    }

    public function index(){
        $this->output->set_status_header('404');

        // Make sure you actually have some view file named 404Page.php
        $this->load->view('404Page'); // Your View Page Name
    }
}

?>

Thats it now the custom 404 page is ready...

How to get Logged In Username in Wordpress or Woocommerce

It is really easy to get the logged-in user’s information in Wordpress or Woocommerce. In this article we will show you how to get the relat...