Posts by Marcos Felipe • 36 points
4 posts
-
1
votes1
answer33
viewsA: Using Methodo within another Methodo with extends class
Your problem is quite simple to solve. There is a pseudo-variable in PHP called $this that represents the context of the object, with it you can access what your object represents, namely: methods,…
-
0
votes1
answer39
viewsA: How do I get the calendar to start on Monday?
You can catch the first day of the week with date("d/m/Y H:i:s", strtotime(date("Y")."W".date("W"))); (Don’t forget to define the date_default_timezone_set()).
-
0
votes2
answers479
viewsA: How to change status with AJAX?
If you are going to use jQuery, you do it the following way: $.ajax({ type: 'POST', data: { aprova: true, }, url: 'mudastatus.php', success: function(data){ alert('ok'); } }); But there are some…
-
1
votes2
answers1159
viewsA: Translate website automatically according to the country of the internet user
You can use the $idioma = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2); to recognize the language.