
Search In
How add a toggle button for active inactive in Yii CGridView
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'subject-grid',
'dataProvider'=>$model->search(),
'columns'=>array(
'id',
'sub
Here is the code to get your posts pagination. Here you give the number of posts which you want to print in the every page. Chang something according your custom post type or other.
// WP_Query arguments
$paged = (get_query_var('paged')) ?
From here you can be able to display the Bar Graphs through android applications. First of all you need to add achartengine-1.0.0.jar to your project . Which can be easily downloaded from here
Now you can use the following activity, in which i hav
Let us first understand the process of Content Management System.There are basically three different aspects of Content Management Systems:
1.Templating
2.Workflow
3.Versioning
Templating
Templating is the process of Layout Design.Initially template
Whenever you switch from one activity to another using intent and specially in the case of logout and sessions related android applications you will find activity back stack issue.
Here i will show you a small piece of code which will help you to c
Hi,
We can get user's timezone if we have only address or zipcode of that user. First of all we need to get latitude and longitude then using these lat and long we can get timezone. However this is 2 step approach but it is much accurate because 2 d
Here is a short function to get the difference between two timezones in PHP:-
function diff(){
$date1 = "2014-02-27T20:00:00+04:00";
$date2 = "2014-02-28T07:20:00+08:00";
$diff = abs(strtotime($date2) - strtotime($date1));
$year
We seldom need a code to check whether the ISBN of book we are trying to search is a valid ISBN or not. So as to validate a provided ISBN we can use the below code for ISBN10 and ISBN13 respectively :
Code for checking validity of ISBN10 :
function
Run sql queries using SQL tag in JSP
We can run SQL queries directly in JSP page using "sql" tag.
Suppose we have a 'postgres' database, with below credentials:
db:'test'
user: root
password: 123
table name: user which have a column 'userName'.
Be
Black Box Testing :
It is the process of giving the input to the system and checking the output of the system Without worrying about the output process generated by the system. It is also called as Behavior Testing.
In this program is considered as
