I have netbeans,xampp is running,database is ok.All functions running no problem,but this one,keep getting 404 error.Double checked the spelling and the code.Can not figure out the problem.
Model name is
BooksModel (plural), in that method controller you're calling
BookModel, (singular). Bye ;)
You might have left the compiler on/running or am I talking about the wrong version of netbeans.xamapp
For some reason,doesn not work,same error 404,i have changed to BooksModel,had missed 's'.I did getTitles same way as getAuthors. And getAuthors works,but getTitles not.What else could be the problem?
Try to remove the first line in the view page, from the screenshot it seems to be an empty line: there could be a BOM (UTF-8 signature) that can lead to problems with PHP.
For more information read:
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.