Skip to content

Instantly share code, notes, and snippets.

View boywhoroared's full-sized avatar

Boy Who Roared boywhoroared

View GitHub Profile
@boywhoroared
boywhoroared / Zend-View-Url-Helper.php
Created June 6, 2011 16:33
Using the Zend View URL Helper to generate default route URLs
<?php
# When using the Zend View URL helper to generate URLs to controller actions,
# rather than named routes, you have to use 'default' as the route name.
# Generating a URL for the `bar` action in the `foo` controller.
echo $this->url(array('action' => 'bar', 'controller' => 'foo'), 'default', true);
# And NOT this as most people seem to assume (self included).
@boywhoroared
boywhoroared / Truncate.cmd
Created June 6, 2011 15:41
Truncate a file via Windows CLI
echo. > errors.log