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


Messages In This Thread
Reuse code - by El Forum - 08-21-2012, 08:17 AM
Reuse code - by El Forum - 01-11-2013, 06:27 AM
Reuse code - by El Forum - 01-11-2013, 07:47 AM
Reuse code - by El Forum - 01-13-2013, 06:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB