Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Catalyst: Using Chained for URL Dispatching and Sane Method Organization

by stonecolddevin (Vicar)
on Oct 25, 2009 at 20:40 UTC ( #803175=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     # step one:
     # set up a base method to make sure your item exists, and
    ...
         }
    
     }
    
  2. or download this
     sub base : Chained('/') PathPart('item') CaptureArgs(1)
    
  3. or download this
     ## the next part is to link the end point to the chain
     ## thisis done by passing the name of the base chain method to Chaine
    +d for this method
    ...
         );
    
     }
    
  4. or download this
     sub blog : Chained('/') PathPart('blog') CaptureArgs(0) {
    
    ...
    
         }
     }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://803175]
help
Chatterbox?
Discipulus personae non gratae..
[Corion]: Your Mother: Hmm - I have the pmdev nodelet, which has some links, but I'm not sure what links/guides there are
[Corion]: pmdev wiki maybe?
[Discipulus]: uh neat karl!
[Your Mother]: Both good things to try, thank you!
[karlgoethebier]: Discipulus: see my scratchpad for <<>>...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-07-21 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (319 votes). Check out past polls.