Ver Mensaje Individual
  #9 (permalink)  
Antiguo 10/05/2011, 10:59
augustocarhue
 
Fecha de Ingreso: mayo-2010
Mensajes: 50
Antigüedad: 14 años
Puntos: 1
Respuesta: Problema con php y mysql.

DEJO EL CODIGO DEL INDEX DE MI RAIZ.

Código PHP:
<?php
/**
* @version        $Id: index.php 14401 2010-01-26 14:10:00Z louis $
* @package        Joomla
* @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license        GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Set flag that this is a parent file
define'_JEXEC');

define('JPATH_BASE'dirname(__FILE__) );

define'DS'DIRECTORY_SEPARATOR );

require_once ( 
JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( 
JPATH_BASE .DS.'includes'.DS.'framework.php' );

JDEBUG $_PROFILER->mark'afterLoad' ) : null;

/**
 * CREATE THE APPLICATION
 *
 * NOTE :
 */
$mainframe =& JFactory::getApplication('site');

/**
 * INITIALISE THE APPLICATION
 *
 * NOTE :
 */
// set the language
$mainframe->initialise();

JPluginHelper::importPlugin('system');

// trigger the onAfterInitialise events
JDEBUG $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');

/**
 * ROUTE THE APPLICATION
 *
 * NOTE :
 */
$mainframe->route();

// authorization
$Itemid JRequest::getInt'Itemid');
$mainframe->authorize($Itemid);

// trigger the onAfterRoute events
JDEBUG $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');

/**
 * DISPATCH THE APPLICATION
 *
 * NOTE :
 */
$option JRequest::getCmd('option');
$mainframe->dispatch($option);

// trigger the onAfterDispatch events
JDEBUG $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');

/**
 * RENDER  THE APPLICATION
 *
 * NOTE :
 */
$mainframe->render();

// trigger the onAfterRender events
JDEBUG $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');

/**
 * RETURN THE RESPONSE
 */
echo JResponse::toString($mainframe->getCfg('gzip'));

AHORA DEJO EL CODIGO PHP DE LA PLANTILLA QUE TENDRIA QUE VERSE. OSEA DE LA QUE LA WEB TENDRIA QUE ABRIR.

Código PHP:
<?php
/*
 *  (C) 2009 - 2011 SiteGround.com - All Rights Reserved.
 *  General Public License version 3 or later; see LICENSE.txt
    
 *This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.

 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

defined'_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage'tpl_SG1' );
define'path'dirname(__FILE__) );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" >
<head>
<jdoc:include type="head" />
<?php
    $menu_name        
$this->params->get("menuName""topmenu");
    
$menu_type        $this->params->get("menuType""splitmenu");
    require(
path .DS."styleloader.php");
    require(
path .DS."utils.php");
?>
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>

<body id="page_bg">
    <div id="wrapper">
        <div id="header">
            <div id="search"><jdoc:include type="modules" name="user4" /></div>
                <div class="logo">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <h1><a href="http://www.haytalento.com.ar"><img src="http://www.haytalento.com.ar/logo.png" width="258" height="250" border="0" /></a></h1>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="newsflash<?php if(!$this->countModules('user1') and JRequest::getCmd('layout') != 'form') : ?> only<?php endif; ?>">
                    <jdoc:include type="modules" style="rounded" name="top" />
                </div>
                <div class="clr"></div>
        </div>
        
        <div id="content">
        
            <div id="pillmenu">
                <?php if($mtype != "module") :
                echo 
$mainnav;
                else: 
?>
                <jdoc:include type="modules" name="user3" />
                <?php endif; ?>
            </div>
            <div class="clr"></div>
            
            <div class="content_m">
                <div class="content_t">
        
                <?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
                <div id="leftcolumn">
                    <jdoc:include type="modules" name="left" style="rounded" />
                    <br />
                    <?php $sg 'banner'; include "templates.php"?>
                    <br />
                </div>
                <?php endif; ?>
                
                <?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
                <div id="maincolumn">            
                <?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
                <div id="maincolumn_left">
                <?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
                <div id="maincolumn_right">
                <?php else: ?>
                <div id="maincolumn_full">
                <?php endif; ?>
                
                    <div class="nopad">
                        <jdoc:include type="message" />
                        <?php if($this->params->get('showComponent')) : ?>
                            <jdoc:include type="component" />
                        <?php endif; ?>
                    </div>
                    
                </div>
                    
                <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
                <div id="rightcolumn">
                    <jdoc:include type="modules" name="right" style="rounded" />
                </div>
                <?php endif; ?>
                <div class="clr"></div>
                            
                </div>
            </div>
        </div>
        
        <div id="footer">
            <div id="sgf">
              <p>
                    <jdoc:include type="modules" name="debug" />
                    &copy; Copyright 2011 www.haytalento.com.ar | <a href="http://www.haytalento.com.ar/index.php?option=com_content&amp;view=article&amp;id=47">contacto</a> | dise&ntilde;o: <a href="http://www.aswebmaster.com.ar" target="_blank">www.aswebmaster.com.ar</a>                </a></p>
          </div>
        </div>
        
    </div>    
</body>
</html>
ESPERO QUE PUEDAN AYUDAR.