I am new to totalJs and right now i can't clearly understand how it handles dynamic views. I've done many projects in CakePHP. Cake has a default layout which handles the main layout of the app.
It looks like this.
<title><?php echo $this->fetch('title'); ?></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<!-- Include external files and scripts here (See HTML helper for more info.) -->
<!-- If you'd like some sort of menu to
show up on all of your views, include it here -->
<!-- Here's where I want my views to be displayed -->
<?php echo $this->fetch('content'); ?>
<!-- Add a footer to each displayed page -->
This layout will handle all the contents of the controllers method Add User view. See code below
<input type='text' name='username' />
<input type='submit' value='submit'/>
The layout is now can be use by any method of any controller. I know that totalJs has a default layout but does it has a feature-like cakephp's layout?
Thanks in advance and sorry for my very bad english.