pedro151/zendx 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pedro151/zendx

最新稳定版本:v1.0

Composer 安装命令:

composer require pedro151/zendx

包简介

ZendX

README 文档

README

Install

$ composer require pedro151/zendx

setting is in public\index.php

set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../vendor/zendframework/zendframework1/library'),
    realpath(APPLICATION_PATH . '/../vendor/pedro151/zendx/library'),
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));

Configuration

setting is in application/configs/application.ini

;CONFIG ZENDX
resources.view.helperPath.ZendX_JQuery_View_Helper = APPLICATION_PATH "/../ZendX/JQuery/View/Helper"

or in application/Bootstrap.php

$view->addHelperPath ( "ZendX/JQuery/View/Helper" , "ZendX_JQuery_View_Helper" );

Enabling

In Bootstrap.php File setting:

public function _initJQuery ()
{
    $this->_bootstrap ( 'FrontController' );
    $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper ( 'viewRenderer' );
    if ( null === $viewRenderer->view )
    {
        $viewRenderer->initView ();
    }
    $view = $viewRenderer->view;

    /* Initialize action controller here */
    $view->jQuery ()
         ->uiDisable ()
         ->enable ();
}

统计信息

  • 总下载量: 12.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-12