承接 flame/thumbnail-helper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flame/thumbnail-helper

Composer 安装命令:

composer require flame/thumbnail-helper

包简介

Nette template helper for lazy creating of thumbnails

README 文档

README

Nette template helper for lazy creating of thumbnails

###Instalation Examples is based on Nette version 2.0.12, but the package is compatible with @dev version too

##Register "thumb" extension In bootstrap.php

\Flame\Thumb\DI\ThumbExtension::register($configurator);

###Register "thumb" helper

	/**
     * Base presenter for all application presenters.
     */
    abstract class BasePresenter extends Presenter
    {

    	/**
    	 * @param null $class
    	 * @return \Nette\Templating\ITemplate
    	 */
    	protected function createTemplate($class = null)
    	{
    		$template = parent::createTemplate($class);
    		/** @var \Flame\Thumb\IRegister $thumb */
            $thumb = $this->context->getByType('Flame\Thumb\IRegister');
            $thumb->register($template);
    		return $template;
    	}
    }

###Set variables (Optional) In config.neon

	thumb:
		paths:
			base: %wwwDir%
			thumbs: /media/thumbs

That's all! Enjoy it!

统计信息

  • 总下载量: 66
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause-FreeBSD
  • 更新时间: 2013-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固