Skip to content

Instantly share code, notes, and snippets.

@daGrevis
Created January 24, 2012 17:46
Show Gist options
  • Save daGrevis/1671473 to your computer and use it in GitHub Desktop.
Save daGrevis/1671473 to your computer and use it in GitHub Desktop.
Request::empty_param() (Kohana 3.x)
<?php
class Request extends Kohana_Request {
/**
* Helper to reduce LOCs.
*
* @param string Key of the value
* @return boolean
*
* @author daGrevis
*/
public function empty_param($key) {
$value = $this->param($key);
return empty($value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment