1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add a new page in Admin-CP

Discussion in 'XenForo Development Discussions' started by Flips, Jun 18, 2012.

  1. Flips

    Flips New Member

    Yes, i am new with addon development.

    I'm trying to make a simple "Hello world" page in the controlpanel.
    I created a new addon, added a new tab in admin navigation, created Route Prefix, added a class in library/XenForo/Route/PrefixAdmin (code) and created a class in library/XenForo/ControllerAdmin. Well, the whole question is, what should i write in the class in ControllerAdmin?

    Thanks.
     
  2. Flips

    Flips New Member

    PrefixAdmin code:
    PHP:
     <?php
     
    class XenForo_Route_PrefixAdmin_Flips implements XenForo_Route_Interface
    {
        public function 
    match($routePathZend_Controller_Request_Http $requestXenForo_Router $router)
        {
            return 
    $router->getRouteMatch('XenForo_ControllerAdmin_Flips'$routePath'flips');
        }
    }            
     

Share This Page