Jump to content

zasnemo

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by zasnemo

  1. but guys... to make it simpler, this doesnt even work:

    [code]
    <?php
    function template_main_above()
    {
    $aaa = 'aaa';
    echo $aaa; // comes out fine
    include('aaaa.php');
    }

    ?>

    <?php //aaaa.php

    echo $aaa; // doesnt come out fine

    ?>
    [/code]

    :'( :'(
  2. mmm, wheres the include? I dont want to echo...

    <?php
    function template_main_above()
    {
    global $context;
    print_r($context); // $context comes out fine.

    include('aaaa.php');
    }

    ?>

    <?php //aaaa.php

    global $context;
    print_r($context); // $context DOESNT come out fine.

    ?>
  3. oh shite, i must of done the example wrong then.

    im trying to edit SMF, which contains a:

    function template_main_above()
    {
    global $context;
    print_r($context);

    $context comes out fine.

    and in that function i include:

    include('a.php');

    in that a.php I try to
    print_r($context);

    but it doesnt come out :-S
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.