Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$this->partial don't work as expected #30

Closed
timurbakarov opened this issue Jul 19, 2012 · 5 comments
Closed

$this->partial don't work as expected #30

timurbakarov opened this issue Jul 19, 2012 · 5 comments
Labels
bug A bug report status: medium Medium

Comments

@timurbakarov
Copy link

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.

@phalcon
Copy link
Collaborator

phalcon commented Jul 19, 2012

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

@timurbakarov
Copy link
Author

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

@phalcon
Copy link
Collaborator

phalcon commented Jul 19, 2012

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

@phalcon
Copy link
Collaborator

phalcon commented Jul 22, 2012

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

regards,

@phalcon phalcon closed this as completed Jul 22, 2012
@timurbakarov
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: medium Medium
Projects
None yet
Development

No branches or pull requests

2 participants