Welcome Guest, Not a member yet? Register   Sign In
Eventually CRACKED IT - Menu driven multiple CodeIgniter applications
#4

[eluser]John_Betong[/eluser]
Hi CoolFactor,

I had time on my hands so revised the following to utilise $_SESSION variables as you suggested in your previous post:
 
Code:
<?php
  error_reporting(E_STRICT);
  
  // session_unset(); // reset session regardless and start again later ???
  session_start();
  if (isset($_GET['application']) ) {
    session_start();      
      $_SESSION['_MENU_'] = $_GET['application'];
      header("Location: index.php");  // Redirect browser
      exit;
    }else{
      // echo 'Yes we have no $_GET variable passed at the command line';
      // die;
    }
    
       // optional to eliminate html errors
       if (file_exists('_head.php')) {
         include('_head.php');
       }else{  
        echo '<html><title>My CodeIgiter menu</title></head>';
       }
?>

The above code precedes my LOCALHOST menu system which you can see here ONLINE

I had to change my index.php setting:
Code:
$application_folder = isset($_SESSION['_MENU_']) ? $_SESSION['_MENU_'] : 'ci_jokes';

Cheers,

John_Betong
 
 


Messages In This Thread
Eventually CRACKED IT - Menu driven multiple CodeIgniter applications - by El Forum - 09-27-2007, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB