Hi,
Please bear with me, I do not regularly write php code and the site in question was not created by me!
The site is www.unwind-dc.com. I am attempting the edit the child under the acupuncture tab in the navigation. It was formerly called “acupuncture/nicole” but Nicole is no longer employed there. I first attempted to create a new page called “acupuncture/practitioners”, and edited the acupuncture.php and header.html files to replace Nicole functions and file extensions to direct to the new page. The navigation updated, but instead of rendering the new acupuncture/practitioners.html page it simply redirected to the home page.
In what I hoped would be a temporary fix, I then changed both the acupuncture.php and header.html files back to their original state with the exception of displaying the title as “practitioners” in the nav, and then edited the content of the “acupuncture/nicole.html” page to reflect the content my client currently desires there. No dice. It’s still redirecting to the home page.
Here’s my current acupuncture.php code (I think I’m using this tool correctly…):
[php]<?php
class Acupuncture extends Controller {
function __construct() {
parent::__construct();
$this->view->menu('3');
}
function index() {
Header("Location: " . URL . "acupuncture/Nicole");
}
function nicole_mclaughlin(){
$this->view->title('Acupuncture: Nicole McLaughlin');
$this->view->render('acupuncture/Nicole');
}
}[/php]
Here’s what I tried to change it to:
[php]<?php
class Acupuncture extends Controller {
function __construct() {
parent::__construct();
$this->view->menu('3');
}
function index() {
Header("Location: " . URL . "acupuncture/practitioners");
}
function practitioners(){
$this->view->title('Acupuncture: Practitioners');
$this->view->render('acupuncture/practitioners');
}
}[/php]
Here’s what my header currently includes for that section of the navigation:
<li class="<?= $this->page_menu == 3 ? 'active ' : '' ?> parent item470 sfHover">
<a href="javascript:;"><span>Acupuncture</span></a>
<ul>
<!--<li class="first-child item467"><a href="acupuncture/Nicole"><span>Nicole McLaughlin</span></a></li>-->
<li class="last-child item469"><a href="acupuncture/Nicole"><span>Practitioners</span></a></li>
</ul>
</li>
and here’s what I attempted to change it to:
<li class="<?= $this->page_menu == 3 ? 'active ' : '' ?> parent item470 sfHover">
<a href="javascript:;"><span>Acupuncture</span></a>
<ul>
<!--<li class="first-child item467"><a href="acupuncture/practitioners"><span>Nicole McLaughlin</span></a></li>-->
<li class="last-child item469"><a href="acupuncture/practitioners"><span>Practitioners</span></a></li>
</ul>
</li>
Both “Nicole.html” and “practitioners.html” are present in the Views/Acupuncture folder on my remote server, and both have the same content. Ideally, I want to direct to “practitioners.html” and also figure out how to add additional pages under Acupuncture in the future as they have a new employee to add in the next week or so.
Any help would be so greatly appreciated! ???
