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

[eluser]rogierb[/eluser]
Add the image stuff in a helper, then load it once in the administration controller or in the autoload.
<code>
function _add_image_props() {
return array(
'src' => base_url().'public/images/action_add.png',
'alt' => '+',
'class' => 'icon',
'title' => 'New'
}

</code>

and in your view:
<code>
img(_image_add_props())
</code>


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