[Catalyst] How to trail the .html files in my control
    Brandon Black 
    blblack at gmail.com
       
    Fri Feb 17 18:23:56 CET 2006
    
    
  
On 2/17/06, Vidya Sagar <vsagarkola at gmail.com> wrote:
> let me explain  in detailed
>
>  here is one of  my  template file  i have written like this
>
>  <table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
>
>  <a href="[%c.request.uri_base%]/testimonials/list.html"
> class="sm2">Testimonials</a> | 
>  <a href="[%c.request.uri_base%]/page/terms_of_use.html"
> class="sm2">Terms & Conditions</a> | 
>  <a href="[%c.request.uri_base%]/page/privacy.html"
> class="sm2">Privacy Policy</a>
>  </td></tr>
>  </table>
>
>
>
>  above frist link  testimonial is my class and list is my method
>
>  if i am giving   [%c.request.uri_base%]/testimonials/list
> it is wroking
>
>  but if i am giving
> [%c.request.uri_base%]/testimonials/list.html  it's not
> wroking
>
>  because  my class is  testimonials  and method is list
>
>
>  so i hope every body understand my problem
So can you just remove the ".html" from the Template?  Either that, or
define your methods as:
sub list : Path('list.html') {
    ....
}
-- Brandon
-- Brandon
    
    
More information about the Catalyst
mailing list