PHP code example of cortezvini97 / symfony-orion-engine-bundle
1. Go to this page and download the library: Download cortezvini97/symfony-orion-engine-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cortezvini97 / symfony-orion-engine-bundle example snippets
namespace App\Controller;
use Orion\OrionEngine\Controllers\RenderOrionView;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class AppController extends RenderOrionView
{
#[Route('/app', name: 'home')]
public function home(): Response{
$a = 1;
$b = 2;
return $this->view("index",[
"a" =>$a,
"b" =>$b
]);
}
}