A complete platform for building web applications.
Views display the , file name must be in {app-name}/{controller-name}/{method}.php
format.
Command:
php creator make view category Todo
php creator make view task Todo
views/todo/layout.php
views/todo/category/create.php
views/todo/category/edit.php
views/todo/category/list.php
views/todo/category/show.php
views/todo/task/create.php
views/todo/task/edit.php
views/todo/task/list.php
views/todo/task/show.php
The layout.php
file:
<?php
include(APPPATH.'views/layout.php');
We used the default layout, but you can change it any time to your layout.
The category/create.php
file:
<div class="panel panel-default">
<div class="panel-body">
<?php echo make_form_open() ?>
<?php foreach ($this->category->forms('create') as $key => $input) { ?>
<div class="form-group">
<?php echo make_label($input) ?>
<?php echo make_input($input) ?>
</div>
<?php } ?>
<?php echo make_form_submit() ?>
<?php echo make_form_close() ?>
</div>
</div>
The default page when you call create
mehtod in category
controller in Todo
app.