phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Jquery_.php
Go to the documentation of this file.
1 <?php
2 namespace Ajax\php\symfony;
3 
6 
7 abstract 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:319
renderView($viewName, $parameters=[])
Performs jQuery compilation and displays a view.
Definition: Jquery_.php:16