Try this
Code: Select all
if (isset($REQUEST_['path'])) {
$path = $REQUEST_['path'];
echo "TEST";
echo $path;
}
You got your underscore in the wrong spot..billyggla wrote:Try this
Code: Select all
if (isset($REQUEST_['path'])) { $path = $REQUEST_['path']; echo "TEST"; echo $path; }
should be $_REQUEST['path']
But still, the original code was fine, you just aren't passing "path" as a POST variable so you will never see the echo
Hey guys,
I have a similar question. I am using
Unfortunately after SEO URL option is enabled, there is no more 'path'. How can I check if it is a category and which specific category it is?
Thanks in advance.
I have a similar question. I am using
Code: Select all
<?php if (isset($_GET['path'])) { ?>
Thanks in advance.
Уеб дизайн и SEO услуги от metaGraphics Design Studio
Check my ShopperLand Premium theme
Check my ModernStore Premium theme
At that point $_GET is no longer used. The seo_url controller then sets its values using $this->request. So use:d_koev wrote:Hey guys,
I have a similar question. I am using
Unfortunately after SEO URL option is enabled, there is no more 'path'. How can I check if it is a category and which specific category it is?Code: Select all
<?php if (isset($_GET['path'])) { ?>
Thanks in advance.
Code: Select all
$this->request->get['path']
Thanks, Qphoria!
You made my day!
Everything is fine now.
You made my day!
Everything is fine now.
Уеб дизайн и SEO услуги от metaGraphics Design Studio
Check my ShopperLand Premium theme
Check my ModernStore Premium theme
Hey guys, it is me again.
I have similar problem again. I want the slider to appear only on home page. I am using this construction:
The problem is that when you first reach the index page 'route' is still not set. Any advice would be highly appreciated. How can I made the silder to appear only when it is home page, even if 'route' is not set yet?
Thanks in advance
Dimitar
I have similar problem again. I want the slider to appear only on home page. I am using this construction:
Code: Select all
<?php if (isset($_GET['route'])) { ?>
<?php $id = $_GET['route']; ?>
<?php } ?>
<?php if ($id == "common/home") { ?>
<div id="slider"></div>
<?php } else { ?>
<?php echo "" ?>
<?php } ?>
Thanks in advance
Dimitar
Уеб дизайн и SEO услуги от metaGraphics Design Studio
Check my ShopperLand Premium theme
Check my ModernStore Premium theme
Corrected & Simplified:
Code: Select all
<?php if (!isset($this->request->get['route']) || (isset($this->request->get['route']) && $this->request->get['route'] == 'common/home')) { ?>
<div id="slider"></div>
<?php } ?>
Thank you Qphoria. You're great help in this community.
Уеб дизайн и SEO услуги от metaGraphics Design Studio
Check my ShopperLand Premium theme
Check my ModernStore Premium theme
Who is online
Users browsing this forum: No registered users and 2 guests