Timeline for Joomla sessions within a loop passing only a single value
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 28, 2016 at 14:23 | comment | added | saibbyweb |
Dude they are in two different modules, I echo JModuleHelper::renderModule($mod, $attribs); inside the for loop in the first module. The module I am echoing inside the first for loop , has a for loop of its own. That's what I meant.
|
|
Aug 28, 2016 at 14:15 | comment | added | Lodder | Ahh I see now. Your question says they are in 2 different modules. See my updated answer | |
Aug 28, 2016 at 14:15 | history | edited | Lodder | CC BY-SA 3.0 |
added 267 characters in body
|
Aug 28, 2016 at 14:07 | comment | added | saibbyweb |
I am calling the second for loop inside the first for loop , what you have done is let them run separately which isn't my case.
|
|
Aug 28, 2016 at 14:02 | history | rollback | Lodder |
Rollback to Revision 1
|
|
Aug 28, 2016 at 13:41 | comment | added | Lodder | I also tried using different modules. | |
Aug 28, 2016 at 13:22 | comment | added | saibbyweb | You have written all this code in a single PHP file. My case is different, I am using Joomla modules. :/ | |
Aug 28, 2016 at 13:03 | comment | added | Lodder | Hmm, even by rolling back to my original post, the outcome is what you need: imgur.com/a/5cbJV | |
Aug 28, 2016 at 12:56 | comment | added | saibbyweb | Your #1 on JSE, you're brilliant with everything. | |
Aug 28, 2016 at 12:54 | comment | added | Lodder |
Ok let me do some testing and get back to you. I've never been brilliant with for loops
|
|
Aug 28, 2016 at 12:35 | comment | added | saibbyweb |
removing $i++ from both modules gives 1234 1234 1234 1234 but its four times my desired output.
|
|
Aug 28, 2016 at 12:17 | comment | added | saibbyweb |
alright.. now output is : 13 13
|
|
Aug 28, 2016 at 11:56 | comment | added | Lodder | @Saibbyweb - rejected your edit cause it was incorrect. I've updated my answer. Try again now | |
Aug 28, 2016 at 11:56 | history | edited | Lodder | CC BY-SA 3.0 |
added 4 characters in body
|
Aug 28, 2016 at 11:47 | review | Suggested edits | |||
Aug 28, 2016 at 11:55 | |||||
Aug 28, 2016 at 11:44 | comment | added | saibbyweb |
wooo! Output with this is : 4444 4444 4444 4444
|
|
Aug 28, 2016 at 9:24 | history | answered | Lodder | CC BY-SA 3.0 |