This tutorial will help you to set the “settings” link to your plugin in plugin list page “../wp-admin/plugins.php”. I added one function “add_settings_link_to_your_plugins” to set the setting link and i called this function using add_filter() method. // Add settings link to your wordpress plugin page function add_settings_link_to_your_plugins($links) { $settings_link = ‘ Settings’; array_unshift($links, $settings_link); return […]
In this WordPress post, i added the source code to redirect the page after the log in like simple redirect plugin. I would like to give the access of admin panel for “administrator” and “editor” roles of WordPress user. Otherwise i am redirecting the user to home page. You can modify redirect URL after login. […]
Adobe Edge Audio (sound) Adobe Edge Audio With Volume Control Adobe Edge Audio (Sound) Step 1: Create new file in adobe edge. Step 2: Configure the width ,height and other proprties like ID, Color etc.. Step 3: Create button for play and pause the audio. The button name is playbtn.(use rectangle,rounded rectangle to create button). Using […]
This lesson will show you how to create rectangle with using this properties like color, background color, width, height, x axis, y axis and opacity. Draw Rectangle STEP 1: Select the rectangle tool STEP 2: Draw a rectangle in the stage Position And Size STEP 3: First we have to change rectangle size (select the […]
This lesson will show you how to create rectangle animation with using this properties like color, transform rotate, width, height, x axis, y axis and timeline properties. Rectangle Animation STEP 1 : Select the rectangle tool STEP 2 : Draw a rectangle in the stage Position And Size STEP 3 : First we have to […]
To autoload resources, open the application/config/autoload.php file and add the item you want loaded to the autoload array. Important Points Of Autoload Concept Libraries Helper Config Language Model Sample autoload.php configuration Important Points Of Autoload Concept This file specifies which systems should be loaded by default (OR) The files initialized automatically every time the system […]
This config.php file are located under application/config filder or your own custom configuration file. This class is initialized automatically by the system so there is no need to do it manually. To load custom config file, we have to use the following function within the controller. $this->config->load(‘custom_config_file’); Where custom_config_file is the name of your config […]
Database Support Active Group Database Credentials database.php File Database Support The database.php file contains all the information to connect to a database. A Database is required for most web application programming. CodeIgniter supported databases are MySQL (4.1+), MySQLi, MS SQL, Postgres, Oracle, SQLite, and ODBC Active Group In codeigniter database configurtion, we could create number […]
CodeIgniter insert query will execute using following functions. They are $this->db->query() Insert With Query Bindings Standard Insert $this->db->insert_string() $this->db->insert_batch() Escaping Insert Queries Get Inserted ID Get Affected Rows $this->db->query() Program 1: $sql = “insert into tbl_user (name, age, groupname) values (‘codeigniter, 35, ‘Group 1’)”; $this->db->query($sql); Program 2: $data = array( ‘name’ = > $_POST[‘name’] , […]
CodeIgniter insert query will execute using following functions. They are $this->db->query() Insert With Query Bindings Standard Insert $this->db->insert_string() $this->db->insert_batch() Escaping Insert Queries Get Inserted ID Get Affected Rows $this->db->query() Program 1: $sql = “insert into tbl_user (name, age, groupname) values (‘codeigniter, 35, ‘Group 1’)”; $this->db->query($sql); Program 2: $data = array( ‘name’ = > $_POST[‘name’] , […]