Welcome Guest, Not a member yet? Register   Sign In
sub-directory
#1

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
Reply
#2

(This post was last modified: 01-01-2021, 09:22 AM by includebeer.)

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! ***/
Reply
#3

tank's
sorry for the big fonts. google translator
Reply




Theme © iAndrew 2016 - Forum software by © MyBB