Utilities> Build Demo

Discussion in 'Installation' started by sarah_rendle, Apr 19, 2014.

  1. sarah_rendle

    sarah_rendle aMember Pro Customer

    Joined:
    Apr 3, 2014
    Messages:
    69
    Hi there can anyone tell me what the purpose of the Utilities 'Build Demo' is for?
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,670
    This utilities create bunch of fake records (users, products, payments, affiliate commissions, helpdesk tickets etc.)
    It can be used to create some content for your test/development installation. It does not useful on production server at all.
  3. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Caesar how can we remove this option please?
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,670
    You can use the following code in site.php file (http://www.amember.com/docs/Site.php_file)
    Code:
    Am_Di::getInstance()->hook->add(Am_Event::ADMIN_MENU, 'myAdminMenu');
     
    function myAdminMenu(Am_Event $e)
    {
        /* @var $menu Am_Navigation_Admin */
        $menu = $e->getMenu();
     
        $item = $menu->findOneBy('id', 'build-demo');
        $menu->findOneBy('id', 'utilites')->removePage($item);
    }

Share This Page