• <?php

    namespace app\controller;

    use app\BaseController;

    use app\model\Tzs;

    use Intervention\Image\ImageManagerStatic as Image;

    class Index extends BaseController

    {

        public function index()

        {

        phpinfo();

        die;

        // $ret = Tzs::select();

        // dump($ret);

        // and you are ready to go ...

        Image::configure(array('driver' => 'imagick'));

    $image = Image::make('1.tif')->save('1.pdf');

            return view();

        }

    }

微博一键登入