Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
WHMCS PHP Incluir

Estoy tratando de incluir analytic.php en head.tpl en WHMCS pero me sigue dando un error.

Ubicación de Analytic.php: root/analytic.php

Ubicación de Head.tpl: root/whmcs/template/six/includes/head.tpl

Vi en Google, WHMCS acepta Smarty PHP, por lo que estoy tratando de incluir con Smarty PHP Code en head.tpl .

Código:

 {include_php file="../../../../analytic.php"};

También probé:

 {php}{include_php file="../../../../analytic.php"};{/php}

Nota: ya he habilitado Smarty PHP en WHMCS

Pero cuando ingreso el código, el sitio WHMCS deja de funcionar :(. ¿Cuál es la solución para incluir el archivo PHP dentro del archivo WHMCS o .tpl ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

include_php está obsoleto a partir de Smarty 3.1. {php}NO!{include_php file="../../../../analytic.php"};NO!{/php} es totalmente incorrecto.

debe crear el archivo 'analytics.tpl' y luego incluirlo {include} , el archivo puede contener un script de análisis.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!