sub-directory - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: sub-directory (/showthread.php?tid=78310) |
sub-directory - chiabgigi - 12-31-2020 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 RE: sub-directory - includebeer - 01-01-2021 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. RE: sub-directory - chiabgigi - 01-01-2021 tank's sorry for the big fonts. google translator |