Welcome Guest, Not a member yet? Register   Sign In
conflict with method name
#3

(02-23-2021, 09:39 PM)iRedds Wrote: "You either take off the cross or put on your panties."(с)

From a framework perspective, you are defining the same URL mask.
Choose the right way.
PHP Code:
$routes->add('{locale}/blog''Main::blog');
// or
$routes->add('it/blog''It/Main::blog');
$routes->add('en/blog''En/Main::blog'); 

Hi @iRedds. Thank for reply.

 if I use your route, for example this:
PHP Code:
$routes->add('it/blog''It/Main::blog');
$routes->add('en/blog''En/Main::blog'); 

the page is correct but the main.php is not traslate in English.
Please, watch my screen: https://demo.samuelesantoni.com/host/route-blog.png

Thanks for help me.
Reply


Messages In This Thread
conflict with method name - by eleumas - 02-23-2021, 02:20 PM
RE: conflict with method name - by iRedds - 02-23-2021, 09:39 PM
RE: conflict with method name - by eleumas - 02-24-2021, 03:35 AM
RE: conflict with method name - by iRedds - 02-24-2021, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB