/** * Form specific annotation * * this will use the docblock on the form class itself to set certain properties of the form */ protected function annotateForm() { //canary... $rdocblock = $this->getDocBlock(); if (empty($rdocblock)) { return; } //if if ($method = $rdocblock->getTag('method')) { $this->form->setMethod($method); } //if // @todo just like encoding, I think this might be short for this world, I originally // liked the idea of having the url set in the form, but that was when the Url class // was static, so the forms could do stuff like Url::get(...). Now that I've moved // to the current Montage model setting the Url internally is a lot harder since it // requires a \Montage\Url dependency. So I've been setting it when rendering the form // by passing it in as an attribute to renderStart(array('action' => 'url')); if ($url = $rdocblock->getTag('url')) { $this->form->setUrl($url); } //if }