Welcome Guest, Not a member yet? Register   Sign In
how can I access database in a helper function ?
#4

[eluser]Zeeshan Rasool[/eluser]
[quote author="n0xie" date="1268752620"]Usually helpers are used in the view to format and output a particular datablock. If you need database logic I would recommend either moving your code to a library, model or making it part of of one of your base controllers.[/quote]

Yeah, absolutely right suggestion.


Messages In This Thread
how can I access database in a helper function ? - by El Forum - 03-15-2010, 08:30 PM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 12:15 AM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 04:17 AM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 12:43 PM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 12:56 PM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 12:59 PM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 01:13 PM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 01:26 PM
how can I access database in a helper function ? - by El Forum - 03-16-2010, 01:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB