• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sub Directory on Controller

#10
Hi everyone,

I am facing the same problem but with no luck.

According to CI4 documentation found here: https://codeigniter4.github.io/userguide...irectories

I should simply create subfolder with my controller in it.

This is my controller:

Code:
<?php
namespace App\Controllers\dashboard;

use App\Controllers\BaseController;

class Dashboard extends BaseController
{
    public function index() {
        $data['page_title'] = 'Dashboard';
        echo view('dash', $data);
    }
}

access url is: myenv.dev.local/dashboard/dashboard/index

PS I have an apache virtualhost pointing to public/ folder as said in the documentation.

Am I missing something?

Thanks to all in advance!
[Image: https://vulndetect.org/assets/uploads/fi...docker.ico]

Andy Biancoblu 

Quote:Once you have eliminated the impossible, whatever remains, however improbable, must be the truth.
Reply


Messages In This Thread
Sub Directory on Controller - by finhawkman - 04-05-2019, 09:06 PM
RE: Sub Directory on Controller - by finhawkman - 04-06-2019, 12:15 AM
RE: Sub Directory on Controller - by pkMyt1 - 04-10-2019, 09:26 AM
RE: Sub Directory on Controller - by michael.j - 05-02-2019, 01:44 AM
RE: Sub Directory on Controller - by finhawkman - 05-02-2019, 06:49 AM
RE: Sub Directory on Controller - by michael.j - 05-03-2019, 01:14 AM
RE: Sub Directory on Controller - by InsiteFX - 05-03-2019, 03:20 AM
RE: Sub Directory on Controller - by finhawkman - 05-03-2019, 11:47 PM
RE: Sub Directory on Controller - by InsiteFX - 05-04-2019, 04:37 AM
RE: Sub Directory on Controller - by andybiancoblu - 09-24-2019, 07:41 AM
RE: Sub Directory on Controller - by MGatner - 09-24-2019, 08:34 AM
RE: Sub Directory on Controller - by InsiteFX - 09-25-2019, 02:47 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.