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

[eluser]jstine[/eluser]
Thanks for trying to get this to work for me. Unfortunately it's still not working. It's very strange, if I uncomment the code in your new index.php

Code:
print_r($_GET);
    echo "<br />";
    print_r($_SESSION['_MENU_']);die;

I get the all the right values. However using the previous code you gave me below in my root index.php still just returns the equivalent of "$application_folder: application" in all instances and nothing for the $_SESSION (it's as if the $_SESSION doesn't exist)

Code:
if(1) // toggle to 0 to ignore
  {
    echo '<br />$application_folder: ', $application_folder;
    echo '<pre>';
      print_r($_SESSION);
    echo '</pre>';
    die;
  }

It's very strange as the new index.php file in my sub directory returns the right value for $_SESSION['_MENU_'] and if I echo $_SESSION['_MENU_'] in my default application file (main/index function) it returns the correct value as well. It's as if the root index.php file is ignoring the $_SESSION. I'm wondering if it's a server setting? Or another setting in my Codeigniter configuration?

Again, thanks for the help.


Messages In This Thread
Eventually CRACKED IT - Menu driven multiple CodeIgniter applications - by El Forum - 03-16-2011, 06:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB