Welcome Guest, Not a member yet? Register   Sign In
trouble with the forum
#8

(This post was last modified: 10-16-2020, 10:48 PM by richb201.)

(10-16-2020, 03:24 PM)InsiteFX Wrote: You can try something like this not tested and I am not sure if it will work on the index method.

PHP Code:
$routes->get('/(:num)''Home::index/$1');
$routes->get('/''Home::index'); 
Thx. Where do I put such a thing? I tried dropping it in the top of index.php


$routes->get('/(:num)', 'Home::index/$1');

But $routes is not found, so I guess I need to put it after invoking the URL helper?

In looking at the docs I see "example.com/index.php/news/article/my_article".

So in my case localhost/index.php/1  
So I guess I am missing the method. Perhaps if I did it this way:
localhost/index.php/logo/1  and created a logo class? 

But where would I put the logo.php function? Perhaps I need to create a logo.php file with two functions

1{} and 2{}  ??
I sure am confused!
 
proof that an old dog can learn new tricks
Reply


Messages In This Thread
trouble with the forum - by richb201 - 10-15-2020, 12:19 PM
RE: trouble with the forum - by InsiteFX - 10-15-2020, 02:19 PM
RE: trouble with the forum - by richb201 - 10-15-2020, 02:20 PM
RE: trouble with the forum - by kelapamuda - 10-16-2020, 07:36 PM
RE: trouble with the forum - by InsiteFX - 10-16-2020, 01:22 PM
RE: trouble with the forum - by richb201 - 10-16-2020, 02:16 PM
RE: trouble with the forum - by InsiteFX - 10-16-2020, 03:24 PM
RE: trouble with the forum - by richb201 - 10-16-2020, 10:05 PM
RE: trouble with the forum - by InsiteFX - 10-17-2020, 04:16 AM
RE: trouble with the forum - by richb201 - 10-17-2020, 06:22 AM
RE: trouble with the forum - by InsiteFX - 10-17-2020, 11:05 AM
RE: trouble with the forum - by richb201 - 10-21-2020, 05:24 PM
RE: trouble with the forum - by InsiteFX - 10-22-2020, 06:34 AM
RE: trouble with the forum - by includebeer - 10-22-2020, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB