Answer the question
In order to leave comments, you need to log in
How to properly navigate through the pages of the site?
Maybe I didn't word my question quite right.
I'm making my own website and just gaining experience. I intend to stick to the MVC model, but got stuck when implementing the "navigation" of the site. That is, I have, for example, a header with a logo and other things, there is a menu, and there is a central panel where everything happens. And I can't figure out how to put the content I need into this central part. So far, I've made a crutch like this on Smarty:
{if isset($group_id) }
{include file="group_control.tpl"}
{else if $do == 'settings'}
{include file="settings.tpl"}
{else if $do == 'profile'}
{include file="profile.tpl"}
{/if}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question