Autoloaded Classes that Receive Values During Instantiation |
[eluser]Krumpet[/eluser]
Ok, I've been able to call classes and pass in arrays. Thanks for the suggestion. Let's say I'm at http://www.somewhere.com/calling/ and my Calling class needs to work with the Called library. I can do this as follows: Code: class Calling{ Code: class Called{ However, I don't always want to pass in an array. Sometimes I want to pass a string, sometimes an integer, and sometimes an object. How can I create the Called class so it will accept different types of arguments? EDIT: I've also verified I can put an object into an array and pass it to the Called class. Still wondering if CI requires everything to be passed in array form. |
Welcome Guest, Not a member yet? Register Sign In |