Welcome Guest, Not a member yet? Register   Sign In
Newbie question
#1

[eluser]bazianm[/eluser]
Hi,

I am brand new to CodeIgniter having inherited a site that uses it. So far, I love it.

I do have one question which I am not sure how to handle.

I have a view that is a part of a page. It basically displays data in a tabular format with links in one of the columns for the user to click on and drill down with. I have a request from the client to add a filtering capability and I am not sure how to structure this.

The problem is that the filter fields would go in the same view as the data. So, basically I would have to create a form atop the table that lists the data, allow the user to enter their filter criteria and then, when the user clicks submit on the filter, reload the data with only the filtered rows showing.

Since this view is only part of the page, I am really unsure of how to get this to work. Like I said, I am new to CodeIgniter and I do not fully grasp the controller/helper/view model. For example, I do not see where the helper function (which has the SQL calls for the data) is being called. I see a call to the view (called from the main class) so that's not a problem but not how the actual controller is being called.

So, that's my dilemma here. Any assistance would be appreciated.

#2

[eluser]Kenneth Vogt[/eluser]
Without some code I am afraid your question is too vague to answer.
#3

[eluser]bazianm[/eluser]
I figured this one out. The problem was related to the tablesorting code in the javascript. I fixed it. Thanks




Theme © iAndrew 2016 - Forum software by © MyBB