#1246: project created via agavi project wizard has multiple web context 
exception
templates, but only one is used
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  impl 
     Type:  defect     |      Status:  new  
 Priority:  normal     |   Milestone:  1.0.3
Component:  build      |     Version:  1.0.2
 Severity:  normal     |    Keywords:       
Has_patch:  0          |  
-----------------------+----------------------------------------------------
 if you create a projekt via the agavi project wizard, you have multiple
 exception templates set for web production environment

 app/config/settings.xml

 {{{
         <ae:configuration environment="production.*">
                 <exception_templates>
                         <!-- a different exception template for production
 -->
                         <!-- it really doesn't do much -->
 
<exception_template>%core.template_dir%/exceptions/_default.php</exception_template>
                         <!-- for the web, we want one that returns a 500
 status -->
                         <exception_template
 context="web">%core.template_dir%/exceptions/web.php</exception_template>
                 </exception_templates>
         </ae:configuration>
 }}}

 app/config/output_types.xml

 {{{
         <ae:configuration environment="production.*">

                 <output_types default="html">

                         <!-- use a different exception template in
 production envs -->
                         <!-- others are defined in settings.xml -->
                         <output_type name="html"
 exception_template="%core.template_dir%/exceptions/web-html.php" />

                 </output_types>

         </ae:configuration>
 }}}


 <exception_template
 context="web">%core.template_dir%/exceptions/web.php</exception_template>
 is nerver used

-- 
Ticket URL: <http://trac.agavi.org/ticket/1246>
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