dAivEd Posted January 31, 2010 Report Share Posted January 31, 2010 (edited) Ka var izvadit mainigo lai var nodefinet ? <? echo lang_; ?><? echo $page; ?> define('lang_register', "reg"); shita vel meginaju: <? echo "lang_$page"; ?> define('lang_register', "reg"); Bet nestrada ;( Edited January 31, 2010 by dAivEd Quote Link to comment Share on other sites More sharing options...
80MXM08 Posted January 31, 2010 Report Share Posted January 31, 2010 (edited) define("lang_$page", "reg"); Edited January 31, 2010 by 80MXM08 Quote Link to comment Share on other sites More sharing options...
waplet Posted January 31, 2010 Report Share Posted January 31, 2010 echo constant(); Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 31, 2010 Report Share Posted January 31, 2010 Ko nozīmē - izvadīt mainīgo, lai var nodefinēt? Quote Link to comment Share on other sites More sharing options...
dAivEd Posted January 31, 2010 Author Report Share Posted January 31, 2010 define("lang_$page", "reg"); :D, Bet mainigais mainas, tas var but lang_register, lang_news, lang_top utt Quote Link to comment Share on other sites More sharing options...
dAivEd Posted January 31, 2010 Author Report Share Posted January 31, 2010 Ko nozīmē - izvadīt mainīgo, lai var nodefinēt? Paskaties piemeeru, visu sapratisi. Quote Link to comment Share on other sites More sharing options...
dAivEd Posted January 31, 2010 Author Report Share Posted January 31, 2010 echo constant(); pilnigs fufels, ja nevari palidzet, paej garam. Quote Link to comment Share on other sites More sharing options...
waplet Posted January 31, 2010 Report Share Posted January 31, 2010 (edited) Tev tas piemērs ir neprecīzs... define gan tā nevajag... define('lang_register',"Reģistrācija"); define('lang_news',"Ziņas"); un echo constant("lang_".$page); tā domājams būtu precīzak. Un fufelis esi tu pats... es tač esmu taisījis valodas sistēmu Edited January 31, 2010 by waplet Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 31, 2010 Report Share Posted January 31, 2010 Paskatījos piemēru un nesapratu...bet domāju, ka waplet's ir atbildējis vispareizāk...pirms saki, ka tas ir fufelis paskaties ko tev vispār raksta. Quote Link to comment Share on other sites More sharing options...
dAivEd Posted January 31, 2010 Author Report Share Posted January 31, 2010 (edited) Tev tas piemērs ir neprecīzs... define gan tā nevajag... define('lang_register',"Reģistrācija"); define('lang_news',"Ziņas"); un echo constant("lang_".$page); tā domājams būtu precīzak. Un fufelis esi tu pats... es tač esmu taisījis valodas sistēmu Es domāju atbilde "echo constant();" ir fufels, jo es neko vairāk nesaprotu, esmu iesācejs, saproti ? Nejau kautko sliktu par tevi. Tapec ja aizvainoju, atvainojos. Edited January 31, 2010 by dAivEd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.