#silverstripe IRC Log

IRC log for 26 December 2016

All timestamps are in UTC.

1: [00:17:25] * trash_ has joined #silverstripe
2: [00:48:37] * nitish quit (Ping timeout: 240 seconds)
3: [00:59:58] * Azure has joined #silverstripe
4: [01:19:33] * janneklouman-- quit (Ping timeout: 248 seconds)
5: [01:27:01] * HewpyPwehmas quit (Ping timeout: 248 seconds)
6: [01:27:21] * trash_ quit (Ping timeout: 260 seconds)
7: [01:43:23] * nitish has joined #silverstripe
8: [01:43:59] <nitish> hello, anyone around to help with a silverstripe installation?
9: [01:48:36] * slievr1 has joined #silverstripe
10: [01:49:57] * slievr quit (Ping timeout: 248 seconds)
11: [01:50:08] <nitish> I don't see anything in the apache logs to help, are there any other logs?
12: [01:57:55] * HewpyPwehmas has joined #silverstripe
13: [02:16:59] * gelignite_ has joined #silverstripe
14: [02:17:36] * gelignite quit (Read error: Connection reset by peer)
15: [03:13:04] * xyphoid_ has joined #silverstripe
16: [03:14:21] * xyphoid quit (Write error: Broken pipe)
17: [03:22:41] * see8 has joined #silverstripe
18: [03:22:42] <ss-helper> see8: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
19: [03:27:55] * HewpyPwehmas is now known as TitDick
20: [03:28:38] * TitDick is now known as pweh
21: [03:30:00] <see8> Having trouble passing form variables to a template. Here’s my controller code: http://pastebin.com/9j26vnMd .
22: [03:57:30] * nitish quit (Remote host closed the connection)
23: [04:20:16] * see8 quit (Quit: see8)
24: [04:28:21] * pweh quit (Ping timeout: 248 seconds)
25: [04:42:49] * see8 has joined #silverstripe
26: [05:07:50] * janneklouman-- has joined #silverstripe
27: [05:12:20] * janneklouman-- quit (Ping timeout: 258 seconds)
28: [05:22:50] * pweh has joined #silverstripe
29: [06:18:54] * gelignite_ is now known as gelignite
30: [06:27:14] <see8> anyone awake?
31: [06:29:32] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
32: [06:30:10] <ss-helper> Silverstripe 3.4 temporary Page canview redirect loop - http://stackoverflow.com/questions/41322400/silverstripe-3-4-temporary-page-canview-redirect-loop
33: [06:49:18] * Azure|dc has joined #silverstripe
34: [06:49:53] * slievr has joined #silverstripe
35: [06:51:00] * see8 quit (Quit: see8)
36: [06:52:45] * Uitto_ has joined #silverstripe
37: [06:53:23] * slievr1 quit (Ping timeout: 252 seconds)
38: [06:53:23] * Uitto quit (Ping timeout: 252 seconds)
39: [06:53:27] * Azure quit (Ping timeout: 250 seconds)
40: [06:53:28] * madmatt_ quit (Ping timeout: 250 seconds)
41: [06:53:31] * Uitto_ is now known as Uitto
42: [06:53:42] * madmatt has joined #silverstripe
43: [06:54:06] * madmatt is now known as Guest6470
44: [06:57:04] * see8 has joined #silverstripe
45: [07:11:01] * pweh quit (Ping timeout: 248 seconds)
46: [07:14:16] * pweh has joined #silverstripe
47: [07:24:33] * neilf__ quit (Quit: Connection closed for inactivity)
48: [07:28:39] * janneklouman-- has joined #silverstripe
49: [07:33:21] * janneklouman-- quit (Ping timeout: 246 seconds)
50: [07:39:14] * janneklouman-- has joined #silverstripe
51: [07:43:30] * janneklouman-- quit (Ping timeout: 246 seconds)
52: [10:00:39] * janneklouman-- has joined #silverstripe
53: [10:05:13] * janneklouman-- quit (Ping timeout: 258 seconds)
54: [10:09:28] * janneklouman-- has joined #silverstripe
55: [10:13:50] * janneklouman-- quit (Ping timeout: 264 seconds)
56: [10:20:47] * hewp has joined #silverstripe
57: [10:21:03] * pweh is now known as Guest28802
58: [10:21:03] * hewp is now known as pweh
59: [10:24:05] * Guest28802 quit (Ping timeout: 248 seconds)
60: [11:03:19] * pweh quit (Read error: Connection reset by peer)
61: [11:32:35] * gelignite has joined #silverstripe
62: [11:50:35] * janneklouman-- has joined #silverstripe
63: [11:55:14] * janneklouman-- quit (Ping timeout: 258 seconds)
64: [12:04:26] * Shrike_Finland has joined #silverstripe
65: [13:11:14] <Zauberfisch> see8: I don't see a question
66: [13:11:25] <Zauberfisch> or rather, I don't see a specific problem
67: [13:11:44] <Zauberfisch> in the code you posted you are not passing any additional data to the template as far as I can tell
68: [14:09:56] * Azure|dc quit (Ping timeout: 256 seconds)
69: [14:12:12] * Azure has joined #silverstripe
70: [14:28:39] * Azure quit (Ping timeout: 256 seconds)
71: [14:42:02] * Azure has joined #silverstripe
72: [16:19:21] * Shrike_Finland quit (Quit: Leaving.)
73: [16:36:29] * samsam has joined #silverstripe
74: [18:42:20] * filisko has joined #silverstripe
75: [18:46:16] * samsam quit (Quit: samsam)
76: [18:47:16] * samsam has joined #silverstripe
77: [18:58:22] * nitish has joined #silverstripe
78: [18:59:49] <see8> Thanks. I thought that the $fields would populate the variables “FirstName”, “LastName”, “Email”, and “Message"
79: [19:00:24] <see8> (and that I could then use $FirstName, $LastName, etc. in the template.
80: [19:07:36] * samsam quit (Quit: samsam)
81: [19:19:24] <see8> Zauberfisch: I neglected to include the last few lines of my code in the paste - here’s a new one: http://pastebin.com/yh5AQ6Z3
82: [19:50:12] * Shrike_Finland has joined #silverstripe
83: [19:52:04] * samsam has joined #silverstripe
84: [19:56:43] * nitish quit (Ping timeout: 245 seconds)
85: [19:59:15] * nitish has joined #silverstripe
86: [20:32:47] * janneklouman-- has joined #silverstripe
87: [20:33:30] * samsam quit (Quit: samsam)
88: [20:35:14] * Shrike_Finland quit (Quit: Leaving.)
89: [21:23:48] <Zauberfisch> uhm
90: [21:23:54] <Zauberfisch> see8: seems like the same link to me
91: [21:27:13] <see8> 1 sec
92: [21:27:54] <see8> lol - you’re right!
93: [21:29:33] <see8> My understanding is that new Form($this, 'Form', $fields, $actions) sets up the form fields and variables and that $form->setTemplate('ContactUsFormTemplate') then populates the form template with the data. Am I missing a step (or three)?
94: [21:34:16] <see8> Zauberfisch: I’ve been looking at form tutorials on the silverstripe and other places, but can’t figure out what I’m doing wrong yet.
95: [21:42:50] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
96: [21:50:47] * nitish quit (Remote host closed the connection)
97: [22:36:42] * Azure has joined #silverstripe
98: [22:38:51] * filisko quit (Ping timeout: 265 seconds)
99: [23:00:01] * ss-helper quit (Remote host closed the connection)
100: [23:00:17] * ss-helper has joined #silverstripe
101: [23:22:40] * guci0 has joined #silverstripe
102: [23:22:48] <guci0> Hello World, one question onBeforeWrite how to get new Data?
103: [23:29:41] <Snowman23> Pretty sure it's a parameter
104: [23:29:58] <Snowman23> Oh nope, it's a parameter
105: [23:30:00] <Snowman23> Um
106: [23:30:22] <Snowman23> $this->record has teh new data, guci0
107: [23:47:49] <guci0> Snowman23: I wish :)
108: [23:48:45] <guci0> Debug::show($this->record['Lead']); //('FieldName') die(); Show data without change ;(
109: [23:50:34] <Snowman23> var_dump($this); and just pick it out :)
110: [23:52:31] <guci0> public function onBeforeWrite() { parent::onBeforeWrite(); if(!self::$has_written) { self::$has_written = true; // bug? Debug::show($this->record['Lead']); } }
111: [23:53:49] <guci0> I love debugging :) left: 40px; top: 0px; width: 1875px; height: 1116px; position: absolute;
112: [23:53:53] <guci0> pre :)
113: [23:55:56] <guci0> self::$has_written without – I have 5 calls
114: [23:56:14] <guci0> in my case 5times write new inserts to DB
115: [23:57:44] <guci0> none of the variables is not new value
116: [23:59:02] <Firesphere> What exactly do you mean guci0? Maybe DataObject::changed_fields()?

These logs were automatically created by ss-log on irc.freenode.net.