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

make possible to create section inside section #75

Closed
wants to merge 1 commit into from
Closed

make possible to create section inside section #75

wants to merge 1 commit into from

Conversation

lalop
Copy link

@lalop lalop commented May 25, 2015

Today this code :

$this->start('section1');
echo 'a';
$this->start('section2');
echo 'b';
$this->stop();
echo $this->section('section2');
$this->stop();

will result to

sections = [
'section1' => '',
'section2' => 'ab'
];

with this path this will result to

sections => [
'section1' => 'ab',
'section2' => 'b'
];

I can add some test if needed

Today this code :
```
$this->start('section1');
echo 'a';
$this->start('section2');
echo 'b';
$this->stop();
echo $this->section('section2');
$this->stop();
``` 
will result to 
```
sections = [
'section1' => '',
'section2' => 'ab'
];
```
with this path this will result to
```
sections => [
'section1' => 'ab',
'section2' => 'b'
];
```

I can add some test if needed
@reinink
Copy link
Contributor

reinink commented Dec 27, 2016

This is interesting. I do wonder though, is it not weird to encourage sections inside sections?

@lalop
Copy link
Author

lalop commented Dec 27, 2016

To be honest I don't remember why I did this :)

@reinink
Copy link
Contributor

reinink commented Dec 27, 2016

Haha, fair enough! I'm going to close this then. If you remember, please check back. 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants