21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 158 Views |
-
SS3 - Requirements - Custom frontend methods...

31 October 2012 at 9:24pm
I would like to add some custom methods to Requirements for use in templates without hacking into the original Requirements.php source.
For example:
<% require mymethod(...) %>
It is easy enough to extend the Requirements backend but not so much the frontend. Any help is much appreciated.
-
Re: SS3 - Requirements - Custom frontend methods...

1 November 2012 at 2:14am
The best solution I came up with was to rename Requirements to Requirements_Frontend and call my custom frontend class Requirements and have it extend Requirements_Frontend. This way only a minimal code change is required in the original source.
| 158 Views | ||
|
Page:
1
|
Go to Top |

