[eluser]jedd[/eluser]
[quote author="Russell Keith" date="1256934083"]
I have the follwing variable declared in every function in my model:
$client = new soapclient("http://localhost:9090/summit/3440-TRAIN/services/CmdSpectrum?wsdl");
I would like to only declare it in one place and reuse it but I can't seem to find the correct location. Any help would be great.
[/quote]
If you truly have just the one model, declare it in your constructor.
If you have multiple models and you want it in all of them, extend the core model - using the MY_Model thing in /application/libraries/ - see the manual for 'extending core libraries'.