Codegrounds /fuel/packages/oil/views/scaffolding/orm/actions/view.php

Language PHP Lines 11
MD5 Hash af45d438aa8e8fefb6cc0ce0a760bf0e Estimated Cost $126 (why?)
Repository https://bitbucket.org/trujka/codegrounds.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
		is_null($id) and Response::redirect('<?php echo $uri ?>');

		if ( ! $data['<?php echo $singular_name ?>'] = Model_<?php echo $model_name ?>::find($id))
		{
			Session::set_flash('error', 'Could not find <?php echo $singular_name; ?> #'.$id);
			Response::redirect('<?php echo $uri ?>');
		}

		$this->template->title = "<?php echo ucfirst($singular_name) ?>";
		$this->template->content = View::forge('<?php echo $view_path ?>/view', $data);
Back to Top