cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

$this->partial don't work as expected

Open timurbakarov opened this issue 14 years ago • 5 comments

I use $this->partial this way.

Main layout file:

<html>
<head>
</head>
<body>
  <div class="header">
    <?php $this->partial('shared/header')?>
  </div>

  <div class="content">
    <?php echo $this->getContent()?>
  </div>
</body>
</html>

header.phtml

<div>
  Some content
</div>

Result html

    <div>
  Some content
</div>
  </div>

  <div class="content">
    <div>
  Some content
</div>
  </div>
</body>
</html>

So it doesn't render anything before partial call and $this->getContent() show partial file content instead of another file.

timurbakarov avatar Jul 19 '12 08:07 timurbakarov

Hi, I believe this bug is already fixed in the repository, could you re-download the extension?

ghost avatar Jul 19 '12 13:07 ghost

Downloaded again. Same problem. Phalcon 0.4.2 - Windows x86 for PHP 5.3 (VC9)

timurbakarov avatar Jul 19 '12 13:07 timurbakarov

Ah sorry, we need to recompile the dll for windows again

ghost avatar Jul 19 '12 13:07 ghost

Hi again, we generated 0.4.3 to solve this problem, just download it from http://phalconphp.com/download/

regards,

ghost avatar Jul 22 '12 15:07 ghost

Thanks

timurbakarov avatar Jul 22 '12 16:07 timurbakarov