Functions:

($errno, $errstr, $errfile, $errline)

transforms all errors to exceptions (but keeps warnings and notices as is)

__autoload($origClassName)

l($obj, $options=array())

Shortcut for Misago\I18n::localize().

paginate($collection, $options=array())

Builds pagination links.

Options:

  • params - parameters to build links
  • param_name - page parameter in links (defauts to 'page')
  • page_links - set to false to display next and previous links only

t($str, $options=null)

Shortcut for Misago\I18n::translate().

Examples:

t($string, $context);
t($string, array('context' => $context));
t("foor {{bar}}", array('context' => $context, 'bar' => 'baz'));