thewooleymammoth Posted November 2, 2010 Share Posted November 2, 2010 Im playin around with codeigniter and would be much happier if i could do something like this $this::load:view('whatever'); instead of $this->load->view('whatever'); because -> takes way longer to type then :: but :: breaks my code.... anyone had any luck with this? does it work for other people? maybe its just me? I tried searching but its too hard to find. :: is not a thing many search things like searching for. Quote Link to comment https://forums.phpfreaks.com/topic/217532-codeigniter-instead-of/ Share on other sites More sharing options...
trq Posted November 2, 2010 Share Posted November 2, 2010 :: and -> serve completely different purposes in PHP. The first is used to access static properties and methods of a class while the second is used to access methods and properties of an object. This really has little to do with codeignitor but PHP itself. Quote Link to comment https://forums.phpfreaks.com/topic/217532-codeigniter-instead-of/#findComment-1129321 Share on other sites More sharing options...
thewooleymammoth Posted November 2, 2010 Author Share Posted November 2, 2010 ah thank you, as it was explained to me they were interchangable, perhaps its that way in c? maybe not. Thats what i get for tryin to mess with things! thanks! Quote Link to comment https://forums.phpfreaks.com/topic/217532-codeigniter-instead-of/#findComment-1129325 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.