Hi!
For me is not clear the idea of inheritance between page.
I create Page A and Page B. Both of them extends Page.
1. I define a function (function C) in Page Controller. Can I use this function in Page A and B Controller?
2. I define a function (function D) in Page A controller. Can I use This function in Page B controller?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I create Page A and Page B. Both of them extends Page.
1. I define a function (function C) in Page Controller. Can I use this function in Page A and B Controller?
yes, because both pages inheirt from page controller
2. I define a function (function D) in Page A controller. Can I use This function in Page B controller?
no, only in page a