PHP For Beginners, Ep 31 - Namespacing: What, Why, How

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

No day passes without me on this channel.❤

batsmanist
Автор

You're teaching as teaching's supposed to be done. good job

BecomeAWebDev
Автор

Now I know the reason why Laravel uses the same namespace names as the direcories for the files. As I take a look at the spl_autoload_register function at 09:47 it is clear, that the dir name after the string replace is identical with the namespace. Great, I didn't know that, but I have
got it.

belalehner
Автор

Oki, to view error messages file indexphp in the beginning needs two rows: error_reporting(E_ALL); and ini_set('display_errors', 'on');
Searching why after changes in video code stopped showing one note...
Problem found .... in file functions.php is used class Response, but if we write namespace Core; in the beginning of functions.php then follows other problems
So solution - in beginning of function.php put - use Core\Response;

somegoofy
Автор

also namespaces help to indentifie wich class that you gonna use if you have multiple classes with same name

badrjeddab
Автор

At 9:45 he skips over the Core/functions.php file and does not add in use Core/Response at the top. Episode 31 repo is missing it also. So SHOWING a note does not work. You can grab this file from episode 32 and it will work.... Great series, though.

paulbrugger
Автор

Great, thank you as always for awesome content you share for free.
Little request: Could we please have some WYSIWYG editor on Laracasts Forums, to write our posts?
Because, otherwise, it is hard to remember some tricks, like this: """, to place source code in a post.
Provide us with some automatic format buttons, please.

RegulusVi
Автор

omg, its just 12 min, but it took more than one hour for me because of errors 😄but after all errors, I clearly understand concept of namespacing

webpulseify
Автор

Ah yes, back before all of my music was on streaming Oh wait, that wasn't a time period I can remember due to being too young to even listen to my own music on a computer of my own lol.

ekramer
Автор

Thank you for expand my knowledge.
I heard that in America and most Europeans country php isn't popular programming language, how many projects or job offers on php can be meet in your country?
Please sorry for my poor English.

dunswwo
Автор

can you help me with control structure of laravel

syedjackson
Автор

Wonder why I can’t watch ads in this channel

MahdiAmeri