Welcome Guest, Not a member yet? Register   Sign In
Cannot Access Global Variable in Loop
#1

Hello.

Im passed an array and some global variables array to view file.

Code:
$website_lang_array = array (
'LANG1' => 'Main',
'LANG2' => 'Blog',
'LANG3' => 'Templates',
'LANG4' => 'About',
'LANG5' => 'Contact',
'LANG6' => 'Login',
'LANG7' => 'Facebook Login',
'LANG8' => 'SignIn',
'LANG9' => 'Search...',
'LANG10' => 'Latest Contents',
'LANG11' => 'Show All',
'LANG12' => 'From BLOG',
'LANG13' => 'Visit Blog',
'LANG14' => '&copy 2016 All rights reserved',
'LANG15' => 'Category:',
);



if i use this variable a outside of lop such as

Code:
{LANG15}
{content}
   {content_id} - {content_title}
{/content}

this is working good. 


But when i try to access in loop such as



Code:
{content}
   {LANG15}
   {content_id} - {content_title}
{/content}

This is not working. i think its search {LANG15} in content array.

i must acces {LANG15} in loop. but how? Thanks inadvance.
Reply


Messages In This Thread
Cannot Access Global Variable in Loop - by spider58 - 02-08-2016, 02:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB