Caracter Estranhos Olá, ao salvar pagina fica com caracters estranhos ...
RB
Caracter Estranhos  
Olá, ao salvar pagina fica com caracters estranhos

 
  1. <?php
  2. class Cliente extends TPage
  3. {
  4. /**
  5. * Constructor method
  6. */
  7. //protected $hbox_actions;
  8. protected $container;
  9. public function __construct()
  10. {
  11. parent::__construct();
  12. try
  13. {
  14. // create the HTML Renderer
  15. $this->html = new THtmlRenderer('app/view/clienteRender.html');
  16. // define replacements for the main section
  17. $replace = array();
  18. // replace the main section variables
  19. $this->html->enableSection('main', $replace);
  20. // Table wrapper (form and HTML)
  21. $this->container = new TVBox;
  22. $this->container->style = 'width:100%';
  23. $this->container->add($this->html);
  24. parent::add($this->container);
  25. }
  26. catch (Exception $e)
  27. {
  28. new TMessage('error', $e->getMessage());
  29. }
  30. }
  31. public static function onChangeAction($param)
  32. {
  33. if ($param['cliente_tipo'] == 1)
  34. {
  35. AdiantiCoreApplication::loadPage('Cliente','onFisico');
  36. }
  37. if ($param['cliente_tipo'] == 2)
  38. {
  39. AdiantiCoreApplication::loadPage('Cliente','onJuridico');
  40. }
  41. }
  42. /**
  43. * Executed when the user clicks at the action1 button
  44. */
  45. public function onFisico()
  46. {
  47. $datagrid = new DataGridClienteFisico;
  48. $str = get_class($datagrid);
  49. $replace = array();
  50. $replace['widget'] = $datagrid;
  51. $replace['class'] = get_class($datagrid);
  52. $replace['cliente'] = substr($str,15);
  53. //replace the object section variables
  54. $this->html->enableSection('object', $replace);
  55. }
  56. /**
  57. * Executed when the user clicks at the action2 button
  58. */
  59. public function onJuridico()
  60. {
  61. $datagrid = new DataGridClienteJuridico;
  62. $str = get_class($datagrid);
  63. $replace = array();
  64. $replace['widget'] = $datagrid;
  65. $replace['class'] = get_class($datagrid);
  66. $replace['cliente'] = substr($str,15);
  67. // replace the object section variables
  68. $this->html->enableSection('object', $replace);
  69. }
  70. }

Curso Dominando o Adianti Framework

O material mais completo de treinamento do Framework.
Curso em vídeo aulas + Livro completo + Códigos fontes do projeto ERPHouse.
Conteúdo Atualizado!


Dominando o Adianti Framework Quero me inscrever agora!

Comentários (2)


MC

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.
RB

Olá, pessoal.

Problema corrigido, reescrevi a classe e voltou a funcionar.