Ver Mensaje Individual
  #4  
Antiguo 10-11-2010
Avatar de ramflores
ramflores ramflores is offline
Miembro
 
Registrado: may 2005
Ubicación: Monterrey, Mex.
Posts: 87
Reputación: 19
ramflores Va por buen camino
Estoy tatando de hacer el ejemplo de la pagina que me pasaste, pero no me remplaza los objetos, solo me despliega el mismo texto

index.php

<?php
require_once("rpcl/rpcl.inc.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");
use_unit("qooxdoo/stdctrls.inc.php");

//Class definition
class Unit1 extends Page
{
public $LblNombre = null;
public $EdName = null;
public $btnLogin = null;
function btnLoginClick($sender, $params)
{
$this->LblNombre->Caption = 'Benvenido ... ' . $this->EdName->Text;
$this->LblNombre->Visible = true;
}
}

global $application;

global $Unit1;


global $nombre;

//Creates the form
$Unit1=new Unit1($application);

//Read from resource file
$Unit1->loadResource(__FILE__);

//Shows the form
$Unit1->show();

?>


index.html

<html>
<head>
<title></title>
<meta content="text/html; charset=unicode" http-equiv="Content-Type" />
</head>
<body>
<table border="1" cellspacing="1" cellpadding="1" width="300">
<tbody>
<tr>
<td>{$EdName}</td>
<td>{$btnLogin}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>{$LblNombre}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</body>
</html>

Tambien modifique las propiedades del php, para lo del template:
__________________
Gracias de antemano
Saludos ........
---------------------------------
Ramiro Flores
Responder Con Cita