ControllerRecipeRecipe
extends Controller
in package
ControllerRecipeRecipe
The controller is responsible for the recipe pages.
Table of Contents
Methods
- __get() : object
- A magic method for referring to objects.
- add() : void
- Processing get and post requests on the recipe add page.
- index() : void
- Processing get and post requests on the recipes page.
- show() : void
- Processing get and post requests on the recipe page.
Methods
__get()
A magic method for referring to objects.
public
__get(string $property) : object
Made for more convenient access to objects from the controller, as well as for more convenient replacement of objects, if necessary, so that you do not have to change all calls to objects in the entire code.
Parameters
- $property : string
Return values
objectadd()
Processing get and post requests on the recipe add page.
public
add([array<string|int, mixed> $data = [] ]) : void
Parameters
- $data : array<string|int, mixed> = []
index()
Processing get and post requests on the recipes page.
public
index([array<string|int, mixed> $data = [] ]) : void
Parameters
- $data : array<string|int, mixed> = []
show()
Processing get and post requests on the recipe page.
public
show(mixed $query_vars) : void
Parameters
- $query_vars : mixed