I am trying to separate variables into different views before I put them into Laravel
controllers...so my question is what is the best way to achieve this , how would I separate my $body
, $logo
,$nav
variables into different classes in a case like this ? Thanks in advance!
my current view file
$body = array();
switch(Page::$display_mode) {
case 'one':
...
$body[] = array();
$logo[] = array();
$nav[] = array();
...
case 'two':
...
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire