-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extends \Phalcon\Tag #2402
Comments
Hi <?php
class MyTag extends \Phalcon\Tag
{
public function getDisplayValues()
{
return self::$_displayValues;
}
}
$tagTest = new MyTag; $tagTest->setDefault('testField1', 11);
var_dump($tagTest->getDisplayValues()); output zaets28rus@web-server:~/projects/phalcon-1.3.0/build$ php test.php
array(1) {
'testField1' =>
int(11)
} If you past more code about how use it next after setDefault metho, i can help |
Insufficiently single call setDefault method for my example. I intentionally write above: $this->tag->setDefault('field1', 11);
$this->tag->setDefault('field2', 22);
$this->tag->setDefault('field3', 33); For your example: $tagTest->setDefault('testField1', 11);
$tagTest->setDefault('testField2', 22);
$tagTest->setDefault('testField3', 33); output is
|
ovr
added a commit
to ovr/cphalcon
that referenced
this issue
May 10, 2014
I fixed this, test latest 1.3.2 branch from ext forlder and closed if its okey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone!
First of all thanks for this great framework!!!
I'm trying to extends \Phalcon\Tag class, to override the getValue() method. I want to get value from the POST array for the form fields with names like array (e.g. user[email]).
But when I simply extends the class:
stopped correct working the setDefault() method :( In array _displayValues only have the last assigned value. Also desired function getValue() do not overridden.
This is a bug or am I doing something wrong?
OS: Windows 8 (local server)
php 5.4.13 / 5.5.10
Phalcon 1.3.1
My code examples:
...
The next step in the my controller I write this code:
As a result, the first two fields are clean, and the third set the desired value to me.
The text was updated successfully, but these errors were encountered: