Esempio n. 1
0
 /**
  * Set system parameters
  */
 private function setSystemParameters()
 {
     $version = $this->app->getConfiguration()->system_version;
     // Setting app paths/URLs.
     // @todo fix this
     $_p = array('web' => $this->urlGenerator->generate('root'), 'web_course' => api_get_path(WEB_COURSE_PATH), 'web_course_path' => api_get_path(WEB_COURSE_PATH), 'web_code_path' => api_get_path(WEB_CODE_PATH), 'web_main' => api_get_path(WEB_CODE_PATH), 'web_css' => api_get_path(WEB_CSS_PATH), 'web_css_path' => api_get_path(WEB_CSS_PATH), 'web_ajax' => api_get_path(WEB_AJAX_PATH), 'web_ajax_path' => api_get_path(WEB_AJAX_PATH), 'web_img' => api_get_path(WEB_IMG_PATH), 'web_img_path' => api_get_path(WEB_IMG_PATH), 'web_plugin' => api_get_path(WEB_PLUGIN_PATH), 'web_plugin_path' => api_get_path(WEB_PLUGIN_PATH), 'web_lib' => api_get_path(WEB_LIBRARY_PATH), 'web_library_path' => api_get_path(WEB_LIBRARY_PATH), 'web_library_js_path' => api_get_path(WEB_LIBRARY_JS_PATH), 'web_public' => $this->urlGenerator->generate('root'));
     $this->assign('_p', $_p);
     //Here we can add system parameters that can be use in any template
     $_s = array('software_name' => api_get_software_name(), 'system_version' => $version, 'site_name' => api_get_setting('platform.site_name'), 'institution' => api_get_setting('platform.institution'));
     $this->assign('_s', $_s);
 }
Esempio n. 2
0
 /**
  * Set system parameters
  */
 private function setSystemParameters()
 {
     $version = $this->app['configuration']['system_version'];
     // Setting app paths/URLs.
     $_p = array('web' => api_get_path(WEB_PATH), 'web_course' => api_get_path(WEB_COURSE_PATH), 'web_course_path' => api_get_path(WEB_COURSE_PATH), 'web_code_path' => api_get_path(WEB_CODE_PATH), 'web_main' => api_get_path(WEB_CODE_PATH), 'web_css' => api_get_path(WEB_CSS_PATH), 'web_css_path' => api_get_path(WEB_CSS_PATH), 'web_ajax' => api_get_path(WEB_AJAX_PATH), 'web_ajax_path' => api_get_path(WEB_AJAX_PATH), 'web_img' => api_get_path(WEB_IMG_PATH), 'web_img_path' => api_get_path(WEB_IMG_PATH), 'web_plugin' => api_get_path(WEB_PLUGIN_PATH), 'web_plugin_path' => api_get_path(WEB_PLUGIN_PATH), 'web_lib' => api_get_path(WEB_LIBRARY_PATH), 'web_library_path' => api_get_path(WEB_LIBRARY_PATH), 'public_web' => api_get_path(WEB_PUBLIC_PATH));
     $this->assign('_p', $_p);
     //Here we can add system parameters that can be use in any template
     $_s = array('software_name' => api_get_software_name(), 'system_version' => $version, 'site_name' => api_get_setting('siteName'), 'institution' => api_get_setting('Institution'));
     $this->assign('_s', $_s);
 }