1. Go to /etc directory.

2. Open bashrc file.

3. Add following parameters at the end of the file:

a. export JAVA_HOME=/usr/java/jdk1.6.0_17/

b. export PATH=$JAVA_HOME/bin:$PATH

c. export CLASSPATH=.:$JAVA_HOME/lib/classes.zip

4. Save the changes.

5. Execute command - # bash

6. Execute # echo $JAVA_HOME to verify JAVA_HOME variable is set properly.

Hello All,

This is something interesting to implement.

Are you bored with .ctp extension in cakephp view file and want to have something interesting which helps to make coding even faster in cake, here is the solution to make .ctp extinsion change to .php

In your controller just add “ var $ext = ‘.php’ ” and make all your template files as .php insted of .ctp.

For example.

class UsersController extends AppController {

var $name = ‘Users’;
var $helpers = array(’Html’, ‘Form’,'Session’,'Javascript’);
var $components = array (’Auth’, ‘Cookie’, ‘RequestHandler’);
var $ext = ‘.php’;

function index() {
// Do something

}

}

Now create a file in app/views/users/index.php

The only use as far as i see of doing this is to make the coding editor friendly as the editor understand .php extension and not .ctp

Hope this tutorial helped you

Thanks and happy Algo blogging