Skip to content

Instantly share code, notes, and snippets.

@electricputty
Created August 16, 2012 10:56
Show Gist options
  • Save electricputty/3369262 to your computer and use it in GitHub Desktop.
Save electricputty/3369262 to your computer and use it in GitHub Desktop.
params
/** -------------------------------------
/** Initiate parameters and vars
/** -------------------------------------*/
$params = array(
'entry_id' => '',
'url_title' => '',
'weblog_id' => '',
'weblog' => '',
'custom_field' => '',
'channel_id' => '',
'channel' => '',
'pages_uri' => '',
'show_error' => '',
'fallback' => ''
);
$field_id = FALSE;
$sql_select = 'title';
/** -------------------------------------
/** Loop through parameters, set value
/** -------------------------------------*/
foreach ($params AS $key => $value)
{
$params[$key] = $this->EE->TMPL->fetch_param($key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment