Mo

And a fairly basic method:

  1. public function getReportLink(string $class)
  2. {
  3. if (!class_exists($class)) {
  4. return "";
  5. }
  6.  
  7. $link = $class::singleton()->Link();
  8. $link .= '?filters[ContractID]=1';
  9.  
  10. return $link;
  11. }
Mo

Currently I have: $getReportLink('App\Report\RankingReport')

Mo

If I want to pass a classname as a method argument from inside a template, what format should I use?

feejin

I think we want it on other peoples 404 pages. We can just edit other peoples websites yes?

andante

> “You want BigFork” ~ Contributer to SilverStripe Core @andante

andante

you are welcome to quote me on your website