Iforp
Iforp
-1 becase I'm agree with @tugrul > Mail component currently not required for phalcon. There is a lot of library component for this job. It's better to focus on other...
Hi! You marked this issue as a bug. Does it means this is the docs bug, or setParameter is deprecated?
I think throwing an exception is the correct behavior. If you don't care about negative values the best solution would be ``` php $currentPage = max(1, $this->request->getQuery('page', 'int', 1)); ```...
@nikolasha is absolutely right. `var_dump(strip_tags('')); // string(0) ""` and your other examples is expected behavior, but error on saving **valid** empty string is unobvious. > If an empty string is...
In my application I want to control data types. Null and empty string is not the same type. For example in a REST request: ``` code http://localhost/api/products?name= ``` ``` php...
Thanks for your answers. In these ways I can solve my current problem. But the real problem is the lack of flexibility. For example look at the Yii solution ```...
> 2 . Convert empty strings into raw values ``` php $note = new Notes(); $note->note = new Phalcon\Db\RawValue(''); $note->save(); // PDOException: Syntax error or access violation ``` cause it...
Thanks! I followed the documentation: `Or, you can modify specific routes to optionally accept trailing slashes:` ``` php $router->add( "/{language:[a-z]{2}}/:controller[/]{0,1}", array( "controller" => 2, "action" => "index" ) ); ```...