Petran
Petran

Reputation: 8047

codeigniter scalable folder structure

I've use symfony and now using codeigniter is there any folder structure that can be used in scalable applications similar to symfony.

I want to make an application that will be divided in sub-apps and the sub-apps will have their own modules.

Thanks.

Upvotes: 0

Views: 502

Answers (2)

Ben
Ben

Reputation: 422

What you are describing is called HMVC (Hierarchical Model View Controller). This means that an application is split up into modules (or as you described them, rather accurately, "sub-apps"). Sadly CodeIgniter does not support HMVC unmodified, however there is a drop-in extension for CodeIgniter which allows you to use a HMVC architecture. [Thanks Wesley]

Alternatively you can use a fork of CodeIgniter which is specifically designed for HMVC called Kohana Framework. The project was originally a fork but has now changed massively and is barely recognisable from the original CI project.

Upvotes: 1

No Results Found
No Results Found

Reputation: 102755

As far as modules go, the go-to solution for CI is the HMVC package:

https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home

This is a "drop-in" solution; very easy to install, has been around for quite a long time, and is actively maintained.

Since Codeigniter tries to stay lightweight, you'll find that a lot of important things you need, like Auth or ORMs, are not built in, and you have to use third party code.

A lot of solutions hosted here: http://getsparks.org/packages/browse/latest

And the wiki: http://codeigniter.com/wiki/

Upvotes: 0

Related Questions