textfile($uri, $template, $lang = null)

Helper to create correct text file names for content files

  • $uri (string)
  • $template (string)
  • $lang (string)
    Language code
  • return (string)
    Absolute path to the content file based on the params

Example

<?php $path = textfile('blog/test-article', 'blog.article') ?>

// With language code
<?php $path = textfile('blog/test-article', 'blog.article', 'en') ?>