Welcome Guest, Not a member yet? Register   Sign In
[solved] where to store recurrent data ?
#1

[eluser]mariek[/eluser]
Hello,

I'm coding an administration interface and some icons for modify, delete etc are on several pages.
I use the html helper like this :
Code:
$image_add_props = array(
    'src' => 'public/images/action_add.png',
    'alt' => '+',
    'class' => 'icon',
    'title' => 'New'
);

img($image_add_props)

My question is : where can I put the first part
Code:
$image_add_props = array(
    'src' => 'public/images/action_add.png',
    'alt' => '+',
    'class' => 'icon',
    'title' => 'New'
);
so I don't have to redeclare it on each view ?

Thanks for your help


Messages In This Thread
[solved] where to store recurrent data ? - by El Forum - 07-30-2009, 02:45 AM
[solved] where to store recurrent data ? - by El Forum - 07-30-2009, 03:03 AM
[solved] where to store recurrent data ? - by El Forum - 07-30-2009, 03:21 AM
[solved] where to store recurrent data ? - by El Forum - 07-30-2009, 05:24 AM
[solved] where to store recurrent data ? - by El Forum - 07-30-2009, 05:34 AM
[solved] where to store recurrent data ? - by El Forum - 07-30-2009, 05:41 AM
[solved] where to store recurrent data ? - by El Forum - 07-30-2009, 05:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB