Welcome Guest, Not a member yet? Register   Sign In
calling controller functions
#1

[eluser]edhrx[/eluser]
hi,
Is this 'legitimate' code

I have a controller with these functions

function listall($clientid = "")

function save()

listall just just shows a list of stuff. If the $clientid is "" then it gets the clientid from a $this->input->post. The user eventually edits a record and saves the form which uses controllername/save. Works ok.

Is it acceptable (it works) to call the listall function from the save function passing in the clientid variable... should I be using a redirect



Ed.


Messages In This Thread
calling controller functions - by El Forum - 06-04-2008, 12:34 AM
calling controller functions - by El Forum - 06-04-2008, 01:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB