Welcome Guest, Not a member yet? Register   Sign In
Model sharing variables in functions? [solved]
#2

[eluser]ywftdg[/eluser]
Nevermind, i'm retarded, you declare it at the very beging of the model, for example:

Code:
class Reports_model extends Model {

        var $rate = '';
        
       /////////////////////////////////////////////
       function Reports_model()    {
         parent::Model();
        
    }
  
    
    /////////////////////////////////////////////
    function get_royalty_rate($id)    {


Messages In This Thread
Model sharing variables in functions? [solved] - by El Forum - 08-05-2008, 01:35 AM
Model sharing variables in functions? [solved] - by El Forum - 08-05-2008, 01:43 AM
Model sharing variables in functions? [solved] - by El Forum - 08-05-2008, 01:48 AM
Model sharing variables in functions? [solved] - by El Forum - 08-05-2008, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB