Welcome Guest, Not a member yet? Register   Sign In
misc_helper
#7

Why not just copy the display_price function to a new function called display_suggested_price and have it only output the wanted data.

And choose what you want to do. In a helper you should choose if you want to use echo or return, not use both. Either call the helper function from within your viewfile and use echo in the hlper. Or use return in the function and have the output stored in a variable inside your controller and pass the variable to the viewfile so you can echo the variable there.
Reply


Messages In This Thread
misc_helper - by malbe - 02-24-2016, 06:42 AM
RE: misc_helper - by malbe - 02-25-2016, 02:26 AM
RE: misc_helper - by Narf - 02-25-2016, 02:43 AM
RE: misc_helper - by solidcodes - 02-25-2016, 03:09 AM
RE: misc_helper - by solidcodes - 02-25-2016, 03:22 AM
RE: misc_helper - by malbe - 02-25-2016, 03:58 AM
RE: misc_helper - by Diederik - 02-25-2016, 04:33 AM
RE: misc_helper - by malbe - 02-25-2016, 04:48 AM
RE: misc_helper - by solidcodes - 02-25-2016, 05:11 AM
RE: misc_helper - by Diederik - 02-25-2016, 05:38 AM
RE: misc_helper - by solidcodes - 02-25-2016, 06:09 AM
RE: misc_helper - by malbe - 02-26-2016, 08:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB