Log message #3942318

# At Username Text
# Oct 4th 2016, 13:41 ard1m14 I am trying to test a controller action which has a requestAction in, but when the test executes the requestAction line it just bombs out with no error message
# Oct 4th 2016, 13:40 ard1m14 Hi
# Oct 4th 2016, 13:13 dereuromark at least over a bunch of ordered ones
# Oct 4th 2016, 13:13 dereuromark dont think so, but it is sure the smartest approach for php :slightly_smiling_face:
# Oct 4th 2016, 13:10 Neon1024 Is there an actual name for the software pattern of using arrays for param options?
# Oct 4th 2016, 12:51 charolastra looking forward to it :)
# Oct 4th 2016, 12:48 Tippexs @charolastra: I will try to get a better / nicer solution and come back to u
# Oct 4th 2016, 12:47 charolastra Tippexs: not very ellegant but it does the job, thanks
# Oct 4th 2016, 12:47 flangofas @asunay I am not sure what do you mean mate :slightly_smiling_face:
# Oct 4th 2016, 12:47 Tippexs Is this the way to go? Or should I set the result in the PagesController initialize method?
# Oct 4th 2016, 12:47 Tippexs Hi together - i have a kind of a design question. On my ladingpage I need the result of an AppointmentsControllers method. I am going to display free apointments on my landingpage. now my question: Currently i use the _serialize method to get the result of this method as json output and do a json_decode on my frontpage.
# Oct 4th 2016, 12:46 neothermic @dereuromark the test was fixed before your latest comment btw ;)
# Oct 4th 2016, 12:38 asunay its not update field i want to update @flangofas
# Oct 4th 2016, 12:38 asunay I made behavior with after safe... I need read ID form currently saved item ```$entity->get('id')``` ? ... then i need update one field based on ID (i using function which encode it do string and returns is)... This is where i stopped...
# Oct 4th 2016, 12:36 Tippexs @charolastra: try this http://codepad.org/ooF4B7R9
# Oct 4th 2016, 12:36 flangofas What do you mean?
# Oct 4th 2016, 12:35 asunay @flangofas i read this... but maybe i forget something -> how i commit changes?
# Oct 4th 2016, 12:33 charolastra yes, tried to pass it as the 3rd parameter of the 'url' option but it gets ignored
# Oct 4th 2016, 12:33 Tippexs this will help you. you can set your controllers method and send your id
# Oct 4th 2016, 12:33 flangofas @asunay just create a callback in the table afterSave - http://book.cakephp.org/3.0/en/orm/table-objects.html#event-list
# Oct 4th 2016, 12:32 Tippexs http://book.cakephp.org/3.0/en/views/helpers/form.html#setting-a-url-for-the-form
# Oct 4th 2016, 12:31 charolastra not quite. a view calls add() on an other controller and i'd like to return the the current view. so the ID needs to be passed along so it can be used with $this->redirect()
# Oct 4th 2016, 12:28 Tippexs @charlostra like http://www.google.com/search=foobar ?
# Oct 4th 2016, 12:24 charolastra when createing forms, how can i pass additional arguments to the action beeing called?
# Oct 4th 2016, 12:20 neothermic no, wait, i'm a fool
# Oct 4th 2016, 12:19 asunay @flangofas yes... i know hot its save in controller. but how to do this with behavior
# Oct 4th 2016, 12:13 neothermic ```$this->assertTags($result, array('img' => array('src' => 'preg:/(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})/', 'alt' => '')), true);``` -> looking at the assertTags function, it doesn't think that src is a regex match, but testing the regex that it uses to determine if there's a regex in the tests matches. *shrug*
# Oct 4th 2016, 12:13 willem I installed FriendsOfCake/CakePdf and copied the index viewfiles to the pdf folder. Now when i visit the page i do get a PDF with the results of the index, but no styling. I added fullbase => true to the css and removed all script calls
# Oct 4th 2016, 12:12 flangofas @asunay Table callback afterSave?
# Oct 4th 2016, 12:09 neothermic I can't get preg matching to work in assertTags ¬_¬
# Oct 4th 2016, 12:09 neothermic Hmrth
# Oct 4th 2016, 12:07 asunay how can i modify currently saved model (entity with after save?)
# Oct 4th 2016, 11:24 Tippexs THANKS!
# Oct 4th 2016, 11:24 Tippexs Is this the way to go? Or should I set the result in the PagesController initialize method?
# Oct 4th 2016, 11:23 Tippexs Hi together - i have a kind of a design question. On my ladingpage I need the result of an AppointmentsControllers method. I am going to display free apointments on my landingpage. now my question: Currently i use the _serialize method to get the result of this method as json output and do a json_decode on my frontpage.
# Oct 4th 2016, 11:14 dakota k4t http://php.net/dom
# Oct 4th 2016, 11:10 ndm Well, that description is like... I need a car... for... driving purposes :slightly_smiling_face:
# Oct 4th 2016, 11:09 rchavik he already stated his use case :)
# Oct 4th 2016, 11:07 ndm @k4t Without knowing your specific use case: http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html-xml-in-php
# Oct 4th 2016, 11:04 k4t I want to find div and remove its content
# Oct 4th 2016, 10:51 Speud1 @k4T, depends what you want to do ;)