No0ne Posted May 6, 2007 Report Share Posted May 6, 2007 Sveiki! Cenšos iztulkot CMS'am failus uz lv/eng/ru valodām! Problēma tāda, ka nepārzinu TPL vqalodu(vai kas nu tas ir), un nevaru saprast, kā lai php mainīgos iebāž .tpl failos, lai viņi parādītos tāpat kā php skriptā! Respektīvi man vajag inkludot lang.php failu un iekš .tpl faila vajag lai,teiksim, $kautkas aizstājas ar kautkas, kas ir nodefinēts inklūdotajā php failā! Paldies! Link to comment Share on other sites More sharing options...
Paulinjsh Posted May 6, 2007 Report Share Posted May 6, 2007 kas ir TPL valoda? Link to comment Share on other sites More sharing options...
No0ne Posted May 6, 2007 Author Report Share Posted May 6, 2007 kas ir TPL valoda? TemPLates apziimee TPL, nezinu gan vai tā ir valoda.. Link to comment Share on other sites More sharing options...
Delfins Posted May 6, 2007 Report Share Posted May 6, 2007 (edited) Ko tur nesaprast? main.php <?php include 'tavs.php'; include 'tavs.tpl'; ?> tavs.tpl Sveiks, <?php echo $userName; ?>! Edited May 6, 2007 by Delfins Link to comment Share on other sites More sharing options...
No0ne Posted May 7, 2007 Author Report Share Posted May 7, 2007 Ko tur nesaprast? main.php <?php include 'tavs.php'; include 'tavs.tpl'; ?> tavs.tpl Sveiks, <?php echo $userName; ?>! ta jau es meginaju bet nevella nesanak - @index.php include("include/lv.php"); un,lai kas tas nebūtu STemplate::display('index.tpl'); , bet tas inklūdo to tpl! @index.tpl <td class="bold_blue_large"><A href="{$baseurl}/video.php"><?php echo $INDEX_watch; ?></A></td> Un nevella neizpildās, kautgan @ lv.php ir nodefinēts $INDEX_watch = "Skatīties"; Link to comment Share on other sites More sharing options...
andrisp Posted May 7, 2007 Report Share Posted May 7, 2007 Noskaidro, kas tā par template sistēmu un sameklē dokumentāciju. Ja tā ir kaut kāda custom sistēmiņa tieši šai lapai, tad gan neviens tev priekšā pateikt neko nevarēs, neredzot reālu kodu kā viss ir implementēts. Link to comment Share on other sites More sharing options...
No0ne Posted May 8, 2007 Author Report Share Posted May 8, 2007 Nesaprotu kāda starpība, kas tā pa sistēmu.. Vai tad .tpl forumā nav tādi paši, kā .tpl blogā vai jebkur citur? Link to comment Share on other sites More sharing options...
andrisp Posted May 8, 2007 Report Share Posted May 8, 2007 Nav gan. Templeitu sistēmas var būt un ir dažādas. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 8, 2007 Report Share Posted May 8, 2007 No0ne --> Es arii gribu zinaat par taadu valodu kaa TPL ;) Lojoti daudz pashi taisa vienkaarshu tmplatu sistemu.... izmnto paplasinaajumu PHP un beikta baale.... jo diezvai tai sisteemai 100% jaabuut paplasinaajumam tpl... Link to comment Share on other sites More sharing options...
v3rb0 Posted May 8, 2007 Report Share Posted May 8, 2007 tāpec templeitiem izmantot tīru php. joprojām topā šis raksts: http://www.phppatterns.com/docs/design/tem...emplate_engines Link to comment Share on other sites More sharing options...
Recommended Posts