original_string: 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'), '#');
      }
code: 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'), '#');
      }
code_tokens: 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' ) , '#' ) ; }
docstring: Shows a list of all the blocks & widgets.
  
  @return void
docstring_tokens: Shows a list of all the blocks & widgets .