Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created February 20, 2014 14:58
Show Gist options
  • Select an option

  • Save objectivehtml/9115526 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/9115526 to your computer and use it in GitHub Desktop.
<?php
function your_method()
{
if(!$param = ee()->TMPL->fetch_param('your_param'))
{
show_error('The X parameter is required');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment