Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class Static_IsExistingNodeValidator extends AgaviValidator { public function validate() { $m = $this->getContext()->getModel('Pages', 'Static'); $url = $this->getData($this->getArgument()); if ($page = $m->retrievePageByUrl($url)) { #print_r($page); $this->export($page, 'page'); # $this->export(array('Fu','Bars'), 'page'); return true; } return false; } }
This paste will be private.
From the Design Piracy series on my blog: