[eluser]imcl[/eluser]
I have a file I named includes.php that contains several functions, for example
Code:
function dayCount()
{
date_default_timezone_set('America/New_York');
$j = array();
for ($dayBegin = 1; $dayBegin < 32; $dayBegin++) {
$j[$dayBegin] = $dayBegin;
}
return $j;
}
function yearCount()
{
date_default_timezone_set('America/New_York');
$j = array();
for ($yearBegin = 1922; $yearBegin < (date('Y')-18); $yearBegin++) {
$j[$yearBegin] = $yearBegin;
}
return $j;
}
// etc...
They are referenced mostly from view pages, and on occasion from a controller.
Ideally, where should this includes.php file go?
Should be in LIBRARIES or HELPERS? Does it make any difference?