Silverstripe Version:
latest
Question:
Just trying to get back into SS, it’s been a while so starting over slowly again… but if someone could point out what i did wrong when i tried to extend a member to add a field?
I did the following:
i added a file app/_config/config.yml with
SilverStripe\Security\Member:
extensions:
- MyMemberExtension
Created a new file in my app\src\extensions\MyMemberExtension.php
<?php
use SilverStripe\ORM\DataExtension;
class MyMemberExtension extends DataExtension
{
// define additional properties
private static $db = [
'MowerName' => 'Varchar'
];
}
Then did a /dev/build on my site, and now my site looks like it’s missing tags and only half there, and the admin screen is very screwy as well.
I followed Extensions – SilverStripe Documentation
If someone could point out what i’ve done wrong?
Thanks
Grant