New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple directory for includes #8

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

Comments

Projects
None yet
1 participant
@asakurayoh

asakurayoh commented Jul 9, 2010

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.
The latest is the first to be search. Like that, it's possible to override generic template with an app template.

Thanks.

This issue was closed.

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