public function index()
    {
        $this->loadModel('Block.Blocks');
        if ($this->request->isPost()) {
            if ($this->_reorder()) {
                $this->Flash->success(__d('block', 'Blocks ordering updated!'));
            }
            $this->redirect(['plugin' => 'Block', 'controller' => 'manage', 'action' => 'index']);
        }

        $front = $this->Blocks->inFrontTheme();
        $back = $this->Blocks->inBackTheme();
        $unused = $this->Blocks->unused();

        $this->set(compact('front', 'back', 'unused'));
        $this->title(__d('block', 'Site Blocks'));
        $this->Breadcrumb
            ->push('/admin/system/structure')
            ->push(__d('block', 'Manage Blocks'), '#');
    }
public function index()
    {
        $this->loadModel('Block.Blocks');
        if ($this->request->isPost()) {
            if ($this->_reorder()) {
                $this->Flash->success(__d('block', 'Blocks ordering updated!'));
            }
            $this->redirect(['plugin' => 'Block', 'controller' => 'manage', 'action' => 'index']);
        }

        $front = $this->Blocks->inFrontTheme();
        $back = $this->Blocks->inBackTheme();
        $unused = $this->Blocks->unused();

        $this->set(compact('front', 'back', 'unused'));
        $this->title(__d('block', 'Site Blocks'));
        $this->Breadcrumb
            ->push('/admin/system/structure')
            ->push(__d('block', 'Manage Blocks'), '#');
    }
public function index ( ) { $ this -> loadModel ( 'Block.Blocks' ) ; if ( $ this -> request -> isPost ( ) ) { if ( $ this -> _reorder ( ) ) { $ this -> Flash -> success ( __d ( 'block' , 'Blocks ordering updated!' ) ) ; } $ this -> redirect ( [ 'plugin' => 'Block' , 'controller' => 'manage' , 'action' => 'index' ] ) ; } $ front = $ this -> Blocks -> inFrontTheme ( ) ; $ back = $ this -> Blocks -> inBackTheme ( ) ; $ unused = $ this -> Blocks -> unused ( ) ; $ this -> set ( compact ( 'front' , 'back' , 'unused' ) ) ; $ this -> title ( __d ( 'block' , 'Site Blocks' ) ) ; $ this -> Breadcrumb -> push ( '/admin/system/structure' ) -> push ( __d ( 'block' , 'Manage Blocks' ) , '#' ) ; }
Shows a list of all the blocks & widgets.

@return void
Shows a list of all the blocks & widgets .