Jump to content

Hari KT

Members
  • Posts

    131
  • Joined

  • Last visited

Everything posted by Hari KT

  1. Hi @Soma, The above mentioned one is saving the page first. My idea is to validate the fields before I save the page.
  2. Basically what I am doing is trying to build the form depending on the template . public function buildForm() { $form = $this->modules->get('InputfieldForm'); $form->set('protectCSRF', false); $template = $this->templates->get($template); foreach ($template->fields as $field) { $f = $this->modules->get('InputfieldText'); $f->name = $field->get('name'); $f->required = $field->get('required'); $form->add($f); } return $form; } So I could do a $form->processInput($this->input->post); One of the problem here is the field is always Text. Is there a better way to pass the field to the form, so the other properties can also be validated. Eg : Email, Url etc. Also even there is input with post values it is showing error, that the value is required in $form->getErrorrs() Thank you.
  3. Hi, I was looking whether I can validate the page before it is saved and get errors . Eg : $page = new Page(); $page->template = 'some-template'; $page->field1 = 'some-value'; $page->setOutputFormatting(true); $page->save(); Assume there is $page->field2 which is also required. Is there a way I can validate and get the errors?
  4. I thought it was really @ArvindKejriwal calling me, and finally I understood it was a recorded call :P .

  5. Announcing the Zend Framework 3 Roadmap - Zend Framework - Zend Framework http://t.co/yp0SgLwIll via @zfdevteam

  6. RT @enygma: it’s cool to see people more organically finding Gatekeeper for auth* and installing it than having to broadcast about it.

  7. RT @davedevelopment: Also published episode 14 of @thatpodcast yesterday, Beau and I talk about our plans for 2015 http://t.co/p93KvofWYj

  8. RT @xdebug: Xdebug 2.2.7 has been released: http://t.co/ct52khEk0V

  9. RT @beausimensen: I'm bringing the first three #ossart "twig" prints to #phpbnl15! Want one? :)http://t.co/T57tKjeUS4

  10. RT @beausimensen: New post: DDD, CQRS, and Event Sourcing Related Talks at PHP Benelux 2015 on @ddd_io #phpbnl15http://t.co/aUIplKsw09

  11. Coals, steam engines ...

  12. Middleware can help you http://t.co/rO1pOjtuA6 . I have replied how to use with conduit + auraphp router and dispatcher. / @mwop @pmjones

  13. The good thing is I have not written any code apart from a few middleware and combining a few @auraphp components. Thank you @pmjones .

  14. RT @enygma: it’s cool when someone says “I did this because of your email newsletter” (referencing the @SecuringPHP newsletter)

  15. Trying to replicate a bug which was fixed months back. Blame me :), I should have checked what version it was first.

  16. RT @pmjones: DocMark: a DocBook-like static-site generator that uses Markdown and JSON. https://t.co/TYDdLT4hvi

  17. RT @brandonsavage: All the stuff they’re removing from PHP 7 is stuff I stopped using because I was told to stop using it years ago. This i…

  18. RT @Ocramius: #doctrine2 ORM 2.5.0-alpha1 is here! http://t.co/85bvwQwH60 Please try it out and help us going through the planned 2.5.0 rel…

  19. One of the things that I hate about Aura.View : "It could not load templates automatically". #performance matters

  20. Japanese translation https://t.co/BEUShydWIz for @auraphp is having good progress. Thank you @koriym and team. Don't know others handles :-/

  21. RT @nikita_ppv: All currently deprecated functionality will be removed in PHP 7: https://t.co/lu68xstttN

×
×
  • Create New...