#668: Make filesystem path rules configuration directive based
-------------------------+--------------------------------------------------
Reporter: david | Owner: david
Type: enhancement | Status: new
Priority: low | Milestone: 1.1
Component: _OTHER_ | Version:
Severity: normal | Keywords:
Has_patch: 0 |
-------------------------+--------------------------------------------------
so instead of
{{{
$file = AgaviConfig::get('core.module_dir') . '/' . $moduleName .
'/actions/' . $actionName . 'Action.class.php';
}}}
in {{{AgaviController::createActionInstance()}}}
we expand directives and variables on a string read from, say,
"paths.action_class", that defaults to something like
{{{
%core.module_dir%/${moduleName}/actions/{$actionName}Action.class.php
}}}
So you could get rid of the separate folders for view, tpl etc per action
by having something like
{{{
%core.module_dir%/${moduleName}/{$actionName}/Action.class.php
}}}
for the action,
{{{
%core.module_dir%/${moduleName}/{$actionName}/validate.xml
}}}
for the validation xml and so on.
--
Ticket URL: <http://trac.agavi.org/ticket/668>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets