Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthormvitjiten
     
    HI
    in .tpl file i have included <%= save_button %> and in _helper.php i define the save_button funcion.but i am not getting any button in explorer.
    can anyone please tell me where i am doing mistake.
    •  
      CommentAuthorbermi
     

    Can you post your save_button() method?

    •  
      CommentAuthorbermi
     

    Can you post your save_button() method?

    • CommentAuthormvitjiten
     
    This is the save_button method which is in a php file in helper folder

    function save_button()
    {
    return '<input type="submit" value="'.$this->_controller->t('Submit').'" class="primary" tabindex="1" />';
    }
    please inform if there is something wrong
    •  
      CommentAuthorbermi
     

    Seems OK.

    You might have another helper with the same method name which is overriding your method. Try looking at the compiled template at /tmp/... to see which helper is being used.

    You might want to change the helper method name, or use plain PHP to specify the helper to use like:

    <?= $my_helper->save_button(); ?>
    
    • CommentAuthormvitjiten
     
    Thank you very much Bermi for your valuable help.Your code
    <?= $my_helper->save_button(); ?>
    worked fine for me.But i donot know why without the helper name it is not working.
    I have only one helper page in helper folder .
    •  
      CommentAuthorbermi
     

    Akelos loads some core helpers from

    /lib/AkActionView/helpers