Tuesday 3 March 2015

How To create Pagination in codeigniter

How To create Pagination in codeigniter



Here I am Create Pagination Example in Codeigniter.

The Model


create model Model/news_model.php

provide a count of all the records in the News table, and retrieve a list of news from the table

The record_count() method returns the number of records and is needed because one of the options in the $config array for the pagination library is $config["total_rows"]

The get_news() method retrieves a list of all the records from the News table.
there are two arguments $start, $limit.
The arguments will be set in the controller.

How to create custom library in CodeIgniter


How to create custom library in CodeIgniter


We are normally referring to the classes that are located in the libraries directory.
You can create your own libraries within your application/libraries directory.

Here
1)You can replace native and extend libraries.
2) You can create new libraries.

Sunday 1 March 2015

How To create shortcode in Wordpress

How To create shortcode in Wordpress

The shortcode API in wordpress allows you to create your own shortcodes by adding functions to your theme functions.php template (this is located at www.example.com/wp-content/themes/yourtheme/).

You can also create shortcode for plugin. it can be use in your wordpress page.

Here simple shortcode Example for Wordpress

Monday 23 February 2015

Magento Add to cart quantity increment/decrement quantity with jQuery

Magento Add to cart quantity increment/decrement with jQuery


Hello

I am just creating simple examples of  jquery Increamen And Decrement.

but it will help you in magento increment and decrement quantity 

Just adding query first after adding below script.


Wednesday 18 February 2015

how to create scroll in google spreadsheet

Set the headers in a Google Drive spreadsheet to move on the screen as I scroll down.

how to create scroll in google spreadsheet


it is easy step to create scroll in google spreadsheet

first one select cell after goto view in spread sheet after goto the freeze row then select 
(How many you want to row freeze) you can also freeze the columns(How many you want to
 columns freeze)

Friday 13 February 2015

How to Replace ‘Enter Title Here’ Text in WordPress


How to Replace ‘Enter Title Here’ Text in WordPress 



If you want to text of wordpress post placeholder "Enter Title here"

please check below code.


Thursday 12 February 2015

Adding a logo uploader to your WordPress theme with the Theme Customizer



Adding a logo uploader to your WordPress theme with the Theme Customizer

Here Simple code of adding logo in wordpress theme 

i am write this code.

some refrence site for it more detail 

2)http://themefoundation.com/wordpress-theme-customizer/

Monday 19 January 2015

increment decrement in php

Hello

increment decrement in php

there 4 types

1)Pre-increment:-

++$my_information  means it can be Increments $my_information by one, then returns $my_information.

2)Post-increment

$my_information++ means it can be Returns $my_information, then increments $my_information by one.

Change products per page for individual categories in magento

Hello 
Change products per page for individual categories in magento


 all your default values are set in "Products per Page on Grid Allowed Values" in Admin > system config > Catalog > Catalog > Frontend

Layout handle for product grid and list view in magento

 Layout handles for product grid and list view in MagentoHello

Using the handles: catalog_category_default, catalog_category_layered and catalogsearch_result_index you should be able to change the template of the products listed.