Codeigniter Architecture

Codeigniter is one of the PHP framework. CodeIgniter was created with the following objectives, these are copied from codeigniters user guide: Dynamic Instantiation. In CodeIgniter, components are loaded and routines executed only when requested, rather than globally. No assumptions are made by the system regarding what may be needed beyond the minimal core resources, so […]

Continue Reading

Jquery Ajax get() and post()

Using jquery ajax get() and post() method we can send HTTP request and get the response without loading the page. get() This method loads data from server. syntax: $(selector).get(url,data,callback); parameter: url – specifies the URL to which the request is sent. data – object send to server along with the request.Optional field. callback – function […]

Continue Reading

PHP with MYSQL database connection

  PHP provides mysqlI_connect() function to open a database connection. Step 1: Creating connection $con = mysqli_connect(server,user,password,database); Step2: Check the connection if(mysqli_errno($con)){ die(‘Connection Error’); }else{ echo “Connection Established” ; } Step3: Close the connection. my Example :-   <html>   <head>    <title>PHP mysql Database Connection</title>   </head>   <body>   <h1>PHP mysql Database Connection</h1 […]

Continue Reading

How to Remove index.php in Codigniter

Removing index.php in codeigniter is quite simple Step 1: Go to your CodeIgniter Project folder and create .htaccess  file. Step 2:  Write below code in .htaccess file 1 2 3 4 5 6  <IfModule mod_rewrite.c>  RewriteEngine On  RewriteCond %{REQUEST_FILENAME} !–f RewriteCond %{REQUEST_FILENAME} !-d  RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>    

Continue Reading

How to Create a Simple WordPress Theme from Scratch – Part 2

Following on from the previous article on How to Create a WordPress Theme from Scratch, we are now going to add that some missing topics like sidebar, comments system and lastly an archive page. This should get you well introduced into WordPress theming, however you could always improve so I’ll also give you a bit of […]

Continue Reading