About the CMS Page and variables
Hi, I'm new in fuel cms and setup v1.4 already. I'm trying CMS Page function and have a question about the variable file.
Is it CMS page will not load the corresponding variable file ?
(e.g. I had a CMS page which location is : /index, all variables inside _variables/index.php will not load except those variables in _variables/global.php is loaded normally). Thanks !
Comments
I create 2 CMS page in cms admin which location is "about" & "about/team", and I load and show a variable $test in both page.
Step 1.
$vars['test'] = 'global'; // put inside "_variables/global.php"
in this case both about and about/team show 'global'
Step 2.
$vars['test'] = 'about'; // put inside "_variables/about.php"
in this case both about and about/team show 'about', variables in about.php overwrite global.php, so far so good.
Step 3.
$vars['test'] = 'team'; // put inside "_variables/about/team.php"
in this case about/team still showing 'about', variables in team.php not load (seems all variables put in team.php is not load... is it normal ?)
p.s. I didn't create "About" controller in this test.
$pages['about/team'] = array('test' => 'team');