Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

Load Notifications Via Xml

Type: core

Class: Notif

Platform: 2v

Function: loadNotifsViaXml

Visibility: public

Parameter: loadNotifsViaXml($fileName)

Description:
Please refer to: loadNotifs class.
Parameters:
(required) - string - $fileName - The name of the file we want to load the notifications from (without extension), located at: /text/notifs/{language code}/ (actual file will be with php/xml extension).
Return:
array - The notifications from file.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
Let's say that we want to load a notification file, it must be located first in the designated directory mentioned above. The text that will be stored there must be in array named: $notifs.
How to call (example):
Code:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔