99designs / phumbor

A minimal PHP helper for Thumbor
MIT License
123 stars 43 forks source link

Call to Undefined method Url #25

Closed papakay closed 8 years ago

papakay commented 8 years ago

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.