Is it possible to get custom routing from the modules rather than having it all bunched up in custom_routing.php.
Example: modules\welcome\welcome_routing.php
So we can do something like this in the custom_routing.php
Could make that a little bit better but you get the idea, I done a simple include to test and obviously the include gets included but not the defined $routes.
Probably missing something silly but maybe it's the way routes are handled ?
Custom Routing : Include Custom Routes
5 years ago
5 years ago
#1
5 years ago
#2
Hello,
I would think that you would have to find a way to add to the $routes variable in the config/custom_routes file. $routes is then set in the CUSTOM_ROUTES variable passed to the get_segments file.
This CUSTOM_ROUTES is loaded at runtime. Not sure if what you want is possible.
I would think that you would have to find a way to add to the $routes variable in the config/custom_routes file. $routes is then set in the CUSTOM_ROUTES variable passed to the get_segments file.
This CUSTOM_ROUTES is loaded at runtime. Not sure if what you want is possible.
5 years ago
#3
One day this may just happen.
'thankyou' => 'paypal/thankyou'
'common-questions' => 'webpages/common_questions'
custom_routing is happy.
'thankyou' => 'paypal/thankyou'
'common-questions' => 'webpages/common_questions'
custom_routing is happy.
5 years ago
#4
spot on DC, the answer is no.
4 years ago
#5
Sorry for the late reply. Yeah, a simple yes or no whith a why is great thank you, thought maybe I was just missing a trick or two.
At the same time it's doable though, when I next have some free time I wouldn't mind having a little bash at this.
[ Can consider this closed or resolved now. ]
At the same time it's doable though, when I next have some free time I wouldn't mind having a little bash at this.
[ Can consider this closed or resolved now. ]
4 years ago
#6
To close this could you please select the best answer and click the star in that thread.
Thanks,
Dan
Thanks,
Dan