Jump to content

header.php


munch

Recommended Posts

Ahoj lidi, jsem to nový a potřebuju radu, když chci nainstalovat modul který vyžaduje editaci prestashop/header.php po otevření header.php na mě vyskočí jen tahle zpráva a nic víc

<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 1.4 $
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/

$controller = new FrontController();
$controller->displayHeader();

prosím poradte někdo jak otevřít a editovat header.php děkuji

Link to comment
Share on other sites

tak do tohodle souboru bych nešahal , asi si se splet , nechceš spiš editovat header.tpl ?


ne ne, konkrétně to je modul wiznav 2.1.3
v readme stojí:


Just upload content inside the "UPLOAD" folder and install at your BO

Important for hook activation

Open your header.php file and edit around line 12 this:

===================================================================
$smarty->assign(array(
'HOOK_HEADER' => Module::hookExec('header'),
'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),
'HOOK_TOP' => Module::hookExec('top'),
'static_token' => Tools::getToken(false),
'token' => Tools::getToken(),
'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
'content_only' => intval(Tools::getValue('content_only'))
));
===================================================================

To this:

===================================================================
$smarty->assign(array(
'HOOK_HEADER' => Module::hookExec('header'),
'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),
'HOOK_WIZNAV' => Module::hookExec('wiznav'),
'HOOK_TOP' => Module::hookExec('top'),
'static_token' => Tools::getToken(false),
'token' => Tools::getToken(),
'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
'content_only' => intval(Tools::getValue('content_only'))
));




header.tpl je editovatelnej jednoduše jen otevřu a jedu ale ten header.php je problém, jsem vtom zatim lama mam zkušenosti akorát s html ale snažim se to nějak postupně vstřebávat


tuk66 moc děkuji za odpověd ale jak už jsem psal jsem vtom zatim lama, nešlo by poradit trošku polopatě jak se ktomu header.php dohrabu? :) předem děkuji za odpověď
Link to comment
Share on other sites

vo verzii PS 1.4.1
upravis \classes\FrontController.php
takto

self::$smarty->assign(array(
           'HOOK_HEADER' => Module::hookExec('header'),
                    'HOOK_WIZNAV' => Module::hookExec('wiznav') ,
           'HOOK_TOP' => Module::hookExec('top'),
           'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn')
       ));


Link to comment
Share on other sites

vo verzii PS 1.4.1
upravis \classes\FrontController.php
takto
self::$smarty->assign(array(
           'HOOK_HEADER' => Module::hookExec('header'),
                    'HOOK_WIZNAV' => Module::hookExec('wiznav') ,
           'HOOK_TOP' => Module::hookExec('top'),
           'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn')
       ));




děkuji ti!!!! fakt moc diky, konečně se mužu pohnout dál a díky tomu už to začínám i chápat, ještě jednou díky!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...