Ciao Criric,
forse ci siamo!! Se tu fossi qua ti darei un bacio!!
Diciamo che ancora non mi funziona, ma vedo dei risultati e quindi penso perchè sono io che sto sbagliando qualcosa......
diciamo che questa è la mia pagina index.php:
------------------------------------------------------------------------------------------------------
PHP:
<?php
/*
* 2007-2012 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 <[email protected]>
* @copyright 2007-2012 PrestaShop SA
* @version Release: $Revision: 14007 $
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('IndexController')->run();
-------------------------------------------------------------------------------------------------
a questa io gli ho aggiunto pari pari come mi hai suggerito tu questo pezzo:
---------------------------------------------------------------------------------------------------
PHP:
<?php
//inizializzi la sessione
session_start();
// se non è settata la sessione intro
if (!$_SESSION["INTRO"]) {
// rimandi alla intro che si occupera tra l'altro di settarla
header('location:intro.php');
}
// altrimenti vai avanti con la tua pagina
// al massimo puoi distruggere la sessione per rimandare l'utente all'introduzione al prossimo caricamento della index
unset($_SESSION["INTRO"]);
?>
quindi mi è venuto fuori così:
PHP:
<?php
//inizializzi la sessione
session_start();
// se non è settata la sessione intro
if (!$_SESSION["INTRO"]) {
// rimandi alla intro che si occupera tra l'altro di settarla
header('location:intro.php');
}
// altrimenti vai avanti con la tua pagina
// al massimo puoi distruggere la sessione per rimandare l'utente all'introduzione al prossimo caricamento della index
unset($_SESSION["INTRO"]);
?>
/*
* 2007-2012 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 <[email protected]>
* @copyright 2007-2012 PrestaShop SA
* @version Release: $Revision: 14007 $
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('IndexController')->run();
poi ho chiamato la mia pagina index.html intro.php (l'ho presa pari pari e rinominata) e gli ho aggiunto il codice sempre da te suggerito all'inizio :
PHP:
<?php
//inizializzi la sessione
session_start();
//inizializzi la sessione intro
$_SESSION["INTRO"] = true;
// rimandi alla index dopo tot secondi
header("refresh:10;url=index.php");
?>
Risultato che adesso come prima pagina iniziale mi viene fuori giustamente intro.php però purtroppo mi va in loop e mi carica sempre lei e non index.php.
Sicuramente sto sbagliando qualcosa io........
Dove sta l'inghippo?
Ti ringrazio ancora per l'eventuale ulteriore aiuto
Ciao
Deepspac