Skip to content

Special Functions

Using special functions you can control views, redirects and assets in below mentioned methods.

To view a html or php file. All the view file locations are given relative to the Views folder.

eg:- /index.html or index.html ( for a file as index.html inside the views folder )

view("{view-location}");

To redirect a web page insert

redirect("{full-url}");

here you should insert the full url of the web page.

To load the assets like images, documents and videos for public view insert

asset("{relative-url-from-public-folder}");

here you should insert the relative url of the files inside the public folder skiping ../public/ part of the relative url.

Return the url of a specific route in the website.

route("{route-name-or-uri}");

Return the $_REQUEST values of the website.

request("{request-name}");

Return the $_ENV values of the website inside the .env file.

config("{config-name}");

Return the $_GET request values of the website.

get("{get-request-name}");

Return the $_POST request values of the website.

post("{post-request-name}");

Return the $_COOKIE values of the website.

cookie("{cookie-name}");

Return the $_FILES values of the website.

files("{file-name}");

Return the $_SESSION values of the website stored in the web server.

session("{session-name}");