phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Jquery_.php
Go to the documentation of this file.
1<?php
3
4use Symfony\Component\HttpFoundation\Response;
5use Symfony\Component\HttpFoundation\Request;
6
7abstract class Jquery_ extends JsUtils {
8 protected $container;
9
16 public function renderView($viewName,$parameters=[]){
17 $twig=$this->container->get("twig");
18 $this->compile($parameters);
19 return new Response($twig->render($viewName, $parameters));
20 }
21
22 public function generateUrl($path){
23 $request=Request::createFromGlobals();
24 return $request->getBaseUrl().$path;
25 }
26}
compile(&$view=NULL, $view_var='script_foot', $script_tags=TRUE)
gather together all script needing to be output
Definition JsUtils.php:318
renderView($viewName, $parameters=[])
Performs jQuery compilation and displays a view.
Definition Jquery_.php:16