Eathorne2 / PHP-Student-management

PHP student management tutorial
GNU General Public License v3.0
39 stars 22 forks source link

Issue on video 16: using models #1

Open ZwelakheFakudze opened 2 years ago

ZwelakheFakudze commented 2 years ago

Good day Eathorne,

Im Zwelakhe a big fan of you, mainly because I just started learning programming and I am following you. I am watching your youtube videos on PHP-Student-Management project. I am new to programming and as I was trying to copy (code) what you do step by step I met a challenge: I am now on video number 16 about Using Models, I have been trying to run the code but its crushing. I think there is an error on my side, p issue lease help me fix it.

This is it: Fatal error: Uncaught Error: Call to a member function findAll() on boolean in C:\xampp\htdocs\school\private\controllers\Home.php:20 Stack trace: #0 C:\xampp\htdocs\school\private\core\app.php(37): Home->index() #1 C:\xampp\htdocs\school\public\index.php(6): App->__construct() #2 {main} thrown in C:\xampp\htdocs\school\private\controllers\Home.php on line 20

Eathorne2 commented 2 years ago

Hi, am glad you found my videos useful. this error means the $user variable on line 18 is not valid. this means the load_model function did not find the user class or something. check the load_model function to make sure its written correctly or that the user class is present in the right folder. whatever the case, the problem is in the load_model function

On Wed, Jun 15, 2022 at 11:41 PM Zwelakhe Fakudze @.***> wrote:

Good day Eathorne,

Im Zwelakhe a big fan of you, mainly because I just started learning programming and I am following you. I am watching your youtube videos on PHP-Student-Management project. I am new to programming and as I was trying to copy (code) what you do step by step I met a challenge: I am now on video number 16 about Using Models, I have been trying to run the code but its crushing. I think there is an error on my side, p [image: issue] https://user-images.githubusercontent.com/98763748/173934672-a0d10631-fed5-45ad-899f-dbfef4ce4801.png lease help me fix it.

This is it: Fatal error: Uncaught Error: Call to a member function findAll() on boolean in C:\xampp\htdocs\school\private\controllers\Home.php:20 Stack trace: #0 C:\xampp\htdocs\school\private\core\app.php(37): Home->index()

1 https://github.com/Eathorne2/PHP-Student-management/issues/1

C:\xampp\htdocs\school\public\index.php(6): App->__construct() #2 {main} thrown in C:\xampp\htdocs\school\private\controllers\Home.php on line 20

— Reply to this email directly, view it on GitHub https://github.com/Eathorne2/PHP-Student-management/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUEFKHIXCZPDG5MXZBDENLVPJEXXANCNFSM5Y4XQPVQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ZwelakheFakudze commented 2 years ago

Hello sir, thank you so much, my problem is fixed. Many thanks to you. Your videos are really useful. I have been wanting to be a programmer for the past few years and I couldnt find someone so good at explain his code like you. Even if I know a little but I can tell I have found the best teacher in your videos and I would be an good at it if I keep up. I am from Eswatini, Africa. And hopefully I can have a lifeline out of programming.

Eathorne2 commented 2 years ago

you're most welcome and good to know your problem is fixed. it seems you're just a neighbor since i live in zambia. good luck to you and all the best in your programming journey

On Thu, Jun 16, 2022 at 6:47 PM Zwelakhe Fakudze @.***> wrote:

Hello sir, thank you so much, my problem is fixed. Many thanks to you. Your videos are really useful. I have been wanting to be a programmer for the past few years and I couldnt find someone so good at explain his code like you. Even if I know a little but I can tell I have found the best teacher in your videos and I would be an good at it if I keep up. I am from Eswatini, Africa. And hopefully I can have a lifeline out of programming.

— Reply to this email directly, view it on GitHub https://github.com/Eathorne2/PHP-Student-management/issues/1#issuecomment-1157903599, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUEFKGRA7BRMMJHE6EGO23VPNLCDANCNFSM5Y4XQPVQ . You are receiving this because you commented.Message ID: @.***>