Other functions calling

You can call any function in framework or library in framework by use directive:

Syntax 1

@'FunctionName'('Arguments')

Example

# Use echo function
@echo("hi");

Syntax 2

@'FunctionName'()

Example

1- Define a new function

function ahmedSetLanguageToEnglish(){
    Language::set("en");
}

2- Use function

Syntax 3

Example

1- Define a new function

2- Use function

Notes

Functions for Directives start with ahmed

This directive can't be use returned data

Solution: Use Syntax 3

Last updated