D
D
Dmitry Shvedchenko2014-11-14 22:14:15
Laravel
Dmitry Shvedchenko, 2014-11-14 22:14:15

How to connect WP functions in Laravel?

Can you please tell me if it is possible to include WP functions in a Laravel project? The project structure is as follows:
The WP installation is located at the root, the Laravel project is located in a separate folder at the root. I would like to include functions in the Laravel template:
<?php require( '../wp-load.php' ); ?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Is it possible? And if so, how to implement?
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Sydorenko, 2014-11-14
@kbu

Here is something about crossing a hedgehog and a snake grossi.io/2014/working-with-laravel-4-and-wordpres... and here plugins 2 https://wordpress.org/plugins/tags/laravel but the question is why ?? what is in laravel, what is missing in wordpress? and vice versa?

S
Sergey Gladkovskiy, 2014-11-14
@SMGladkovskiy

Try adding Blade constructs where you pass WP functions and call in the template...

V
Vladislav Balabanovich, 2014-11-15
@vladbesson

There is a framework for WP - Themosis, it looks like it is made on laravel, maybe it is - framework.themosis.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question