Jump to:

23355 Posts in 17838 Topics by 2862 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: 686 Views
  • mmh
    Avatar
    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...

    686 Views
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.