Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Extending Page Naming Convention

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: 607 Views
  • spankmaster79
    Community Member
    46 Posts

    Extending Page Naming Convention Link to this post


    this might be a simple question.

    I want to know if all Pages that extend Page have to be named Page at the end, like HomePAGE, ContentPAGE or DistributionPAGE. Or can I name them Home, Content and Distribution.

    I run into Bad class to singleton errors calling the admin with index.php/admin. Using .htaccess and only /admin works. I really don't get the difference and it's kind of confusing.


  • swaiba
    Forum Moderator
    1788 Posts

    Re: Extending Page Naming Convention Link to this post

    As far as I know you can name them whatever you like, but it is good practice to name things in a was that reminds you what the class is.

    Regarding "admin" vs "index.php/admin" the index.php with silverstripe simulates having mod_rewrite - if you can actually have mod_rewrite (that is sounds like you have because it works without index.php) then you should delete it from your installation.

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.