1142

A special welcome to our newest member, KnoldTot.

Compose Reply

Trongate generated path seems off.

#1
6 Oct 2025, 3:46pm UTC
Monday 6th October 2025, at 3:46pm UTC
Status: Resolved
Hello,
Just created a brand new instance of the framework using the desktop app.
Also created a module called "home", a controller called "Home", and a view file called "home".
It works fine when the URL is "http://localhost/sbff/home"
So, I went into the config/config.php and I altered it as follows...

and you would thinks that when the URL is "http://localhost/sbff/"
it would go to the Home controller. But instead I get this...
ERROR: View file does not exist at: C:/wamp64/www/sbff/modules//views/home.php
Why? That path doesn't look right.
#2
6 Oct 2025, 8:33pm UTC
Monday 6th October 2025, at 8:33pm UTC
If your module folder is missing from the view file path, make sure you pass it through to $this->template() as $data['view_module']

Eg:

Winning Post!

The thread creator has indicated that this post solved the problem or provided the best insight.

Members who post winning responses can earn points for our leaderboard.

This post was liked by; Charles Luck
×