EllisLab text mark
Advanced Search
     
Newbie question
Posted: 06 June 2012 03:27 PM
Joined: 2012-06-06
17 posts

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.

 
Posted: 07 June 2012 02:09 PM   [ # 1 ]   [ Rating: 0 ]
Joined: 2012-05-02
15 posts

Without some code I am afraid your question is too vague to answer.

 
Posted: 18 June 2012 12:38 PM   [ # 2 ]   [ Rating: 0 ]
Joined: 2012-06-06
17 posts

I figured this one out. The problem was related to the tablesorting code in the javascript. I fixed it. Thanks