sub-directory |
hello everyone and happy new year
I would need some help about this: in 'Views / automation' I have added the 'domotic_protocol' directory. when with this command: <? php echo base_url ('automation / domotic_protocol / bluetooth')?> "I recall the page I have a white error screen with the message: 404-not found / domotic_protocol but on the bar it says: http: // localhost / ci4_first / public / automation / domotic_protocol / bluetooth ----- this is in routes $ routes-> get ('index', 'Automation :: index'); $ routes-> get ('automation / (: any)', 'Automation :: show_automation / $ 1'); please tell me where the mistake is thanks
The directory structure under Views has nothing to do with the routes. If you want a route to automation/domotic_protocol you need to define a route for that.
Also, there’s no need to use big fonts like that. It’s just anoying.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |