getherbert / herbert

The WordPress Plugin Framework:
http://getherbert.com/
634 stars 95 forks source link

View in admin section not showing #154

Closed sajadghawami closed 2 years ago

sajadghawami commented 7 years ago

Hello,

so i got this in my controller:

public function showCreate()
    {
        return view('@MyPlugin/showCreate.twig');
    }

this does show me the view inside the Wordpress-Backend.

but if i do this:

  public function doCreate(Http $http){
        $something = new Something();

        $something->name = $http->get('name');

        $something->save();

        $message = "Successfully saved the name";

        return view('@MyPlugin/showMessage.twig', [
            'message' => $message
        ]);

    }

it ll show me a seperate page with the view! So its not inside my WordPress-Backend.

How come?

Thanks!