Welcome Guest, Not a member yet? Register   Sign In
routes
#3

I did place the routes above the config/routes.php


routes.php

PHP Code:
$route['blog_form'] = 'blog/blog_form';
$route['default_controller'] = 'blog/blog_form';

$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE


views/blog_form.php

PHP Code:
<html>

<
title>Blog Form</title>

<
br>

<
h1>BLOG FORM</h1>


<?
php echo validation_errors(); ?>

<?php echo form_open('form'); ?>


<table>

<tr>
<td>Date  :</td>
<td><input type="text" name="username" value="" size="50" /></td>
</tr>
<tr>
<td>Upload  :<br><br></td>
<td><input type="text" name="username" value="" size="50" /></td>
</tr>
<tr>
<td>Title :</td>
<td><input type="text" name="username" value="" size="50" /></td>
</tr>
<tr>
<td>Content :</td>
<td><input type="text" name="username" value="" size="50" /></td>
</tr>

<div><input type="submit" value="Submit" /></div>

</form>
</table>


</html> 


I still have:


BLOG FORM

Fatal error: Call to undefined function validation_errors() in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\application\views\blog_form.php on line 11
A PHP Error was encountered
Severity: Error
Message: Call to undefined function validation_errors()
Filename: views/blog_form.php
Line Number: 11
Backtrace:


line 11:  <?php echo validation_errors(); ?>

How fix the error?
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
routes - by davy_yg - 04-21-2016, 12:31 AM
RE: routes - by paulkd - 04-21-2016, 12:39 AM
RE: routes - by davy_yg - 04-25-2016, 07:22 PM
RE: routes - by hipm - 04-25-2016, 09:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB