Multiple directory for includes #7

Closed
asakurayoh opened this Issue Jul 9, 2010 · 2 comments

Comments

Projects
None yet
3 participants
@asakurayoh

Could be useful to be able to add more include folder for controllers, views, lib, etc.
Use case: Multiple apps (with multiple frontend controller (index.php...)) could load only the code it need + generic code (like, an app with the same layout as an other).
With this, it could be more simpler to share code between apps, too.

by exemple:

option('views_dir', dirname(FILE).'/views');

can become:

option('views_dir', array(dirname(FILE).'/views', dirname(FILE).'/myapp/views'));

here, /views is my genereic views folder, and /myapp/views is my app folder.

Thanks.

@sofadesign

This comment has been minimized.

Show comment Hide comment
@sofadesign

sofadesign Aug 5, 2010

Owner

Nice idea but needs to be implemented with care to avoid performance drawbacks. I will make some tests.

Owner

sofadesign commented Aug 5, 2010

Nice idea but needs to be implemented with care to avoid performance drawbacks. I will make some tests.

@16 16 added the Enhancement label Jun 5, 2015

@16

This comment has been minimized.

Show comment Hide comment
@16

16 Jun 5, 2015

Collaborator

I have made apps separting front and back in different folders and I didn't feel the need to implement this.

Collaborator

16 commented Jun 5, 2015

I have made apps separting front and back in different folders and I didn't feel the need to implement this.

@16 16 closed this Jun 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment