code/control/Users_Account_Controller.php
public function index()
    {
        // Setup default profile summary sections
        $sections = ArrayList::create();

        $sections->push(
            ArrayData::create(
                array(
                "Title" => "",
                "Content" => $this->renderWith(
                    "UsersProfileSummary",
                    array("CurrentUser" => Member::currentUser())
                )
                )
            )
        );

        // Allow users to add extra content sections to the
        // summary
        $this->extend("updateIndexSections", $sections);

        $this->customise(
            array(
            "Title" => _t('Users.ProfileSummary', 'Profile Summary'),
            "MetaTitle" => _t('Users.ProfileSummary', 'Profile Summary'),
            "Content" => $this->renderWith(
                "UsersAccountSections",
                array("Sections" => $sections)
            )
            )
        );

        $this->extend("onBeforeIndex");

        return $this->renderWith(
            array(
            "UserAccount",
            "Page"
            )
        );
    }
public function index()
    {
        // Setup default profile summary sections
        $sections = ArrayList::create();

        $sections->push(
            ArrayData::create(
                array(
                "Title" => "",
                "Content" => $this->renderWith(
                    "UsersProfileSummary",
                    array("CurrentUser" => Member::currentUser())
                )
                )
            )
        );

        // Allow users to add extra content sections to the
        // summary
        $this->extend("updateIndexSections", $sections);

        $this->customise(
            array(
            "Title" => _t('Users.ProfileSummary', 'Profile Summary'),
            "MetaTitle" => _t('Users.ProfileSummary', 'Profile Summary'),
            "Content" => $this->renderWith(
                "UsersAccountSections",
                array("Sections" => $sections)
            )
            )
        );

        $this->extend("onBeforeIndex");

        return $this->renderWith(
            array(
            "UserAccount",
            "Page"
            )
        );
    }
public function index ( ) { // Setup default profile summary sections $ sections = ArrayList :: create ( ) ; $ sections -> push ( ArrayData :: create ( array ( "Title" => "" , "Content" => $ this -> renderWith ( "UsersProfileSummary" , array ( "CurrentUser" => Member :: currentUser ( ) ) ) ) ) ) ; // Allow users to add extra content sections to the // summary $ this -> extend ( "updateIndexSections" , $ sections ) ; $ this -> customise ( array ( "Title" => _t ( 'Users.ProfileSummary' , 'Profile Summary' ) , "MetaTitle" => _t ( 'Users.ProfileSummary' , 'Profile Summary' ) , "Content" => $ this -> renderWith ( "UsersAccountSections" , array ( "Sections" => $ sections ) ) ) ) ; $ this -> extend ( "onBeforeIndex" ) ; return $ this -> renderWith ( array ( "UserAccount" , "Page" ) ) ; }
Display the currently outstanding orders for the current user

@return HTMLText
Display the currently outstanding orders for the current user