Yii Framework Forum: [SOLVED] renderPartial non mi ritorna l'output...problema con ob_start() - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[SOLVED] renderPartial non mi ritorna l'output...problema con ob_start() Rate Topic: -----

#1 User is offline   Customsoft 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 36
  • Joined: 18-May 11
  • Location:Arzignano

Posted 10 August 2011 - 06:09 AM

Ho scritto questa riga per avere l'output dopo i puntini, ma me lo mette sempre prima dei puntini
      $html = $this->renderPartial('templatesDocumenti/'.$sNomeDocumento,true);
      echo '......................';
      echo $html;


Sono risalito fino a
	public function renderInternal($_viewFile_,$_data_=null,$_return_=false)
	{
		// we use special variable names here to avoid conflict when extracting data
		if(is_array($_data_))
			extract($_data_,EXTR_PREFIX_SAME,'data');
		else
			$data=$_data_;
		if($_return_)
		{
			ob_start();
			ob_implicit_flush(false);
			require($_viewFile_);
			return ob_get_clean();

Ma prima del return ob_get_clean() mi stampa giĆ  il codice ... sembra che ob_start venga ignorato. :-((((

Avete idee?? Non riesco a capire cosa non lo faccia lavorare correttamente.
Saluti
Marco (SE&O)
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,317
  • Joined: 12-October 09
  • Location:Croatia

Posted 10 August 2011 - 07:14 AM

Se non sbaglio... stai mandando "true" come secondo parametro invece del terzo...
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   Customsoft 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 36
  • Joined: 18-May 11
  • Location:Arzignano

Posted 10 August 2011 - 08:04 AM

quanto odio perder tempo nelle cavolate ... troppi pensieri per la testa ...

grazie per la dritta ... ora va!
Saluti
Marco (SE&O)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users