Welcome Guest, Not a member yet? Register   Sign In
View/Edit view file
#5

[eluser]Jondolar[/eluser]
In your controller, when you want to add a record (instead of edit) create an array called $result with one blank "record" and pass it to the view just like you would if you got the data from the model.

$result = array();
$result[0] = '';

Also, you may want to read up on MVC and not use "echo" to echo out your html code in either your controller or your view. Just a suggestion.


Messages In This Thread
View/Edit view file - by El Forum - 08-04-2009, 09:54 AM
View/Edit view file - by El Forum - 08-04-2009, 11:00 AM
View/Edit view file - by El Forum - 08-04-2009, 01:25 PM
View/Edit view file - by El Forum - 08-10-2009, 11:03 AM
View/Edit view file - by El Forum - 08-10-2009, 01:31 PM
View/Edit view file - by El Forum - 08-11-2009, 03:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB