![]() |
How to use thid party? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to use thid party? (/showthread.php?tid=68789) |
How to use thid party? - theedo - 08-25-2017 Hi people. I was looking for a "link preview", https://github.com/kasp3r/link-preview . I was thinking that I can insert that in third_party, and call all by a custom library, but it is the first time for me. So, I downloaded all and inserted the files here: application/third_party/LinkPreview/... My question is: how can I use it now? I created a class like that: PHP Code: if ( ! defined('BASEPATH')) exit('No direct script access allowed'); but if in a controller I include the library PHP Code: $this->load->library('linkPreview') and then I call in this way: PHP Code: $this->linkPreview->link() I've this errors: ![]() Can you give me some ideas? Thank you! RE: How to use thid party? - skunkbad - 08-25-2017 See: https://www.codeigniter.com/user_guide/libraries/loader.html#CI_Loader::add_package_path RE: How to use thid party? - theedo - 08-25-2017 Yeah, I tried also that, but when I create a var $var = new LinkPreview("http://facebook.com"); I have this error: ![]() and this is my code: ![]() RE: How to use thid party? - InsiteFX - 08-26-2017 CodeIgniter: Access Third Party Libraries |