$this->lang->line with passing parameters |
(10-02-2015, 05:22 AM)ciadmin Wrote: Here's the idea...This is the exact solution I was going to suggest. If you want, you could do something like extend the lang library and either create a new method that will do this, or change the Lang::line method to look for parameters via Variadic functions, or if you dont have PHP 5.6 or later, use func_num_args to check if any arguments were passed, if not, just use the parent::line(), if there were, then handle them using func_get_args and sprintf, thats what I would do anyways. |
Messages In This Thread |
$this->lang->line with passing parameters - by rchiu5hk - 10-02-2015, 04:54 AM
RE: $this->lang->line with passing parameters - by ciadmin - 10-02-2015, 05:22 AM
RE: $this->lang->line with passing parameters - by jLinux - 10-02-2015, 06:19 AM
RE: $this->lang->line with passing parameters - by sampoyigi - 10-04-2015, 10:23 AM
RE: $this->lang->line with passing parameters - by jLinux - 10-04-2015, 01:25 PM
RE: $this->lang->line with passing parameters - by ivantcholakov - 10-04-2015, 01:58 PM
RE: $this->lang->line with passing parameters - by jLinux - 10-04-2015, 02:13 PM
RE: $this->lang->line with passing parameters - by sampoyigi - 10-05-2015, 03:09 AM
|