Manual

loader functions

loadhelper('helpers',..) {#loadhelper}

include once myportal helper functions from /myportal/helpers/,

helper name equals /myportal/helpers/{helper name}.php

{{lang:php}}
loadhelper('furl','file');

loadthelper('helpers',..) {#loadthelper}

include once templates functions from /template/helpers/,

helper name equals /template/helpers/{helper name}.php

{{lang:php}}
loadthelper('your custom functions file name');

loadclasses($c) {#loadclasses}

include once class from /myportal/libraries/$classname.class.php

function is already called by spl autoloader

Try myPortal 2: