Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?php class CMSUserExistsRoutingCallback extends AgaviRoutingCallback { public function onMatched(array &$parameters, AgaviExecutionContainer $container) { $user = UserPeer::retrieveByPK($parameters['id']); if(!$user) { return false; } $this->context->getRequest()->setAttribute('user', $user, 'cms.default.users.current'); return true; } } ?>
This paste will be private.
From the Design Piracy series on my blog: