Welcome Guest, Not a member yet? Register   Sign In
Using a library class
#4

[eluser]Ikkaku-Sama[/eluser]
[quote author="Johan André" date="1247636222"]Use MY_Model.php in libraries folder instead. It's for extending models.

MY_Model.php
Code:
class MY_Model extends Model
{
    function MY_Model()
    {
        parent::Model();
    }

    function available_to_all_models()
    {
        echo "Hooray!";
    }
}

Then let your models extend MY_Model instead of Model.[/quote]

Thank you, Johan André. Your solution solved my problem.


Messages In This Thread
Using a library class - by El Forum - 07-14-2009, 12:38 PM
Using a library class - by El Forum - 07-14-2009, 02:05 PM
Using a library class - by El Forum - 07-14-2009, 06:37 PM
Using a library class - by El Forum - 07-15-2009, 11:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB