#1082: Tutorial small inconsistency
---------------------------------------------------+------------------------
 Reporter:  Luis M (Rendez) <l...@…>               |       Owner:  mikeseth
     Type:  defect                                 |      Status:  new     
 Priority:  normal                                 |   Milestone:  1.0.1   
Component:  documentation                          |     Version:  1.0.0   
 Severity:  normal                                 |    Keywords:          
Has_patch:  0                                      |  
---------------------------------------------------+------------------------
 '''URI:''' http://www.agavi.org/documentation/tutorial/step3/custom-
 validators.html

 I'm using 1.0.0, tutorial is based on this version if I'm not wrong. In
 the part of building the model, there's a mention to autoload.xml with
 some changes to adapt it through.

 <autoload
 
name="Posts_PostValidator">%core.module_dir%/Posts/lib/validator/PostValidator.class.php</autoload>
 The complete file should look like this:
 <?xml version="1.0" encoding="UTF-8"?>
 <ae:configurations
 xmlns="http://agavi.org/agavi/config/parts/autoload/1.0";
 xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0";>
   <ae:configuration>

 ''The complete file should look like this:''

     <autoload
 
name="BlogPostsBaseAction">%core.module_dir%/Posts/lib/action/BlogPostsBaseAction.class.php</autoload>
     <autoload
 
name="BlogPostsBaseModel">%core.module_dir%/Posts/lib/model/BlogPostsBaseModel.class.php</autoload>
     <autoload
 
name="BlogPostsBaseView">%core.module_dir%/Posts/lib/view/BlogPostsBaseView.class.php</autoload>
     <autoload
 
name="Posts_PostValidator">%core.module_dir%/Posts/lib/validator/PostValidator.class.php</autoload>

   </ae:configuration>
 </ae:configurations>

 autoload.xml will most likely look like this, at least from what agavi
 1.0.0 generated with project-wizard:

 <?xml version="1.0" encoding="UTF-8"?>
 <ae:configurations
 xmlns="http://agavi.org/agavi/config/parts/autoload/1.0";
 xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0";
 parent="%core.system_config_dir%/autoload.xml">
         <ae:configuration>

                 <autoload
 name="BlogBaseAction">%core.lib_dir%/action/BlogBaseAction.class.php</autoload>
                 <autoload
 name="BlogBaseModel">%core.lib_dir%/model/BlogBaseModel.class.php</autoload>
                 <autoload
 name="BlogBaseView">%core.lib_dir%/view/BlogBaseView.class.php</autoload>
                 <autoload
 
name="Posts_PostValidator">%core.module_dir%/Posts/lib/validator/PostValidator.class.php</autoload>

         </ae:configuration>
 </ae:configurations>


 Kind regards,

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