Back to top

Autore Topic: Sintassi html/php per installazione componente  (Letto 1381 volte)

Offline pisolino1976

  • Esploratore
  • **
  • Post: 173
    • Mostra profilo
Sintassi html/php per installazione componente
« il: 17 Ago 2009, 20:04:25 »
Ho intenzione di installare Phoca Sef che secondo le instruzioni fornite consente tra le altre cose di scovare i link che danno errore.

Per installarlo vengono fornite queste istruzioni:

For successfully running of this component, Joomla! core file needs to be edited. Please do this change only if you know what you are doing. Before it, backup the edited file. Edit the libraries/joomla/error/error.php file (with help of text editor), add into the "raiseError" method (row + - 169) the following code:

   <?php
//PHOCAEDIT
if ($code == '404') {
    include_once( JPATH_ADMINISTRATOR.DS.'components'.DS.
      'com_phocasef'.DS.'helpers'.DS.'phocasef.php' );
    PhocaSefHelper::createUrlEntry();
}
//PHOCAEDIT
?>

Copy the code which begins with //Phocaedit and ends with //Phocaedit (don't copy and paste the php beginning and ending tags). You should paste it before:
$reference = & JError::raise(E_ERROR, $code, $msg, $info, true)

Save the file. Now the Phoca SEF is installed.


Siccome non ci capisco nulla di PHP, Html, ecc... mi sapete dire qual'è la sintassi corretta del testo finale del listato del mio file error.php.:

/**
    * Wrapper method for the {@link raise()} method with predefined error level of E_ERROR and backtrace set to true.
    *
    * @static
    * @param   string   $code   The application-internal error code for this error
    * @param   string   $msg   The error message, which may also be shown the user if need be.
    * @param   mixed   $info   Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).
    * @return   object   $error   The configured JError object
    * @since   1.5
    */
   function & raiseError($code, $msg, $info = null)
   {
      $reference = & JError::raise(E_ERROR, $code, $msg, $info, true);
      return $reference;
   }
« Ultima modifica: 23 Ago 2009, 17:16:03 da pisolino1976 »

Offline pisolino1976

  • Esploratore
  • **
  • Post: 173
    • Mostra profilo
Re:Sintassi html/php per installazione componente
« Risposta #1 il: 20 Ott 2009, 12:14:09 »
Scusate se richiamo questo vecchio post ma qualcuno può darmi una mano? :-[

 



Web Design Bolzano Kreatif