Skip to content
#

slim

Here are 495 public repositories matching this topic...

igorsantos07
igorsantos07 commented Apr 15, 2020

Up to v3 there were a couple of easy ways to write out responses to a path:

  • simply return a string from the function: $app->get('/', fn() => 'hello world');
  • write to the response: $app->get('/', fn($req, $res) => $res->write('hello world'));
  • write JSON with $res->withJson() (this one is completely gone and we've got to default to json_encode() calls)

The first met

wilkie
wilkie commented May 13, 2019

Description

When writing out a tag with a variable class attribute, like follows (a simplified case):

- some_variable = "my-class"
ul class=some_variable

It generates the correct HTML, but produces the following warning:

page.slim:2: warning: possibly useless use of a variable in void context

It also produces such a warning (yet correct output) even if you d

YQyangqian
YQyangqian commented Dec 3, 2018

when i follow the recommended consul-upgrade steps, i have the following doubt:

At the beginning, i have 3 consul server(A/B/C) with one in bootstrap mode(A).

when i run 'consul leave' command in the server with bootstrap-mode(A), the remaining 2 servers will elect new leader(B). no error here.
when i restart A with bootstrap mode, there comes the error.
should i remove the bootstrap opti

Improve this page

Add a description, image, and links to the slim topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the slim topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.