Where to create an objet |
[eluser]tchule[/eluser]
Hello, This is a beginner question but I'm suddently asking myself how to cleanly define the class of a parameter objet in CI. I want create a object having a certain number of attributes and to call a function taking this object as a parameter and generating an XML string as a result. The question is where to store the class definition ? It's not a model, not a helper and not really a library. I could add it as a library and autoload it but it sounds strange to me. I could use a "require_once" and add it in a "classes" directory ... Any suggestion ? Thanks, Tchule.
[eluser]xwero[/eluser]
if you want to create an object you can do Code: $obj = &new;stdclass; |
Welcome Guest, Not a member yet? Register Sign In |