Closed mitsu7788 closed 10 years ago
@mitsu7788,
Is it fixed if you change L#155 to is_null($uri) and $uri = static::string();
?
@codeChap
Thank you for your suggestion.
@WanWizard
Yes, my problem has been resolved.
Sorry, I found one side effect.
If form action is empty string, Form::open() doesn't generate current url.
my workaround: form/instance.php
109 > if( ! array_key_exists('action', $attributes) or $attributes['action'] === null)
to
109> if( ! array_key_exists('action', $attributes) or $attributes['action'] === null or $attributes['action'] === '')
\Uri::main() returns the active URI on HMVC context when main request URI is an empty string (i.e. http://mydomain/)