Documentation

MyController
in package

MyController Controller

This is a demo controller to demonstrate Framework usage.

Table of Contents

Methods

email()  : void
email Method
save()  : void
save Method
setCookie()  : void
setCookie Method
unsetCookie()  : void
unsetCookie Method
upload()  : void
upload Method

Methods

email()

email Method

public email() : void

This method handles sending an email.

Tags
throws
Exception

If email validation fails or if there's an issue sending the email.

save()

save Method

public save() : void

This method handles saving data.

Tags
throws
Exception

If validation fails or if there's an issue saving data.

setCookie()

setCookie Method

public setCookie() : void

This method sets a cookie with the provided name and value, and performs validation to ensure that both the cookie name and value are not empty.

Tags
throws
Exception

If validation fails or if there's an issue setting the cookie.

unsetCookie()

unsetCookie Method

public unsetCookie() : void

This method unsets a cookie with the provided name, and performs validation to ensure that the cookie name is not empty.

Tags
throws
Exception

If validation fails or if there's an issue unsetting the cookie.

upload()

upload Method

public upload() : void

This method handles file uploads.

Tags
throws
Exception

If there's an issue with file upload.


        
On this page

Search results