/fuel/packages/oil/views/scaffolding/crud/actions/view.php
PHP | 6 lines | 4 code | 2 blank | 0 comment | 0 complexity | 660f2a1ffe677513b771fee89ce7427b MD5 | raw file
Possible License(s): MIT, BSD-3-Clause, LGPL-2.1
- is_null($id) and Response::redirect('<?php echo $uri ?>');
- $data['<?php echo $singular_name ?>'] = Model_<?php echo $model_name ?>::find_by_pk($id);
- $this->template->title = "<?php echo ucfirst($singular_name) ?>";
- $this->template->content = View::forge('<?php echo $view_path ?>/view', $data);