Skip to content

Multiple section replace don't work #54

@yoshkinawa

Description

@yoshkinawa

Hi Giuseppe,
I've created a simple demo for, apparently, a bug I have found.

I have a base template called: baseTemplate

<!DOCTYPE HTML>
<html>
	<head>
	</head>
    <body>
	<? $this->section('body') ?>aaa<? $this->stop() ?>
    </body>
</html>

I have a second template called: templateA

<? $this->layout('_layout/baseTemplate') ?>
<? $this->section('body') ?>bbb<? $this->replace() ?>

I have a third template called: templateB

<? $this->layout('_layout/templateA') ?>
<? $this->section('body') ?>ccc<? $this->replace() ?>

While the result is supposed to be: ccc, in fact, it shows bbb

If I change the the section ending in templateA from replace() to stop(), I get ccc.

I would we very thankful if you could take a look at it, and fix it. :)
Yoshi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions