Jump to content

Hari KT

Members
  • Posts

    126
  • Joined

  • Last visited

Everything posted by Hari KT

  1. RT @igorwhiletrue: Instability bias: Well-designed tools get ignored, because the lack of required maintenance makes the projects appear "d…

  2. Some middleware experiments for @auraphp https://t.co/M6J7uMhQV3 , https://t.co/amvNR74amA and yes using Middleware of @slimphp /cc @codeguy

  3. Five Years of Cooperation & Community https://t.co/iueqAbh60Z . Thank you @saltybeagle for the post and snaps.

  4. RT @jose_zap: @bartosz_golek @bar4bor Take a look at AuraPHP and Bear.Sunday projects for inspiration. They are really good at that

  5. RT @AjeyGore: Ignore your LinkedIn invites and Facebook ones if you don't want to add them

  6. RT @nexik: @jeffrey_way AR is bad only if you use it everywhere. AR should be used only as DTO. I don't use AR often, but sometimes Mapper …

  7. RT @jeremeamia: .@grmpyprogrammer sings praises to Guzzle (https://t.co/JhyHKKKwr9) during his unit testing tutorial. #phptek /cc @mtdowling

  8. RT @JaydipParikh: Sonia Gandhi gave her resignation to Sonia Gandhi which was rejected by Sonia Gandhi because Sonia Gandhi said resignatio…

  9. RT @zeevs: Thanks Dmitry & Xinchen for relentlessly speeding PHP up! RT @planetphp: PHP 5.6 Benchmarks - Lorna Mitchell http://t.co/GY5vp0…

  10. Don't know why open-source have very closed development http://t.co/nUcO6DXLwk

  11. RT @brandonsavage: The framework you learn doesn’t really matter. http://t.co/QwojFAcKaT

  12. RT @pmjones: .@codeguy (/me finishes writing http://t.co/r9uJ6EP8Do and glances in your direction ;-)

  13. Watched Samantha Quiñones – Demystifying the REST API from @nomadphp http://t.co/GP3Yg60jHF . Thank you @engineyard for making it happen.

  14. Thank you @Soma. I have tried both examples. First one still need the output formatting turned off. Else I got the error. About the exit call : It will work. I do test whether the hook is called via exit . Thank you once again for the help. I appreciate.
  15. RT @SaraMG: #PHP #RFC Fixing session save handler return values https://t.co/fyRI2rvQZy

  16. RT @phpdeveloper: http://t.co/VlJQ9OPqTX: PHP 5.6.0beta3 Released: The http://t.co/VlJQ9OPqTX site has posted about the latest be... http:…

  17. Hey, I am working on a hook, and when a page is viewed I would like to trigger an event and save something. This is my hook public function init() { $this->addHook('Page::loaded', $this, 'pageViewed'); } public function pageViewed($event) { $page = $event->object; if ($page->template == 'my-template') { // $field = $page->get("article_meta_score"); // $page->save($field); $page->myfieldname = 'Something'; $page->setOutputFormatting(false); $page->save(); exit; } } Now I am getting ( ! ) Fatal error: Exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '76021' for key 'PRIMARY' (in /var/www/ProcessWire/wire/core/Pages.php line 794) #0 /var/www/ProcessWire/wire/core/Pages.php(794): PDOStatement->execute() #1 /var/www/ProcessWire/wire/core/Pages.php(716): Pages->savePageQuery(Object(Page), Array) #2 [internal function]: Pages->___save(Object(Page), Array) #3 /var/www/ProcessWire/wire/core/Wire.php(359): call_user_func_array(Array, Array) #4 /var/www/ProcessWire/wire/core/Wire.php(317): Wire->runHooks('save', Array) #5 /var/www/ProcessWire/wire/core/Page.php(1121): Wire->__call('save', Array) #6 /var/www/ProcessWire/wire/core/Page.php(1121): Pages->save(Object(Page), Array) #7 /var/www/ProcessWire/site/modules/SomeModule/SomeModule.module(45): Page->save() #8 /var/www/ProcessWire/wire/core/Wire.php(381): SomeModule->pageViewed(Object(HookEvent)) #9 /var/www/ProcessWire/wire/core/Wire.php(317): Wire->runHooks('loaded', Array) #10 /var/www/ProcessWire/wire/core/Page.php(1490) in /var/www/ProcessWire/index.php on line 218 The page is editable and all. But I am not sure why so.
  18. Congrats @narendramodi for your victory. Bring something good for the people of India.

  19. RT @laracasts: If you couldn't make it out to #laracon, I pre-recorded mine! Watch it here: https://t.co/HCdI9KNXKh

  20. RT @dhrrgn: WIP: ActionResponder - Action and Responder implementations for the ADR Pattern. https://t.co/TTi7V6JKWC /cc @pmjones

  21. $ssh ip-address ; doing something ; power failure ; #asianet #broadband down. Kerala's leading ISP :P. Time for mosh again.

×
×
  • Create New...