PHP For Beginners, Ep 30 - Autoloading and Extraction

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 41

  • @rchow2008
    @rchow2008 9 місяців тому +3

    what I enjoy about your teaching are the various ways you refactor. I'm able to learn various ways to solve a problem and it teaches me different ways to understand code. Thank you.

  • @paulbrugger9610
    @paulbrugger9610 Рік тому +3

    In case anyone was as dumb as me, if you copy the files from laracast, be sure you heed his advice at 2:28 and add the -t public switch when you restart the php server, otherwise you will get a 'resource not found' error. Great series.

  • @andromilk2634
    @andromilk2634 18 днів тому

    Wow, I learned a lot from this episode, and it was also a hard one, especially for us working on XAMPP where we have to play in the config file to make all of this work. The only things I wish this video told us about, which are really important notions to be able to understand what is going on, would be the following : what exactly is the docroot and how are relative paths built in PHP. I had to take a pause on the side to go see this so I could understand/follow along.
    Anyway, great video and I feel like I have grown up from this.

  • @zacharywatkins6908
    @zacharywatkins6908 Рік тому +4

    I'm really glad you're doing this series - most of all because it will help devs get started with PHP. For me though, even after 9 years I still don't know all of the fundamentals and it's nice to pick the subjects you've covered that I don't know well enough.

    • @muffaddalnagpurwala9926
      @muffaddalnagpurwala9926 Рік тому

      This is so true. The last time I heard Jeffrey's voice was on Envato and Tuts+. Even After 9 years of experience I find this so useful. Thank you Jeffrey! 🙏

    • @belalehner3937
      @belalehner3937 Рік тому

      The question is , what we consider as the 'fundamental' knowledge of PHP. In this series it's not only about the PHP as a language, but about the using of OOP techniques and principles building blocks of a modern web app. I think this series is more than a beginners guide, it demands some advanced knowledge and deeper understanding of OOP too and this is because the real 'power' of PHP is the well designed OOP capability, which only can be useful in capable hands. I think, this remarks has to be added to this series for the sake of the audience.

  • @TitleZero-c5y
    @TitleZero-c5y Рік тому

    SIr many many thank you for this course, i'm very helpful from this course. i'm laravel developer. many thing was confusing in this framework, but now i have to clear it. thank you one more time from my heart.

  • @asheaven1st
    @asheaven1st Рік тому +3

    Those 'extract($array)' thing is really new to me.. Thank you for making this video

  • @whisperscribe
    @whisperscribe 5 місяців тому +1

    thats some next level teaching

  • @jeyosman1
    @jeyosman1 4 місяці тому

    I'm thrilled to be learning from you. Thank you for your step-by-step guidance. Your teaching style is exceptional. I just wanted to know which book do you recommand.

  • @sonoftroy8572
    @sonoftroy8572 7 місяців тому +1

    Hey Jeffery, thanks for this great content. I made sure to thumbs up all your videos. The one thing I'm sure would throw off a lot of beginners, is understating how you're able to think of using the PHP extract function. How would a beginner be able to filter through all the Google search results so they can find the PHP extract function? Beginners won't know the PHP extract function exists. I think part of your course should have taught what the thought process is when your trying to find the right PHP logic for your app. in additions to the great work you produced, this aspect would have added more value tremendously.

  • @Фанат-щ9ь
    @Фанат-щ9ь Рік тому

    Finally we'll start learn really handy things) my congrats to all members of this channel!

  • @DougLopes
    @DougLopes Рік тому

    Nice to see how to organize something like a framework but more procedural like i think... Its easier to understand controllers, views etc without dealing with inherance

  • @kimpoymari5497
    @kimpoymari5497 Рік тому +4

    how can I change the root directory using htaccess? if I upload it to a server it reads index.php in root file. Am I making sense kindly guide thank you!

  • @prianasaputra7583
    @prianasaputra7583 Місяць тому

    thanks

  • @NAABRecordsLtd
    @NAABRecordsLtd Рік тому

    thnx so much Jeffrey !!

  • @seddeknadhem5638
    @seddeknadhem5638 3 місяці тому

    At 12:54 instead of using require base_path function I used this:
    it's the same but as he taught us this was is better

    • @seddeknadhem5638
      @seddeknadhem5638 3 місяці тому

      For the banner of course you should provide the attributes array so the heading shows up correctly

  • @bulent2435
    @bulent2435 Рік тому +2

    Thank Jeffrey. I was a pleasure as always. I wish you moved ".view.php" part to view helper too.

  • @nadaalmustafa447
    @nadaalmustafa447 Рік тому +7

    We want PDO and oop in php pleaaaase

  • @SKTareen
    @SKTareen Рік тому

    That's outstanding

  • @BillieBonse
    @BillieBonse Рік тому

    Jeffrey builds laravel step by step)

  • @urbaindesign
    @urbaindesign Рік тому

    ​Lovely video

  • @arewa4uedu172
    @arewa4uedu172 Рік тому +1

    im working on window i create my public folder but i try to specify my root using -t and its not working it says "C:\xampp\htdocs\demo>-s localhost:80 -t public
    '-s' is not recognized as an internal or external command,
    operable program or batch file." pls what is going on with my command?

  • @detonationcruster
    @detonationcruster Рік тому +1

    Please explain in a video all the command line stuff for Windows people who have never used it. I don't know what I'm looking at when I see it - and it's everywhere. I use XAMPP, and just use the app to start/stop servers. This would be a huge help. I've been doing PHP since 2001, but I'm really stupid when it comes to anything command line in website development.

  • @Operaatoors
    @Operaatoors Рік тому

    Altough, is there a way to keep using view function inside view it self, but without explicitly forcing attributes over and over again?
    -
    +
    And still get heading into the banner.php ?

  • @marcoclipsff8449
    @marcoclipsff8449 3 місяці тому

    how about adding the classes in a models/ directory and the router.php in a routes/ directory

  • @paulhetherington3854
    @paulhetherington3854 Рік тому

    LAR' - This woman's area. Tribal - Vietnamese - XANADU

  • @Trucidare
    @Trucidare Рік тому +2

    At 18:30 you moved five files, but I think you may have edited the video to not move the functions file?

    • @Laracastsofficial
      @Laracastsofficial  Рік тому +2

      No. Weirdly enough, that was an editor bug. We’ll deal with it in the next episode.

  • @alalyrealestate1136
    @alalyrealestate1136 Рік тому

    Happy new Year .. Where are you ? waiting for you ?

    • @Laracastsofficial
      @Laracastsofficial  Рік тому +1

      We're back today! New episode on Tuesday - with a regular schedule after that.

    • @alalyrealestate1136
      @alalyrealestate1136 Рік тому

      @@Laracastsofficial 😀 I wish you the best

  • @farhanali-vb8id
    @farhanali-vb8id Рік тому

    how can I change include my js, CSS from the public folder to the header of my page????????

  • @ekramer1
    @ekramer1 6 місяців тому

    5:42: "now I won't have to remember what the name of the constant is." - but won't you still have to remember what the name of the function is? And the name of the function is the same as the name of the constant? So, wouldn't all this do is add a bit of complexity and change the BASE_PATH . [whatever] into base_path([whatever])? It's not even less characters, it's one more even, and on the other side so slower to add.

  • @socialoutcast5387
    @socialoutcast5387 Рік тому

    Hi jeffrey, It's been almost a week that you haven't uploaded any new video to the series please be consistent with this series because its the only source for me from which I'm learnin my programming concepts.
    Thank you for doing such great work.

  • @somegoofy
    @somegoofy Рік тому +1

    🤔 that ..... require base_path("Core/" . $class . '.php'); ....doesn't work ........ searching for solution
    Solution found: must be changed also =another require in public\index.php =if functions.php is really moved to Core than another require in that index.php =and require in controllers
    otes create.php

  • @Razor2k3
    @Razor2k3 Рік тому

    cant wo use something to generate the pages, not to have this awfull situation where we have to modify multiple pages?

  • @MewtwoStar
    @MewtwoStar 7 місяців тому +2

    when i am using php -S localhost:80 -t public, it is showing the error below.
    Failed to listen on localhost:80 (reason: An attempt was made to access a socket in a way forbidden by its access permissions)
    i am using wamp server
    what shall i do ?