I am a Java programmer, but knows PHP too. Now I am attempting to enhance my abilities in PHP and Wordpress. I'd produced a wordpress theme lately and today I am attempting to register my sidebar to really make it widget ready. I am following some lessons(signing up sidebar), however it appears that it's not obvious in my experience the way I actually do it during my situation. I simply have no idea what's going to I placed on the next stuff.

<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => '',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
?>

here is my current sidebar

<div id="primary-sidebar">      
        <a href="?"><img src="<?php bloginfo('template_directory'); ?>/images/logo.jpg" alt="Company Logo" class="logo" /></a>
            <ul class="menu">       
                <li><a href="?" <?php echo ($page == NULL) ? 'class="active"': '';?>>Home</a></li>
                <li><a href="?page=philosophy" <?php echo ($page == 'philosophy') ? 'class="active"': '';?>>Philosophy</a></li>
                <li><a href="?page=investments" <?php echo ($page == 'investments') ? 'class="active"': '';?>>Investments</a></li>
                <li>
                    <a href="?page=about" <?php echo ($page == 'about') ? '': '';?>>About Us</a>
                    <ul>
                        <li><a href="?page=team" <?php echo ($page == 'team') ? 'class="active"': '';?>>Our Team</a></li>
                        <li><a href="?page=company" <?php echo ($page == 'company') ? '': '';?>>Company Profile</a></li>
                    </ul>
                </li>           
            <li><a href="?page=contact" <?php echo ($page == 'contact') ? 'class="active"': '';?>>Contact Us</a></li>
            </ul> <!-- END OF MENU -->
    </div> <!-- END OF PRIMARY SIDEBAR -->

Are you able to assist me to with this particular, mates? Any help and comments/suggestions is going to be greatly appreciated. Many thanks.

Produce a functions.php file (should you haven't done this already) and add this code:

<?php

function register_sidebar() {
  register_sidebar(array(
    'name' => '',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '',
    'after_title' => '',
  ));
}

add_action('init', 'register_sidebar');

?>
function register_sidebar() {
  register_sidebar(array(
    'name' => '',      //this is the widgets name , it shows up in admin
     'id' => '',      // this is widget ID, must have to actually call it
     'description'   => '', // under name in admin, not needed
    'before_widget' => '', // HTML placed before ( usually a div)
    'after_widget' => '', // HTML placed after ( usually a div)
    'before_title' => '', // HTML placed before title( usually a div)
    'after_title' => '',  // HTML placed before after ( usually a div)
  ));
}

add_action('init', 'register_sidebar');

To call the sidebar you are writing, <?php dynamic_sidebar( 'id' ); ?>

I believe the only real needed parameter may be the ID and also the title whenever you register it.