Posts by user2832131 • 41 points
3 posts
-
0
votes2
answers642
viewsA: Automatically fit DIV with CSS
As described in the comment, you need to add certain attributes to the container. It can be like this too: article { overflow-x: auto; max-width: 100%; }
-
0
votes1
answer142
viewsA: Problems with autoload
The backslash is missing before the "App\\Controller\\". $class = "\\App\\Controller\\".ucfirst($route['controller']);
phpanswered user2832131 41 -
4
votes2
answers191
viewsA: Is it possible to always write in the first line using PHP?
Yes, it’s possible, but there’s no specific command, if that’s what you mean. file_put_contents($filename, $data . file_get_contents($filename)); Don’t forget to put the line break: $data =…
phpanswered user2832131 41