SkinnyMVC is a light-weight, easy to learn, "skinny" development framework for PHP that enables the developer to implement the MVC architectural pattern, while maintaining maximum flexibility and performance of the application.

class SkinnyActions

SkinnyAction is the parent class for all actions.

 

protected $authenticatedOnly = false;

If you want to make access to a module restricted to authorized users only, set this value to "true" in the module Actions class

public function setSkinnyUser(SkinnyUser $skinnyUser)

return: SkinnyUser

Sets the SkinnyUser for the current action/request.

The main controller automatically assigns this

public function getSkinnyUser()

return: SkinnyUser

Returns the current session (SkinnyUser)

public function authenticatedOnly()

return: boolean

Is this module restricted only to authenticated users?

public function redirect(string $module, string $action, array $request)

return: void

Redirects the browser to a new page (module and action)

public function call(string $module, string $action, array $request)

return: array

Makes a call to the specified module+action and returns back to the caller

public static function getRelativeRoot()

return: string

Returns the relative root directory of the project - useful, if installed in a subdir.


Powered by SkinnyMVC       |       SkinnyMVC License       |       Created by 49 Research