• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Practice...where to generate a table

#4
[eluser]blasto333[/eluser]
When I started to go do this I realized that I cannot put this function in a helper because it needs access to the language and table libraries.

I was thinking of moving the logic to the view, but this function is also used for AJAX. A user can do a search and the table is sent back and updated using the dom (really easy with jquery).

So the only place I could move it to is the controller.

If you want to see this in action go to:
http://muench.homeip.net/phppointofsale/index.php/login

username:admin
password:pointofsale

Click "Customers" at the top.


I am trying to follow best practices and this did not feel like a good practice.


Messages In This Thread
Best Practice...where to generate a table - by El Forum - 10-13-2008, 04:47 PM
Best Practice...where to generate a table - by El Forum - 10-13-2008, 06:28 PM
Best Practice...where to generate a table - by El Forum - 10-13-2008, 06:46 PM
Best Practice...where to generate a table - by El Forum - 10-13-2008, 07:29 PM
Best Practice...where to generate a table - by El Forum - 10-13-2008, 07:33 PM
Best Practice...where to generate a table - by El Forum - 10-13-2008, 07:41 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.