September 14, 2012

New iPhone 5 Mobile is Launch



The iPhone 5 comes in either white and silver or black and slate and to buy it outright in Australia costs $799 for the 16 gigabyte model, $899 for the 32 gigabyte model and $999 for the 64 gigabyte model. Apple said customers could pre-order from this Friday and mobile carriers are also taking pre-orders.

Not a shocker either, but the iPhone 5 will support 4G LTE networks. That's in addition to the current support for GPRS, EDGE, EV-DO, and HSPA data networks. LTE has a single chip for voice and data, a single radio chip, and a "dynamic antenna" that will switch connections between different networks automatically. 

September 11, 2012

How To Apply CSS In CodeIgniter


1. Open "config.php" within directory CodeIgniter\system\application\config.
2. Add following code. At last line before '?>'
$config['css'] = 'mystyles.css';
3. Create a file named mystyles.css within root.
4. Enter example code like this:
h1{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:30px;
}
p{
font-family:Georgia, "Times New Roman", Times, serif;
font-size:12px;
}
#menu{
height:50px;
}
.....etc
5. Open model file named "your_filename.php" within CodeIgniter\system\application\models.
6. Add following two lines.
<?php
class Blog extends CI_Controller {
function index()
{
$data['title']="This is my blog";
$data['heading']="Testing of blog page";
$data['base']= $this->config->item('base_url');
$data['css']= $this->config->item('css');

$this->load->view("blog_view",$data);
}
}
?>
7. Then, update "your_viewfile.php" within CodeIgniter\system\application\views.
8. Update <head></head>, like this:
<html>
<head>
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$css"?>">
<title><?php echo $title;?></title>
</head>
<body>
<h1><?php echo $heading;?></h1>
</body>
</html>
Enjoy It.

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...