Using PHP telnet library with codeigniter |
[eluser]misterix[/eluser]
Hello guys. I hope that you will have a minute to take a look and help for me. I am trying to use telnet library with codeigniter. This is working with pure PHP. I found this library there: http://www.soucy.org/project/cisco/ http://www.soucy.org/project/cisco/source.php I took that source.php file and add to our codeigniter library folder (changed the name to Cisco.php) . The problem is when I try to use it on my controller I get these errors: Quote:A PHP Error was encountered Looks like my controller doesn't understand these variables. telnet function on the controller looks like this: Quote: public function telnet() { What should I add there? :/ Thank you guys if you have a minute..
[eluser]jmadsen[/eluser]
you need to pass your vars to the initialization, not the connect() function look at the code in the library
[eluser]neilmcgann[/eluser]
It's all there in the error messages. The constructor needs some parameters. See the CI manual for the loader class and look at the optional $config parameter for load->library.
[eluser]Ajaxboy[/eluser]
http://ellislab.com/codeigniter/user-gui...oader.html |
Welcome Guest, Not a member yet? Register Sign In |