1

Your controller looks ok, though I would clean it up a bit and use more expressive variable names to reduce the surface area for bugs: $templateVariables = [ 'status' => true, 'message' => 'Sucess' ]; return $this->renderTemplate( 'craft-handle/test.twig', $templateVariables ); Now you will have access to the variables status and ...


Only top voted, non community-wiki answers of a minimum length are eligible