public function formAction() { // Get, check and setup the parameters if (!($widget_id = $this->getRequest()->getParam("id"))) { throw new Stuffpress_Exception("No widget id provided to the widget controller"); } // Get the current values $properties = new WidgetsProperties(array(Properties::KEY => $widget_id)); $data = $properties->getPropertiesArray(array('title')); // Get the form and populate with the current values $form = $this->getForm($widget_id); $form->populate($data); $this->view->form = $form; }