Posts by Anderson Danilo • 74 points
6 posts
-
1
votes1
answer691
viewsA: How to search for an element in XML with PHP?
You can use Xpath: Example: $content = "<usuarios> <fulano> <codigo>287983</codigo> <pontos>50</pontos> <nick>tal1</nick> </fulano>…
-
1
votes1
answer291
viewsA: How to get the contents of another table in Yii?
Hello, You can do it this way: http://www.yiiframework.com/wiki/721/view-a-related-field-in-cgridview/ 'columns' => array( 'funcionario.nome', // outras colunas... ),…
yiianswered Anderson Danilo 74 -
1
votes2
answers387
viewsA: Field validation Yiiframework
You can pass an array of templates to display errors, for example $form->errorSummary(array($modelContato, $modelTelefone));
yiianswered Anderson Danilo 74 -
3
votes1
answer1324
viewsA: The standard MVC Model class in PHP
Positives Your Model class is very reminiscent of the DAO (Data Access Object) classes, which separates the responsibility of rescuing objects (results) from the responsibility of representing the…
-
3
votes1
answer1709
viewsA: Function not defined with javascript
There are two possibilities The function really was not declared, you forgot to call your javascript file Is there an error in your javascript file before you declare the function You have placed…
-
1
votes2
answers198
viewsA: date validation
A good option is to use the php 'Datetime' object http://php.net/manual/en/datetime.createfromformat.php Example $date = DateTime::createFromFormat('d/m/Y', '28/07/2014'); Note: This function is…