Esempio n. 1
0
 /**
  * Bookmark action
  *
  * @return void
  */
 public function bookmarkAction()
 {
     $url = $this->_request->getParam('url');
     $label = $this->_request->getParam('label', $url);
     // the bookmark links are set up so if you dont have js enabled it will just use a default value for you
     // this makes it pass an array as the label if you do set it, so we need to fetch the last item if it is an array
     if (is_array($label)) {
         $label = array_pop($label);
     }
     $bookmark = new Model_Bookmark();
     $bookmark->addUsersBookmark($label, $url);
 }