2017 © Pedro Peláez
 

project codeigniter

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

image

rbz/codeigniter

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

  • Thursday, January 4, 2018
  • by dandisy
  • Repository
  • 3 Watchers
  • 3 Stars
  • 43 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

DEPRECATED!

use Webcore Single Platform based on laravel in https://github.com/dandisy/webcore instead, (*1)


DynamicCMS

The CodeIgniter Application Integrated with HMVC, Twig and Doctrine ORM

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

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, (*3)

    Just read CodeIgniter documentation to begin CI based website, if you not familiar., (*4)

  2. Installation, (*5)

    • Git, (*6)

      Clone this git project to your web root, (*7)

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

      Go to the folder and run, (*8)

      composer install
    • Composer, (*9)

      Run, (*10)

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

      or just run (to get the latest stable version), (*11)

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

    End than run in browser :, (*12)

    your-hostname/folder-name or your-project-folder-name/public
  3. How to use Doctrine ORM, (*13)

    • To generate schema from entities (code first) :, (*14)

      • create entities in models/entities, example:, (*15)

        <?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 :, (*16)

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

      • in terminal :, (*18)

        first, generate the mapping annotation, (*19)

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

        then, generate the entities, (*20)

        ./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 :, (*21)

        - class name
        - annotation refered
        - file name        
  4. Twig Implementation, (*22)

    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., (*23)

  5. CodeIgniter Implementation, (*24)

    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., (*25)

by dandi@redbuzz.co.id, (*26)

The Versions

04/01 2018

dev-master

9999999-dev

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

  Sources   Download

The Requires

 

The Development Requires

  • mikey179/vfsstream ^1.6

by Dandi Setiyawan

30/04 2016

2.0.0

2.0.0.0

The CodeIgniter Application Integrated with HMVC, Doctrine ORM and Twig

  Sources   Download

The Requires

 

The Development Requires

  • mikey179/vfsstream ^1.6

by Dandi Setiyawan

31/01 2016

1.1.0

1.1.0.0

The CodeIgniter Application Integrated with HMVC, Doctrine ORM and Twig

  Sources   Download

The Requires

 

The Development Requires

  • mikey179/vfsstream ^1.6

by Dandi Setiyawan

21/01 2016

1.0.0

1.0.0.0

The CodeIgniter Application including hmvc and twig from Composer

  Sources   Download

The Requires

 

The Development Requires

  • mikey179/vfsstream 1.1.*

by Dandi Setiyawan