Existing installation with Blade - Can't display page content #4386
-
Hi there, I am new to statamic and found it to be a wonderful project. From what I read everywhere it should be easy to display the statamic content inside my blade views as well, e.g. {{ $title }}. Only if I do this:
it works. I already created a /home page in statamic. So my thought was that Statamic automagically wires the URLs to the correct page and injects the data into the view. Maybe I am wrong? Or there is something else missing yet? I am thankful for any hints! PS: I guess my question is: If I use standard laravel routes and controllers. Do I have to inject the data myself (within the controller or view) or is there maybe a better way for it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
It's only automatic when you use Statamic's routing. If you're rolling your own controllers and views, you have to provide the variables. |
Beta Was this translation helpful? Give feedback.
It's only automatic when you use Statamic's routing. If you're rolling your own controllers and views, you have to provide the variables.