ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using index.php in a sub-directory not working as expected

February 03, 2011 12:06pm

Subscribe [2]
  • #1 / Feb 03, 2011 12:06pm

    khronos

    19 posts

    We just upgraded to EE2 from EE1.7. Our old path.php file had:

    $template_group = "f2f";
    $template = "index";
    $site_url = "";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(); // This array must be associative

    The new index.php file has:

    $assign_to_config['template_group'] = 'f2f';
    $assign_to_config['template'] = 'index';
    $assign_to_config['site_index'] = '';
    $assign_to_config['site_404'] = '';
    $assign_to_config['global_vars'] = array(); // This array must be associative

    I have verified in the control panel that my changes to the index.php file are accepted. When I load any template apart from index in the f2f template group, we still see only the index template. I have also tried setting $site_index = “index” and leaving $template blank, however, then the main sites index loads instead of the template group f2f index.

    Any suggestions? Bug or config issue on my end?

  • #2 / Feb 03, 2011 2:25pm

    khronos

    19 posts

    Found the solution. Seems like it was a fluke before the upgrade that my settings work. Now have:

    $assign_to_config['template_group'] = 'f2f';
    $assign_to_config['template'] = '';
    $assign_to_config['site_index'] = '/path/to/f2f/index.php';
    $assign_to_config['site_404'] = '';
    $assign_to_config['global_vars'] = array(); // This array must be associative
  • #3 / Feb 03, 2011 3:01pm

    Ingmar

    29245 posts

    So, you’re good? Just making sure.

  • #4 / Feb 03, 2011 3:04pm

    khronos

    19 posts

    On this issue I’m all set for now. As for the upgrade from 1.7 to 2.x… I won’t go into that painful operation here. 😊

  • #5 / Feb 03, 2011 3:07pm

    Ingmar

    29245 posts

    Very good. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases