/**
 * Create the filename for a resource
 *
 * @param   string  $type   The resource type to create the filename for
 * @param   array   $parts  An associative array of filename information
 *
 * @return  string  The filename
 *
 * @since   3.0
 */
protected function _createFileName($type, $parts = array())
{
    switch ($type) {
        case 'template':
            $filename = strtolower($parts['name']) . '.' . $this->_layoutExt;
            break;
        default:
            $filename = strtolower($parts['name']) . '.php';
            break;
    }
    return $filename;
}