pass-data

Pass array from controller to view - Codeigniter

自古美人都是妖i 提交于 2019-12-01 10:54:21
I tried to print the array in the controller, before passing it to a view and this is the output Array ( [annunci] => Array ( [0] => stdClass Object ( [EmailDatore] => you@welcom.it [Nome] => asdasd [Cognome] => asdas [IdAnnuncio] => 9 [Titolo] => sfsdfdsfshrea [Testo] => agrefdgdagdfg [Categoria] => [Sede] => [TipoContratto] => [Add_Date] => [Drop_Date] => ) [1] => stdClass Object ( [EmailDatore] => you@welcom.it [Nome] => asdasd [Cognome] => asdas [IdAnnuncio] => 10 [Titolo] => fafa [Testo] => fafaerea asdasdas dafasfd [Categoria] => [Sede] => [TipoContratto] => [Add_Date] => [Drop_Date] =>

Pass array from controller to view - Codeigniter

六眼飞鱼酱① 提交于 2019-12-01 06:19:55
问题 I tried to print the array in the controller, before passing it to a view and this is the output Array ( [annunci] => Array ( [0] => stdClass Object ( [EmailDatore] => you@welcom.it [Nome] => asdasd [Cognome] => asdas [IdAnnuncio] => 9 [Titolo] => sfsdfdsfshrea [Testo] => agrefdgdagdfg [Categoria] => [Sede] => [TipoContratto] => [Add_Date] => [Drop_Date] => ) [1] => stdClass Object ( [EmailDatore] => you@welcom.it [Nome] => asdasd [Cognome] => asdas [IdAnnuncio] => 10 [Titolo] => fafa [Testo]

Transfer file to webworker: DataCloneError: The object could not be cloned

情到浓时终转凉″ 提交于 2019-12-01 00:15:42
问题 I want to transfer a file from a form to a webworker. In chrome i simple can use this code to transfer a FileList-Object: worker.postMessage(files: array_files); But with Firefox i get this error: Transfer file to webworker: DataCloneError: The object could not be cloned. So i tried to use the Syntax for transferable objects. Something like this? var post = {files: array_files, file_ids: response.file_ids}; worker.postMessage(post, [post]); But with that i get this in Chrome Uncaught

Pass data through navigation back button

ε祈祈猫儿з 提交于 2019-11-29 23:12:59
I am in this situation: I am passing 4 array from Progress Table to Detail Exercise using prepare for segue and it works fine! The problem begin when I try to pass the data back from the Detail Exercise Controller to the Progress Table Controller. I would like to use the default navigation back button to go back to the parent view. Actually I'm using this code but it doesn't work, well the data pass from the child to the parent view but i can't see the result in the Progress Table, seems like i need to refresh but i also tryed the reloadData after the viewDidLoad and it doesn't work. Any

How to pass data from 2nd activity to 1st activity when pressed back? - android

前提是你 提交于 2019-11-26 01:35:07
问题 I\'ve 2 activities, Activity1 and Activity2 . In Activity1 I\'ve a Button and TextView . When the button is clicked Activity2 is started. In Activity2 I\'ve an EditText . I want to display the data retrieved from EditText in Activity2 in the TextView in Activity1 when back is pressed from Activity2 . can someone help me with the code to make this work? 回答1: Start Activity2 with startActivityForResult and use setResult method for sending data back from Activity2 to Activity1. In Activity1 you