Closed sajadghawami closed 2 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!
Hello,
so i got this in my controller:
this does show me the view inside the Wordpress-Backend.
but if i do this:
it ll show me a seperate page with the view! So its not inside my WordPress-Backend.
How come?
Thanks!