Welcome Guest, Not a member yet? Register   Sign In
Autoloading... can you pass parameters to the constructor?
#1

[eluser]Unknown[/eluser]
I have a little session class that I use for shared hosting accounts, as it makes session identifiers unique. The way this function is written, is that it is passed a unique token when being constructed. Given the fact that I'll be reusing it throughout my application, I figured autoloading made the most sense. I can load the class just fine, but I'm unsure how I could pass parameters to my constructor.

Is this possible? If not, are there any workarounds?
#2

[eluser]Tom Glover[/eluser]
You can Extend the default controller with repeated functions, in the libraries folder. you then call your controller in which to extend in the normal way.

This allows you to have repeated controller calls, with out the use of wick.

There is an example of this in BackEnd Pro. Hope this helps you find what you are looking for.




Theme © iAndrew 2016 - Forum software by © MyBB