/** * This will call the parentxontent controller to populate the view, while sending throught he type of content that it is * as well as the paper_id, which will be used to autocomplete the paper combo box withg the correct result. * @see Content_Controller::add() */ public function add($paper_id = NULL) { $paper = orm::factory('paper', $paper_id); // load the paper so that we can get all the details required to populate the breadrumbs if ($paper->loaded) { $this->breadcrumbs->add()->url('products/papers/edit/' . url::encode($paper->name))->title(url::decode($paper->name)); $this->breadcrumbs->add()->url('products/papers/technicals/index/' . $paper->id)->title('Technicals'); $this->breadcrumbs->add()->url(false)->title('Add'); } parent::add('technical', $paper->id); }
public function __construct() { parent::__construct(); }