Welcome Guest, Not a member yet? Register   Sign In
Reuse code
#1

[eluser]spescina[/eluser]
Hi all.

I've a question for you. I hope someone can point me into the right solution for my problem.

Anyway,
I'm a developer in a little web agency.
Often in my projects I've to build frontend and backend applications.
I use to organize my projects in this way
Code:
-app
  -app_frontend
    -controller
    -etc
  -app_backend
    -controller
      -custom
        -custom_controller_1.php
      -shared_controller_1.php
      -shared_controller_2.php
    -etc
  -ci_core
-www (web root)
  -backend
    -js
    -css
    -etc
  -js
  -css
  -etc
I use subversion for source control.
Inside the app_backend application I have a lot of controllers/models/libraries/views/core files I always use in every project. Then in every project I add other files to build my custom extended backend application.
I would like to be able to fix bug and develop common features in my core app and then replicate them in other projects where I've used this architecture but I cannot find a way to achieve this.
I've created a common_app repository and I've linked it in my child projects (it points to app_backend) with svn externals but in this way I cannot committ not-common features in the child projects cause, in example, custom_controller_1.php is inside the linked external controller folder.

Any advice?
Thanks for your time.

Bye
#2

[eluser]spescina[/eluser]
no ideas?
#3

[eluser]XMadMax[/eluser]
Would help the XHMVC model ? : http://ellislab.com/forums/viewthread/223678/
#4

[eluser]johnpeace[/eluser]
Take a look at PyroCMS. it's a great CI based CMS that includes HMVC so you can easily modularize your code. We used it extensively at my last agency job and it saved us tons of time.




Theme © iAndrew 2016 - Forum software by © MyBB