Welcome Guest, Not a member yet? Register   Sign In
Can I use $this->lang->line('myword') in the form_submit?
#1

[eluser]shinokada[/eluser]
I want to add $this->lang->line('general_shopping_cart') instead of 'checkout'.

Can I do it inside the form_submit?

Code:
echo "<td colspan='2'>".form_submit('submit', 'checkout')."</td>\n";

or how to add lang in anchor?

$this->lang->line('general_go_back') instead of 'go back to your shopping cart'.

Code:
echo anchor("cecilieokada/cart", "go back to your shopping cart");
#2

[eluser]Dyllon[/eluser]
[quote author="shinokada" date="1263166837"]I want to add $this->lang->line('general_shopping_cart') instead of 'checkout'.

Can I do it inside the form_submit?

Code:
echo "<td colspan='2'>".form_submit('submit', 'checkout')."</td>\n";

or how to add lang in anchor?

$this->lang->line('general_go_back') instead of 'go back to your shopping cart'.

Code:
echo anchor("cecilieokada/cart", "go back to your shopping cart");
[/quote]

Use the language helper

Code:
echo "<td colspan='2'>".form_submit('submit', lang('general_shopping_cart') )."</td>\n";
Code:
echo anchor("cecilieokada/cart", lang('general_go_back') );
#3

[eluser]shinokada[/eluser]
Aha!
Thanks Dyllon. :lol:




Theme © iAndrew 2016 - Forum software by © MyBB