Ejemplo n.º 1
0
	function live($url='fr/index')
	{	
		$path = explode('/',$url);
		if(strlen($path[0]) == 2) // check for lang
			$lang = array_shift($path);
		else	$lang = defaultLangage;

		if(isset($path[1])) // there is a path ?
		{	$pageToShow = array_pop($path);
			$urlPath = array_shift($path); foreach($path as $word) $urlPath .= '/'.$word;
		} else
		{	$urlPath = '';
			if(isset($path[0]))
				$pageToShow = $path[0];
			else	$pageToShow = 'index';
		}

		$page = renderPage($pageToShow,$lang,$urlPath,function($page)
		{	callPlugin('page',array('info'));
		},'live',true);

		return $page;
	}
Ejemplo n.º 2
0
<?php	session_start();
	include '../../fastIce.php';
	$out = callPlugin($_GET['plg'],array_values($_POST));
	if($out === false) print 'error!'; else echo $out;
?>
Ejemplo n.º 3
0
 /**
  * Execute ActionForward.
  *
  * @return mixed
  */
 public function go()
 {
     switch ($this->getType()) {
         case 'view':
             return $this->_processView();
         case 'redirect':
             $this->_processHeader();
             $path = $this->getPath(true);
             return callPlugin(getOption(_ROUTER), 'go', [$path]);
         case 'action':
         default:
             if (exists(_RUN_APP, 'plugin')) {
                 plug(_RUN_APP)->append(get($this));
             }
             return $this;
     }
 }