XF 2.3 Simple "Hello World" Route

frm

Well-known member
For the life of me, I cannot get Routes to work.

I've got them inserted in the DB and recognized/visible in the ACP/Routes.

They will just not fire (i.e., on /hello-world).

I hard query deleting the routes, etc., rebuilding the add on, but it just won't ever route, always leaving me with a "Page not found" error.

Could someone please demonstrate a simple "hello-world" route on install (I'm fairly certain I have that done as it installs and shows in the ACP) where (generally) it would say "Hello world!" (I wouldn't expect an accompanying template for it, just to get to a 'template error' page to know the route is firing to work from there).

I tried searching for Kier's scratch pad thingy as a last resort to try and see if that had a route in it, but I can't find the tutorial anymore.

If not a script to do it, a small open source/MIT add on that has some routes that I can try to learn from?

I'd appreciate it!
 
I tried searching for Kier's scratch pad thingy as a last resort to try and see if that had a route in it, but I can't find the tutorial anymore.

Video #2 talks about routes and controllers
 
  • Like
Reactions: frm

Video #2 talks about routes and controllers
Thanks for digging this up. It pushed me much further in development as I did the inner workings of it first, but just couldn't get to accessing what I want to eventually view (as opposed to loading up multiple global variables and calling them on Page nodes).

I've made a Hello World add on Resource from this to streamline the process.

 
Back
Top Bottom