Tab Redirection

Discussion in 'aMember Pro v.4' started by winmacsecurity, Apr 19, 2012.

  1. winmacsecurity

    winmacsecurity New Member

    Joined:
    Apr 7, 2012
    Messages:
    5
    aMember 4.1.15 Stable
    PHP 5.2.17
    MySQL 5.5.21

    Hi,
    Just added a new Tab in member area as you said
    <?php
    Am_Di::getInstance()->hook->add(Am_Event::USER_MENU, 'onUserMenu');
    function onUserMenu(Am_Event $event)
    {
    $event->getMenu()->addPage(
    array(
    'id' => 'pageid',
    'label' => 'Button label',
    'uri' => 'secure/cgi/am4',(where SECURE is an amember root file)
    'order' => 2 ( and cgi/am4 i have created this folder)
    )

    );
    }
    ?>

    Thing is that when i am going to open this link http://www.domain.com/secure/cgi/am4
    Replying page show me HTTP/1.1 404 Not Found
    Please Help Me out i need this url for my bussines
  2. winmacsecurity

    winmacsecurity New Member

    Joined:
    Apr 7, 2012
    Messages:
    5
    cgi/am4 folder i have created in default view folder
  3. winmacsecurity

    winmacsecurity New Member

    Joined:
    Apr 7, 2012
    Messages:
    5
    created an CgiController.php in controller folder n the result is
    An Error has occured



    Error 404 - Not Found


    Please contact webmaster: webmaster@xxxxxxxxxxxx.com.



    [​IMG]
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279

Share This Page