Hello please can you kindly help me out. I'm having issues with using this library. I have installed using composer and loaded the autoload.php from the vendor folder.
I'm using this inside Codeigniter framework. I want to create a Codeigniter Library (this library will therefore load the Thumbor class) which i can call within my application.
I implemented this like below:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class ImageResize {
private $server = 'http://thumbor.thumborize.me';
private $secret = '';
public function __construct(){
return \Thumbor\Url\BuilderFactory::construct($this->server, $this->secret);
}
}
But i'm getting Call to undefined method ImageResize::url()
Please what i'm i doing wrong and how can i resolve this?
Hello please can you kindly help me out. I'm having issues with using this library. I have installed using composer and loaded the autoload.php from the vendor folder.
I'm using this inside Codeigniter framework. I want to create a Codeigniter Library (this library will therefore load the Thumbor class) which i can call within my application.
I implemented this like below:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class ImageResize { private $server = 'http://thumbor.thumborize.me'; private $secret = '';
public function __construct(){ return \Thumbor\Url\BuilderFactory::construct($this->server, $this->secret); }
}
But i'm getting Call to undefined method ImageResize::url()
Please what i'm i doing wrong and how can i resolve this?
Thank you.