Welcome Guest, Not a member yet? Register   Sign In
Use language in Parser
#1

Hi,
Can I use lang in the parser library?
Currently, I use lang("") in HTML and parse HTML with Parser library.
I need to use example {lang_login} or other without use lang("")
Reply
#2

PHP Code:
{+ lang number.terabyteAbbr +} 

See https://codeigniter4.github.io/CodeIgnit...ed-plugins
Reply
#3

(12-17-2021, 06:48 PM)kenjis Wrote:
PHP Code:
{+ lang number.terabyteAbbr +} 

See https://codeigniter4.github.io/CodeIgnit...ed-plugins

I used Codeigniter 3
Reply
#4

You can't use lang() in templates.
Pass the string as $data:
PHP Code:
$this->parser->parse('blog_template'$data); 
Reply
#5

(12-18-2021, 01:13 AM)kenjis Wrote: You can't use lang() in templates.
Pass the string as $data:
PHP Code:
$this->parser->parse('blog_template'$data); 

Is there a limit for adding key values to the array in PHP?
Because I have 300 keys value in array and send to parser
Thanks
Reply
#6

Array sizes are limited by the memory size, so more memory the bigger the array size can be.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#7

(12-18-2021, 01:56 AM)InsiteFX Wrote: Array sizes are limited by the memory size, so more memory the bigger the array size can be.
Thank you
Reply




Theme © iAndrew 2016 - Forum software by © MyBB