Get up to 80 % extra points for free! More info:

Discussion – Lesson 2 - .htaccess, autoloader and the common controller

Back

 

Comments
Avatar
Dieter Achtelstetter:6/11/2019 15:22

It's a great tutorial and very well explained. However, every good tutorial I find has to be in the root folder. Unfortunately I can not run all of them parallel in a root folder. I know it can work in a subfolder, just couldn't find out yet where to put the variable for the subdirectory and how to modify the htaccess to make it work. It would be nice if you could explain.

 
Reply
6/11/2019 15:22
Avatar
Replies to Dieter Achtelstetter
David Capka Hartinger:6/11/2019 16:16

Hi Dieter, I'm glad you like the tutorial! You can solve you problem with subdomains easily, it's all explained in this tutorial - https://www.ict.social/…ration-xampp If you needed any help, just write a comment :)

Edited 6/11/2019 16:19
Reply
6/11/2019 16:16
You can walk through a storm and feel the wind but you know you are not the wind.
Avatar
Craig Kendall
Member
Avatar
Craig Kendall:1/16/2020 13:33

It would be nice if the line "We'll also create an abstract parent class for out application's controllers. Now, let's create a Controller.php file. Don't forget to add the <?php directive at the very beginning."

... read "We'll also create an abstract parent class for out application's controllers. Now, let's create a Controller.php file in the controller folder. Don't forget to add the <?php directive at the very beginning."

Tripped me up since it's specified on the RouterController­.php but not this one.

 
Reply
1/16/2020 13:33
To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

3 messages from 3 displayed.