mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-30 08:01:07 -05:00
* Typed view model classes * Add ability to provide a typed view model class to a controller * Use `::class` instead of string for referring to classes * Examplified with `stats` and `javascript` controllers / views (more to do) * Also useful for extensions (my usecase today), which did not have the ability to define own view model attributes before. * Typo
4 lines
123 B
PHTML
4 lines
123 B
PHTML
<?php
|
|
/** @var FreshRSS_ViewJavascript $this */
|
|
echo json_encode(array('salt1' => $this->salt1, 'nonce' => $this->nonce));
|