[eluser]Andy MC[/eluser]
Ok, following up in the CI documentation, the section 'Utilizing CodeIgniter Resources within Your Library' within 'Creating Libraries' says '$this' should be available within controllers, models and views, as I expect it should.
This is where I start to go red with embarressment, says I have tried this in 3 different subdirectories within wwwroot aptly named test1, test2 and test3, and I've now created a 4th. Hey presto, it worked as originally posted. Not convinced I created a 5th and it still works. Unfortunately, I've removed the directories so can't do a diff.
I'd like to be able to offer an explanation, and should I ever find one I will update this post, but at the moment I'm stumped.
Thanks very much for all your help and I apologies if I've wasted too much of anyones time.
Andy.