Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Smarty] Zmienny content
jadzia999222
post 1.10.2013, 11:02:37
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 1.10.2013

Ostrzeżenie: (0%)
-----


Cześć mam pewien problem. W swoim pliku index.smarty mam taki oto kod:
[SMARTY] pobierz, plaintext
  1. {include file="`$smarty.const.APP_PATH`templates/`$smarty.const.APP_THEME`/modules/template-parts/header.smarty"}
  2. <div id="main-container">
  3. {if
  4.  
  5. $smarty.get.startpage=="initialize"}
  6.  
  7. file="`$smarty.const.APP_PATH`templates/`$smarty.const.APP_THEME`/modules/template-parts/main-content.smarty"}
  8.  
  9. $smarty.get.adminpage=="initialize" OR (strpos($smarty.server.REQUEST_URI, "admin")) }
  10.  
  11. file="`$smarty.const.APP_PATH`templates/`$smarty.const.APP_THEME`/modules/template-parts/admin-panel.smarty"}
  12. {else}
  13.  
  14. file="`$smarty.const.APP_PATH`templates/`$smarty.const.APP_THEME`/modules/`$smarty.session.tpl.file`"}
  15. {/if}
  16. </div>
  17.  
  18. file="`$smarty.const.APP_PATH`templates/`$smarty.const.APP_THEME`/modules/template-parts/footer.smarty"}
  19.  
[SMARTY] pobierz, plaintext

I tu jest content przypisany jeden do wszystkich podstron. Dopiero zaczynam swoją naukę dlatego proszę o pomoc. Chciałabym, żeby poza plikiem main-content.smarty lub panelu logowania czy admina była możliwość także dodania np abroad-content.smarty, ticket-content.smarty, hotels-content.smarty oraz polish-content.smarty. Czy ktoś mógłby mi pomóc?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.03.2024 - 19:16