Addon Index.post How ?

hi i want show a custom block on homepage how can i add codes to homapge block like this?

controllers/frontend/categories.post

if ($mode == 'view') {

what index post dispatch . where i have to post ?

You can use HTML block with SMARTY support on the home page and use the following code

{if $runtime.mode == 'post'}
    ...
{/if}

on php ? addon side ?

how i will send code ? same as smarty ?

on php ? addon side ?

how i will send code ? same as smarty ?

Hello!

You can create block in the layout for the homepage in the admin panel.

hi boss i create a block in static templates and assigned homepage area. but how can i fill inside ? with php ?

i try create frondend index.post and added working codes but nothing

worked with out any mode