Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormvitjiten
    • CommentTimeMay 4th 2008
     
    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
    • CommentTimeMay 5th 2008
     

    Can you post your save_button() method?

    •  
      CommentAuthorbermi
    • CommentTimeMay 5th 2008
     

    Can you post your save_button() method?

    • CommentAuthormvitjiten
    • CommentTimeMay 5th 2008
     
    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
    • CommentTimeMay 5th 2008
     

    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
    • CommentTimeMay 6th 2008 edited
     
    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
    • CommentTimeMay 14th 2008
     

    Akelos loads some core helpers from

    /lib/AkActionView/helpers
    
Add your comments
    Username Password
  • Format comments as