Configuring multiple databases adapters in zf2 is pretty easy. In this post i will show you how to configure and connect to different databases in zf2 application. Adapter Abstract Service factory(Zend\Db\Adapter\AdapterAbstractServiceFactory) […]
Baisc Twitter Bootstrap 3 Template
This is a basic Twitter Bootstrap 3 template that I use most of the time for Twitter Bootstrap 3 based projects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 101 Template</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <h1>Hello, world!</h1> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> </body> </html> |
WordPress remove specific categories posts from the Loop
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<?php query_posts('cat=-1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h3></h3> <p><?php the_time('F jS, Y') ?></p> <?php the_content(); ?> <?php endwhile; ?> |
How to get the post thumbnail URL in WordPress
In this tutorial, i will show you how to get the post thumbnail URL in WordPress.Generally we use the_post_thumbnail(); function to display post thumbnail. But unfortunately there is no direct function in WordPress to […]
WordPress Remove Script & Stylesheet Versions
In this post i will show you how to remove the version parameter from scripts and stylesheets enqueued by WordPress’s wp_enqueue_script() and wp_enqueue_style() functions. you can paste(put) this code in the function.php […]
How to JOIN Tables in Codeigniter
I am gonna use CodeIgniter’s active record class to generate Join Queries in this tutorial. Because by using AR class we can write complex joins very easily and a major benefit to using the Active Record features […]
Insert multiple rows with CodeIgniter
In this post, I will show you how to insert multiple rows in CodeIgniter by using CI’s active records library. CI active record has a function insert_batch().By using this function we can insert multiple rows with […]
PHP Page Redirect
In this tutorial, i would like to show you how to redirect in PHP.We use header() function in PHP to redirect to new location.The header function sends raw header data to the client web browser and in this case sends a […]
Codeigniter Image Watermark
You can easily watermark images in CodeIgniter by using CI’s image manipulation class. In CI Watermarking is only available using the GD/GD2 library. CI’s image manipulation library allows us to do image watermark […]
How to Use Composer With Codeigniter
Composer: Composer is an application-level dependency manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. It was developed by Nils […]