Is there an explication for that ?
Thanks.
is_null($id) and Response::redirect('<?php echo $controller_name ?>');Which checks first, then loads the model object. And edit does exactly the same.
$data['<?php echo $singular_name ?>'] = Model_<?php echo $model_name ?>::find_by_pk($id);
$data['<?php echo $singular_name ?>'] = Model_<?php echo $model_name ?>::find($id);
is_null($id) and Response::redirect('<?php echo $controller_name ?>');
is_null($id) and Response::redirect('<?php echo $controller_name ?>');
$<?php echo $singular_name; ?> = Model_<?php echo $model_name; ?>::find($id);
is_null($id) and Response::redirect('<?php echo $controller_name ?>');
$<?php echo $singular_name; ?> = Model_<?php echo $model_name; ?>::find($id);
It looks like you're new here. If you want to get involved, click one of these buttons!