Render page without theme
Permalink 1 user found helpful
Hi
Is it possible render page without theme?
I'm building my own package for concrete5 and I want to render basic html-view. So I don't want any theme files there. Is it possible?
Now I'm trying in controller.php
<code>
public function view() {
$ul = new UserList();
$users = $ul->get();
$this->set('users', $users);
$this->set('view', 'list');
$this->render('test.php');
}
</code>
Is it possible render page without theme?
I'm building my own package for concrete5 and I want to render basic html-view. So I don't want any theme files there. Is it possible?
Now I'm trying in controller.php
<code>
public function view() {
$ul = new UserList();
$users = $ul->get();
$this->set('users', $users);
$this->set('view', 'list');
$this->render('test.php');
}
</code>
Then put your code into "mypackage/themes/my-project-unstyled/my-undecorate-page.php" and you're good to go. The downside to this is that you may have to duplicate some assets, or figure out how to point to existing ones in the other theme (or in the package directory).