Created
February 6, 2014 17:34
-
-
Save ziadoz/8848881 to your computer and use it in GitHub Desktop.
Perch Bug — When using the perch_content_create() function to create a region and then the perch_content() method to retrieve it, two regions get created — a shared one and one for the page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'admin/runtime.php'; | |
perch_content_create('Example Shared Region', array( | |
'template' => 'text_block.html', | |
'shared' => true, | |
)); | |
?> | |
<!DOCTYPE> | |
<html lang="en"> | |
<head> | |
<title>Perch Website</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require 'header.php'; ?> | |
<p>Hello, World!</p> | |
<?php require 'footer.php'; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment