Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using PhpThumb Class
  • Hi,

    I want to use Phpthumb class with Fuel php
    I've gone through a thread where I read that I need to add the class within app/classes folder following the instruction I copied the two required files (phpthumb.php and phpthumb.functions.php )
    in folder phpthumb so now my folder structure is 
    fuel->app->class->phpthumb->files


    I added the class in autoload classes array but it gives me error:
    fuelphp errorAlways load class does not exist. Unable to load: 

    Please suggest me a way to use phpthumb class.

  • I've a feeling it's not being found because the class and file names do not adhere to the naming conventions required by Fuel's autoloader.

    Please see here for details.

  • Correct.

    Best approach is to encapsulate it in a package, and add a facade class to the package which allows you to interact with the phpthumb classes.

    Have a look at https://github.com/WanWizard/fuel-pdf which shows you how that could work.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion