/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/src
/View
/ProductCategories
/category.ctp
<?php
/* @var $this View */
use Cake\I18n\Time;
$this->assign('title', 'Canadian Orthopaedic Supply - Products - ' . $productsByCategory[0]['Category']['name']);
$this->assign('meta-description', 'We bring you the newest innovations in bracing, cast clinic tools and supplies, electrotherapy machines, treatment beds and WalkAide system.');
$this->assign('meta-keywords', 'Canadian Orthopaedic Supply,Canadian Orthopedic Supply,COS,PUSH Ortho CMC Thumb Brace,PUSH metagrip brace,De Soutter Cast Saws Canada,Cast Saws Canada,Enraf-Nonius Canada,IFC Machine,Interferential Current Machine,Electrotherapy machine,ultra sound machine,ultrasound machine,Carpal tunnel wrist brace,bracing,sports injury brace,M-Brace,PUSH brace,PSB brace,ACL Brace,wrist brace,knee brace,back brace,ankle brace,elbow brace,OA brace,osteoarthritis brace,Hely and Weber,QM Brace,therapy bed,physiotherapy bed,dropfoot,foot drop,WalkAide,Walkaid');
?>
<div class="subNavProductsWrapper">
<div class="subNavProducts">
<ul>
<?php
foreach ($categories as $category) {
if(count($category['products']) > 0){
?>
<li><a href="/category/<?php echo $category['id']?>" <?php if($category['id'] == $productsByCategory[0]['Category']['id']){ echo "class=\"active\"";}?>><?php echo $category['name']?></a></li>
<?php
}
}
?>
</ul>
</div>
</div>
<!-- Title section -->
<div class="mainTitleProductSection">
<?php echo $productsByCategory[0]['Category']['name']?><br />
<img src="/img/common/bottomline_titles.jpg" width="288" height="23" />
</div>
<!-- Main Feature -->
<div class="wrapperProductSection">
<?php
$counter = 0;
foreach ($productsByCategory as $product) {
?>
<div class="thumbProduct">
/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/src
/View
/ProductCategories
/category.ctp
<?php
/* @var $this View */
use Cake\I18n\Time;
$this->assign('title', 'Canadian Orthopaedic Supply - Products - ' . $productsByCategory[0]['Category']['name']);
$this->assign('meta-description', 'We bring you the newest innovations in bracing, cast clinic tools and supplies, electrotherapy machines, treatment beds and WalkAide system.');
$this->assign('meta-keywords', 'Canadian Orthopaedic Supply,Canadian Orthopedic Supply,COS,PUSH Ortho CMC Thumb Brace,PUSH metagrip brace,De Soutter Cast Saws Canada,Cast Saws Canada,Enraf-Nonius Canada,IFC Machine,Interferential Current Machine,Electrotherapy machine,ultra sound machine,ultrasound machine,Carpal tunnel wrist brace,bracing,sports injury brace,M-Brace,PUSH brace,PSB brace,ACL Brace,wrist brace,knee brace,back brace,ankle brace,elbow brace,OA brace,osteoarthritis brace,Hely and Weber,QM Brace,therapy bed,physiotherapy bed,dropfoot,foot drop,WalkAide,Walkaid');
?>
<div class="subNavProductsWrapper">
<div class="subNavProducts">
<ul>
<?php
foreach ($categories as $category) {
if(count($category['products']) > 0){
?>
<li><a href="/category/<?php echo $category['id']?>" <?php if($category['id'] == $productsByCategory[0]['Category']['id']){ echo "class=\"active\"";}?>><?php echo $category['name']?></a></li>
<?php
}
}
?>
</ul>
</div>
</div>
<!-- Title section -->
<div class="mainTitleProductSection">
<?php echo $productsByCategory[0]['Category']['name']?><br />
<img src="/img/common/bottomline_titles.jpg" width="288" height="23" />
</div>
<!-- Main Feature -->
<div class="wrapperProductSection">
<?php
$counter = 0;
foreach ($productsByCategory as $product) {
?>
<div class="thumbProduct">
/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/Vendor
/cakephp
/cakephp
/lib
/Cake
/View
/View.php
throw new CakeException(__d('cake_dev', 'The "%s" block was left open. Blocks are not allowed to cross files.', $this->Blocks->active()));
}
return $content;
}
/**
* Sandbox method to evaluate a template / view script in.
*
* @param string $viewFile Filename of the view
* @param array $dataForView Data to include in rendered view.
* If empty the current View::$viewVars will be used.
* @return string Rendered output
*/
protected function _evaluate($viewFile, $dataForView) {
$this->__viewFile = $viewFile;
extract($dataForView);
ob_start();
include $this->__viewFile;
unset($this->__viewFile);
return ob_get_clean();
}
/**
* Loads a helper. Delegates to the `HelperCollection::load()` to load the helper
*
* @param string $helperName Name of the helper to load.
* @param array $settings Settings for the helper
* @return Helper a constructed helper object.
* @see HelperCollection::load()
*/
public function loadHelper($helperName, $settings = array()) {
return $this->Helpers->load($helperName, $settings);
}
/**
* Returns filename of given action's template file (.ctp) as a string.
* CamelCased action names will be under_scored! This means that you can have
/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/Vendor
/cakephp
/cakephp
/lib
/Cake
/View
/View.php
*
* @param string $viewFile Filename of the view
* @param array $data Data to include in rendered view. If empty the current View::$viewVars will be used.
* @return string Rendered output
* @triggers View.beforeRenderFile $this, array($viewFile)
* @triggers View.afterRenderFile $this, array($viewFile, $content)
* @throws CakeException when a block is left open.
*/
protected function _render($viewFile, $data = array()) {
if (empty($data)) {
$data = $this->viewVars;
}
$this->_current = $viewFile;
$initialBlocks = count($this->Blocks->unclosed());
$eventManager = $this->getEventManager();
$beforeEvent = new CakeEvent('View.beforeRenderFile', $this, array($viewFile));
$eventManager->dispatch($beforeEvent);
$content = $this->_evaluate($viewFile, $data);
$afterEvent = new CakeEvent('View.afterRenderFile', $this, array($viewFile, $content));
$afterEvent->modParams = 1;
$eventManager->dispatch($afterEvent);
$content = $afterEvent->data[1];
if (isset($this->_parents[$viewFile])) {
$this->_stack[] = $this->fetch('content');
$this->assign('content', $content);
$content = $this->_render($this->_parents[$viewFile]);
$this->assign('content', array_pop($this->_stack));
}
$remainingBlocks = count($this->Blocks->unclosed());
if ($initialBlocks !== $remainingBlocks) {
throw new CakeException(__d('cake_dev', 'The "%s" block was left open. Blocks are not allowed to cross files.', $this->Blocks->active()));
}
/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/Vendor
/cakephp
/cakephp
/lib
/Cake
/View
/View.php
* View and layout names can point to plugin views/layouts. Using the `Plugin.view` syntax
* a plugin view/layout can be used instead of the app ones. If the chosen plugin is not found
* the view will be located along the regular view path cascade.
*
* @param string $view Name of view file to use
* @param string $layout Layout to use.
* @return string|null Rendered content or null if content already rendered and returned earlier.
* @triggers View.beforeRender $this, array($viewFileName)
* @triggers View.afterRender $this, array($viewFileName)
* @throws CakeException If there is an error in the view.
*/
public function render($view = null, $layout = null) {
if ($this->hasRendered) {
return null;
}
if ($view !== false && $viewFileName = $this->_getViewFileName($view)) {
$this->_currentType = static::TYPE_VIEW;
$this->getEventManager()->dispatch(new CakeEvent('View.beforeRender', $this, array($viewFileName)));
$this->Blocks->set('content', $this->_render($viewFileName));
$this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($viewFileName)));
}
if ($layout === null) {
$layout = $this->layout;
}
if ($layout && $this->autoLayout) {
$this->Blocks->set('content', $this->renderLayout('', $layout));
}
$this->hasRendered = true;
return $this->Blocks->get('content');
}
/**
* Renders a layout. Returns output from _render(). Returns false on error.
* Several variables are created for use in layout.
*
* - `title_for_layout` - A backwards compatible place holder, you should set this value if you want more control.
* - `content_for_layout` - contains rendered view file
* - `scripts_for_layout` - Contains content added with addScript() as well as any content in
/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/Vendor
/cakephp
/cakephp
/lib
/Cake
/Controller
/Controller.php
list($plugin, $className) = pluginSplit($model);
$this->request->params['models'][$className] = compact('plugin', 'className');
}
}
$this->View = $this->_getViewObject();
$models = ClassRegistry::keys();
foreach ($models as $currentModel) {
$currentObject = ClassRegistry::getObject($currentModel);
if ($currentObject instanceof Model) {
$className = get_class($currentObject);
list($plugin) = pluginSplit(App::location($className));
$this->request->params['models'][$currentObject->alias] = compact('plugin', 'className');
$this->View->validationErrors[$currentObject->alias] =& $currentObject->validationErrors;
}
}
$this->autoRender = false;
$this->response->body($this->View->render($view, $layout));
return $this->response;
}
/**
* Returns the referring URL for this request.
*
* @param string $default Default URL to use if HTTP_REFERER cannot be read from headers
* @param bool $local If true, restrict referring URLs to local server
* @return string Referring URL
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::referer
*/
public function referer($default = null, $local = false) {
if (!$this->request) {
return '/';
}
$referer = $this->request->referer($local);
if ($referer === '/' && $default && $default !== $referer) {
return Router::url($default, !$local);
}
/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/Vendor
/cakephp
/cakephp
/lib
/Cake
/Routing
/Dispatcher.php
* action are returned.
*
* @param Controller $controller Controller to invoke
* @param CakeRequest $request The request object to invoke the controller for.
* @return CakeResponse the resulting response object
*/
protected function _invoke(Controller $controller, CakeRequest $request) {
$controller->constructClasses();
$controller->startupProcess();
$response = $controller->response;
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
$render = false;
$response = $result;
}
if ($render && $controller->autoRender) {
$response = $controller->render();
} elseif (!($result instanceof CakeResponse) && $response->body() === null) {
$response->body($result);
}
$controller->shutdownProcess();
return $response;
}
/**
* Applies Routing and additionalParameters to the request to be dispatched.
* If Routes have not been loaded they will be loaded, and app/Config/routes.php will be run.
*
* @param CakeEvent $event containing the request, response and additional params
* @return void
*/
public function parseParams($event) {
$request = $event->data['request'];
Router::setRequestInfo($request);
$params = Router::parse($request->url);
$request->addParams($params);
/var
/www
/vhosts
/canortho.com
/httpdocs
/app
/Vendor
/cakephp
/cakephp
/lib
/Cake
/Routing
/Dispatcher.php
$request = $beforeEvent->data['request'];
if ($beforeEvent->result instanceof CakeResponse) {
if (isset($request->params['return'])) {
return $beforeEvent->result->body();
}
$beforeEvent->result->send();
return null;
}
$controller = $this->_getController($request, $response);
if (!($controller instanceof Controller)) {
throw new MissingControllerException(array(
'class' => Inflector::camelize($request->params['controller']) . 'Controller',
'plugin' => empty($request->params['plugin']) ? null : Inflector::camelize($request->params['plugin'])
));
}
$response = $this->_invoke($controller, $request);
if (isset($request->params['return'])) {
return $response->body();
}
$afterEvent = new CakeEvent('Dispatcher.afterDispatch', $this, compact('request', 'response'));
$this->getEventManager()->dispatch($afterEvent);
$afterEvent->data['response']->send();
}
/**
* Initializes the components and models a controller will be using.
* Triggers the controller action, and invokes the rendering if Controller::$autoRender
* is true and echo's the output. Otherwise the return value of the controller
* action are returned.
*
* @param Controller $controller Controller to invoke
* @param CakeRequest $request The request object to invoke the controller for.
* @return CakeResponse the resulting response object
*/
protected function _invoke(Controller $controller, CakeRequest $request) {
/var
/www
/vhosts
/canortho.com
/httpdocs
/index.php
if (php_sapi_name() == 'cli-server') {
if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT . $_SERVER['REQUEST_URI'])) {
return false;
}
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
}
if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
$failed = true;
}
if (!empty($failed)) {
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
}
App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);