Skip to content

Custom Users library

saturngod edited this page Feb 26, 2012 · 1 revision

You can crate your own library in Ava Framework.

Create mylibrary.php in /system/users/libraries

in mylibrary.php

class Ava_mylibrary {
    function helloworld()
    {
        echo "hello world";
    }
}

now, you can call from controller or library.

$this->load->library("mylibrary");
$this->mylibrary->helloworld();

Clone this wiki locally