how to edit view part
- Single Page
Posted 07 June 2012 - 06:56 AM
Posted 10 June 2012 - 15:36 PM
But if you are using flexigrid theme you will see a folder views where you have add, edit, list and list_template views.
assets\grocery_crud hemes\flexigrid\views
Hope it helps.
Posted 12 June 2012 - 10:25 AM
but what about the MVC way?
there is no view for my ONE perticular controller.
how can i edit view for only one controller's view?
in GC we have one COMMON view for all
Posted 13 June 2012 - 17:05 PM
Regarding different flexigrid view, if you need to change much from one version to another then you would need to edit and save that version as a differente theme, then you use that theme on the cruds you wish.
Cheers
Posted 14 June 2012 - 19:40 PM
$data = $crud->render();
$this->load->view('my_view', $data);
Then you would have a view file (named 'my_view.php') like this:
<body>
<h1>My Header</h2>
<!-- What follows is the output from render()
<?php echo $output; ?>
<table>
<tr>
<td>any html I want</td>
</tr>
</table>
<p>a footer paragraph>
</body>