RB
Caracter Estranhos
Olá, ao salvar pagina fica com caracters estranhos
- <?php
- class Cliente extends TPage
- {
- /**
- * Constructor method
- */
- //protected $hbox_actions;
- protected $container;
- public function __construct()
- {
- parent::__construct();
- try
- {
- // create the HTML Renderer
- $this->html = new THtmlRenderer('app/view/clienteRender.html');
- // define replacements for the main section
- $replace = array();
- // replace the main section variables
- $this->html->enableSection('main', $replace);
- // Table wrapper (form and HTML)
- $this->container = new TVBox;
- $this->container->style = 'width:100%';
- $this->container->add($this->html);
- parent::add($this->container);
- }
- catch (Exception $e)
- {
- new TMessage('error', $e->getMessage());
- }
- }
- public static function onChangeAction($param)
- {
- if ($param['cliente_tipo'] == 1)
- {
- AdiantiCoreApplication::loadPage('Cliente','onFisico');
- }
- if ($param['cliente_tipo'] == 2)
- {
- AdiantiCoreApplication::loadPage('Cliente','onJuridico');
- }
- }
- /**
- * Executed when the user clicks at the action1 button
- */
- public function onFisico()
- {
- $datagrid = new DataGridClienteFisico;
- $str = get_class($datagrid);
- $replace = array();
- $replace['widget'] = $datagrid;
- $replace['class'] = get_class($datagrid);
- $replace['cliente'] = substr($str,15);
- //replace the object section variables
- $this->html->enableSection('object', $replace);
- }
- /**
- * Executed when the user clicks at the action2 button
- */
- public function onJuridico()
- {
- $datagrid = new DataGridClienteJuridico;
- $str = get_class($datagrid);
- $replace = array();
- $replace['widget'] = $datagrid;
- $replace['class'] = get_class($datagrid);
- $replace['cliente'] = substr($str,15);
- // replace the object section variables
- $this->html->enableSection('object', $replace);
- }
- }
Boas,
Ela ja funcionava antes?, se sim tente voltar a versao anterior e ve se da o mesmo erro,
caso não, faça comparacao entre as versões.
Olá, pessoal.
Problema corrigido, reescrevi a classe e voltou a funcionar.