Комментарии:
Awesome🎉
Ответитьthank you!
Ответитьbravo, very well explained.... you should be teaching it, keep up the good work and thanks a lot for the effort
ОтветитьThis is by far the best PHP course. Thanks!
ОтветитьHonestly by making this course everyone who is gonna watch it will make it to the pro. There are many many courses for money but all they explain is just basic knowledge and 4 fundamental concepts of OOP. I have never known about autoloading for example and so much more. Thank you GIO. May GOD BLESS YOU.
ОтветитьI have been programming for 30 years and got throw onto a PHP project with no prior experience in the language. These are probably the best programming tutorials I have seen. Very fast paced and all the right information.
ОтветитьShould I write exceptions in the whole program?
ОтветитьHi Gio,
Sorry to trouble you, please.
May I ask, how do you use the Static Exceptions in try/catch blocks?
I have a Database Class, say,
In the Constructor, I have this:
try
{
$this->pdo = new PDO (......);
} catch (DatabaseException $e)
{
????
}
In my DatabaseException Class, I have:
Public static function ConnectionFailureException() which returns new static('.....');
Pure gold, take a love ❤
ОтветитьThank you Once Again Gio
ОтветитьNice
ОтветитьBro, this is the best and detail explanation on PHP exceptions. Now i know i could throw my own custom exceptions for database access errors. Only thing is my old complain - too fast. But its ok, i repeat the portion in slow speed.
ОтветитьThanks
ОтветитьAll instructors who present courses on Udemy and Coursera ...... ,should learn from you how to explain all the things and details( not just the basic stuff) in a simple and accurate way.
ОтветитьThis is so for the most detailed tutorial on Exception I have come across. Thanks a million
ОтветитьYour work is careful crafted.
ОтветитьVery informative very enriching very helpful, thanks for this awesome tutorial!
ОтветитьGio is the ultimate argument against the bearded ones who criticize the use of tutorials for learning.
I'm waiting for the Laravel tutorial as a Christmas present.
thanks for the time and effort you put into making this remarkable content!
ОтветитьI made the same as you: Try/Catch blocks with my custom exception class who is an extension of the generic exception class, but it's not working
i received an global errorhandler message instead of the exception of my custom class... i dont get how it should work...
First of all thank you so much for everything.
I just have a question regarding the last part of the video where you used static methods, I just wanna know the reason behind using late static binding in the return statements ( return new static('Missing billing info'); ), is it because maybe we will use another class that extends the InvoiceException class, or there is another reason for that ? new self would also be fine here right ?
good channel, talks a bit slow though…
ОтветитьThank you.
ОтветитьI hit the thumbs up before watching, thank you bro
Ответитьthats great but pleassse talk slower
ОтветитьGreat lesson. First exposure to this kind of error handling. I certainly need to explore it more... later. I need to move on, want to get to the end of section 2. Thanks a lot Gio
ОтветитьAwesome content! very verbose and thorough
ОтветитьGreat content, it's awesome
Ответить1. Could you remind me why you prefix Throwable or Exception with a backslash? I know you mentioned this in a previous video. Thanks!
2. If someone misses a space between `Throwable` and `$e`, will that cause an issue? (Noticed it in an existing file - VSCode with both PHP Code Sniffer and PHP CS Fixer doesn't seem to be complaining).
Subscribed ❣️
ОтветитьNice one Gio 👍
ОтветитьProgram: "throws an error"
Gio: "as you see, everything is working"
Great video, thanks for your hard work <3
Great video, thanks Gio
ОтветитьWhat IDE are you using ?
ОтветитьHow do you add the method in phpstorm?
ОтветитьGreeeeeat tutorial! Thank you so much - exactly what I was looking for :)
Ответитьc'mon people..... 2.524 visits and only 144 likes? what's wrong with you guys....hit that damn thumbs up
ОтветитьI can confirm, this channel is pure gold
ОтветитьWhat editor are you using?
ОтветитьThanks
ОтветитьWow. Absolutely beautiful !
Thank you for all the hard work you put into this, it shows
Thank you sooooo much.... Really really helpful and awesome! looking forward for more from you.
ОтветитьThanks for the video. If I have my whole application code inside try/catch block with Throable, is there any reason to use the set_error_handler and/or set_exception_handler ?
ОтветитьHonestly, this channel is pure gold 👌
ОтветитьSet an exception handler:
set_exception_handler(function (\Throwable $e){
var_dump($e->getMessage());
});
echo array_rand([], 1);
but it still shows:
Warning: array_rand(): Array is empty in C:\Users\Dell\Desktop\forks\quantum-php-project\public\index.php on line 22
Awesome, helped me better understand exceptions when using Laravel, thanks bro, keep it up.
ОтветитьCool music and effects 👌
Ответить