Welcome Guest, Not a member yet? Register   Sign In
View cell controllers in a folder
#4

(08-19-2020, 01:00 PM)jreklund Wrote: Hi, you need to show us some code, on how you try to load it. And information on how you named them. As case sensitivity are importent.

From the view:

PHP Code:
<?= view_cell('\App\Controllers\ViewCells\DialogSound::index'?>

app/Controllers/ViewCells/DialogSound.php (controller):

PHP Code:
namespace App\Controllers;

class 
DialogSound extends BaseController
{
    public function index()
    {
        $data['user'] = $this->datalib::$user;

        return view('viewCells/dialog_sound'$data);
    }


I tried changing the namespace to App\Controllers\ViewCells but then it wasn't the same as the BaseController.
Reply


Messages In This Thread
View cell controllers in a folder - by legon614 - 08-19-2020, 11:14 AM
RE: View cell controllers in a folder - by legon614 - 08-20-2020, 05:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB