PHP Classes

Problem showing value

Recommend this page to a friend!

      Simple Multilingualism  >  All threads  >  Problem showing value  >  (Un) Subscribe thread alerts  
Subject:Problem showing value
Summary:How to show the variable
Messages:2
Author:Burnside
Date:2013-09-12 07:56:28
Update:2013-09-17 16:02:03
 

  1. Problem showing value   Reply   Report abuse  
Picture of Burnside Burnside - 2013-09-12 07:56:28
Hi,

I try to make working your class bur I have some problems...

1) Is it normal that's you have <?= and not <?php.
2) How to show the value of the field, because this <?= $lang->view('hello') ?> is not working.

Regards
Burnside.

  2. Re: Problem showing value   Reply   Report abuse  
Picture of saadi ali saadi ali - 2013-09-17 16:02:03 - In reply to message 1 from Burnside
Sorry for the delay in a reply

You can print in any way
<?php echo $lang->view('hello'); ?>
or
<?= $lang->view('hello') ?>

Just make sure the definition of the class
$lang = new language('EN');
'EN' of course, is the default language

you can explain more (What is the text of the error message you have ?)
Sorry for the delay in a reply ,

 
For more information send a message to info at phpclasses dot org.