Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Director:addRules question

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 702 Views
  • mmh
    Community Member
    24 Posts

    Director:addRules question Link to this post

    Hi Director-Pros,

    just one simple question. Is it possible to add custom rules in this way:

    Director::addRules(10, array(
       'my.xml' => 'MyController',
       'my_$Var.xml' => 'MyController'

    Something like

    Director::addRules(10, array(
       'my.xml' => 'MyController',
       'my/$Var.xml' => 'MyController'

    will not work for me. I really need it in the first way.
    I've tried but failed...

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.