rbz/codeigniter 问题修复 & 功能扩展

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

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

rbz/codeigniter

Composer 安装命令:

composer create-project rbz/codeigniter

包简介

The CodeIgniter Application Integrated with HMVC, Doctrine ORM and Twig for Project of Dynamic CMS (blank buildable CMS)

README 文档

README

use Webcore Single Platform based on laravel in https://github.com/dandisy/webcore instead

DynamicCMS

The CodeIgniter Application Integrated with HMVC, Twig and Doctrine ORM

Featured with dynamic routes, dynamic controllers and dynamic views from database

This is rbz/codeigniter project for developing blank buildable CMS for blog, portal, e-commerce, etc. Using single platform.

Note :
If you want only CodeIgniter integrated with HMVC, Twig and Doctrine,
but not the codes part of DynamicCMS, you can clone version 1.1.0
or clone this version and remove unwanted codes by your self.

also you can edit composer.json to exclude unwanted packages (Twig or Doctrine).

But for excluded HMVC you must manually delete the file in core and third_party folder,
because this part included manually, not using composer.
  1. Preparation

    Just read CodeIgniter documentation to begin CI based website, if you not familiar.

  2. Installation

    • Git

      Clone this git project to your web root

        git clone https://github.com/dandisy/dynamicCMS.git
      

      Go to the folder and run

        composer install
      
    • Composer

      Run

        composer create-project rbz/codeigniter:dev-master your-project-folder-name
      

      or just run (to get the latest stable version)

        composer create-project rbz/codeigniter your-project-folder-name
      

    End than run in browser :

     your-hostname/folder-name or your-project-folder-name/public
    
  3. How to use Doctrine ORM

    • To generate schema from entities (code first) :

      • create entities in models/entities, example:

          <?php
          /**
           * @Entity @Table(name="products")
           **/
          class Product
          {
              /** @Id @Column(type="integer") @GeneratedValue **/
              protected $id;
              
              /** @Column(type="string") **/
              protected $name;
          
              public function getId()
              {
                  return $this->id;
              }
          
              public function getName()
              {
                  return $this->name;
              }
          
              public function setName($name)
              {
                  $this->name = $name;
              }
          }
        
      • in terminal :

          ./vendor/bin/doctrine orm:schema-tool:create
        
    • To generate entities from database (database first)

      • in terminal :

        first, generate the mapping annotation

          ./vendor/bin/doctrine orm:convert-mapping --from-database annotation models/entities
        

        then, generate the entities

          ./vendor/bin/doctrine orm:generate-entities --generate-annotations=true --generate-methods=true models/entities
        

        the last, ensure that the entities class that is generated is not the same as an existing class(ei: controllers class, or models class), if there are the same as the one, you need manually change for :

          - class name
          - annotation refered
          - file name        
        
  4. Twig Implementation

    Is configured to read View with .twig as file extention in each module , if you want to Twig read other directory or file extention, you must change configuration in Twig.php library.

  5. CodeIgniter Implementation

    For security reason the index.php have been moved to public folder, whereas CodeIgniter system file in outside web root directory. You must set the web root to this public directory.

by dandi@redbuzz.co.id

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固