Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Only variables should be passed by reference in ~/Code/Sites/purewater/web/app/mu-plugins/controller/src/Loader/Controller.php on line 46 #4

@christianmagill

Description

@christianmagill

I'm receiving the error with a basic test.

templates/page.blade.php

@extends('layouts.base')
@section('content')
  @while(have_posts()) @php(the_post())
  @include('partials.page-header')
  @include('partials.content-page')
  @endwhile
  {{$test}}
@endsection

controllers/page.php

<?php

namespace App;

use Sober\Controller\Controller;

class Page extends Controller
{
    /**
     * Protected methods will not be passed to the template
     */
    protected function hidden()
    {

    }

    /**
     * Return test data
     *
     * @return array
     */
    public function test()
    {
        return 'Testing';
    }
}

Everything else is setup via defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions