0
hello I’m making a system with mvc structure, this is the folder structure:
MVC
controller
home.php
core
core.php
public
css
cssFiles.css
views
home.php
.htaccess
index.php
Well the code works like this, first index.php creates a core object (which manages the url), and calls the controler/home.php. home.php renders the view/home.php, but the images, css and js. No way to fix this is found?
"but images, css and js are not found" just put the correct path. By the structure you drew, for example in "home.php" to load the css need the path
"../public/css/cssFiles.css"
and so on. Put the page code to make it easier, and tbm where are the images? You have this question that explains this: https://answall.com/a/162063/57220– Ricardo Pontual
I’ve done this test and nothing.
– edinho