#1069: Template filename resolution problem
--------------------+-------------------------------------------------------
 Reporter:  graste  |       Owner:  david               
     Type:  defect  |      Status:  new                 
 Priority:  normal  |   Milestone:  1.0.1               
Component:  filter  |     Version:  1.0.0               
 Severity:  normal  |    Keywords:  action view template
Has_patch:  0       |  
--------------------+-------------------------------------------------------
 As I was asked to act as an informant, here's the problem:

 Action:
 {{{
 return array('Default','Error404.Success'));
 }}}

 View:
 {{{
 Default_Error404_SuccessView in module "Default" is found as expected.
 }}}

 Error:
 {{{
  Template "Error404.Success" could not be found. Paths tried:
  Default/impl//de_DE/Error404.Success.php
  Default/impl//de/Error404.Success.php
  Default/impl//${locale}/Error404.Success.php
  Default/impl//Error404.Success.de_DE.php
  Default/impl//Error404.Success.de.php
  Default/impl//Error404.Success.${locale}.php
  Default/impl//Error404.Success.php
  Default/impl//Error404.Success.php
  Default/impl//Error404.Success.php
 }}}

 Why doesn't Agavi recognize the "." as a directory separator and uses "/"
 to get the correct template?

 The example above uses the custom filesystem layout from
 [http://trac.agavi.org/ticket/668 ticket 668], but the behaviour is there
 even for the default layout and older versions of Agavi. Is this intended
 behaviour or a defect?

 Workaround:
 Setting the template manually in the found view.

-- 
Ticket URL: <http://trac.agavi.org/ticket/1069>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to