Welcome Guest, Not a member yet? Register   Sign In
how to call a model class const in a controller class?
#1

[eluser]Unknown[/eluser]
i am new to ci, so probably a dumb question:
if i use class const in a model,

class Xmodel extends Model {
const X1 = 1;
....
}

Then how do i use it in a controller, for example? Is Xmodel::X1 available to use after loading the model?

or i should just use plain variable?

Thanks...


Messages In This Thread
how to call a model class const in a controller class? - by El Forum - 04-20-2010, 06:49 PM
how to call a model class const in a controller class? - by El Forum - 04-21-2010, 11:03 PM
how to call a model class const in a controller class? - by El Forum - 04-22-2010, 11:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB