#silverstripe IRC Log

IRC log for 23 March 2014

All timestamps are in UTC.

1: [00:08:27] * gelignite quit (Quit: http://bit.ly/nkczDT)
2: [00:22:53] * UncleCheese quit (Quit: UncleCheese)
3: [00:23:30] * UncleCheese has joined #silverstripe
4: [00:24:46] * spronk has joined #silverstripe
5: [00:30:38] * spronk2 quit (Quit: spronk2)
6: [00:32:04] * violetina has joined #silverstripe
7: [00:32:38] * violet- quit (Ping timeout: 240 seconds)
8: [00:46:16] * violet- has joined #silverstripe
9: [00:47:18] * violetina quit (Ping timeout: 265 seconds)
10: [01:19:56] * UncleCheese quit (Quit: UncleCheese)
11: [01:20:36] * mobiusnz has joined #silverstripe
12: [01:25:06] * mobiusnz quit (Ping timeout: 252 seconds)
13: [01:40:01] * EasyCo has joined #silverstripe
14: [01:52:34] * simon_w|air has joined #silverstripe
15: [02:17:42] * mobiusnz has joined #silverstripe
16: [02:40:00] * mobiusnz quit (Quit: Leaving.)
17: [02:48:05] * UncleCheese has joined #silverstripe
18: [02:48:34] * babak quit (Quit: Connection closed for inactivity)
19: [03:42:37] * kerozene has joined #silverstripe
20: [03:56:38] * UncleCheese quit (Quit: UncleCheese)
21: [04:08:20] * simon_w|air quit (Ping timeout: 246 seconds)
22: [04:08:38] * simon_w|air has joined #silverstripe
23: [04:08:43] * joelpittet has joined #silverstripe
24: [04:14:59] * lewellyn has joined #silverstripe
25: [04:30:44] * EasyCo quit (Quit: Connection closed for inactivity)
26: [04:34:43] * joelpittet quit ()
27: [04:39:18] * simon_w|air quit (Quit: This computer has gone to sleep)
28: [04:39:41] * bubaphex has joined #silverstripe
29: [04:45:58] * Motoservo quit (Ping timeout: 240 seconds)
30: [04:48:07] * bubaphex quit (Ping timeout: 252 seconds)
31: [04:50:03] * simon_w|air has joined #silverstripe
32: [04:55:16] * cloph_away quit (Ping timeout: 253 seconds)
33: [04:59:54] * cloph_away has joined #silverstripe
34: [05:29:46] * kerozene quit ()
35: [05:33:35] * spronk2 has joined #silverstripe
36: [05:47:59] * spronk2 quit (Quit: spronk2)
37: [05:48:49] * simon_w|air quit (Quit: This computer has gone to sleep)
38: [05:52:20] * UncleCheese has joined #silverstripe
39: [06:02:04] * simon_w|air has joined #silverstripe
40: [06:13:30] * simon_w|air quit (Quit: This computer has gone to sleep)
41: [06:20:41] * simon_w|air has joined #silverstripe
42: [06:21:27] * simon_w|air quit (Client Quit)
43: [06:24:12] * robert_ has joined #silverstripe
44: [06:56:08] * k_fish__ quit (Quit: Leaving)
45: [07:05:06] * CodeTrap has joined #silverstripe
46: [07:27:25] * babak has joined #silverstripe
47: [07:43:14] * spronk2 has joined #silverstripe
48: [08:22:22] * UncleCheese quit (Quit: UncleCheese)
49: [08:28:35] * zippy____ has joined #silverstripe
50: [09:33:51] * SightUnseen has joined #silverstripe
51: [09:33:55] * SightUnseen has left #silverstripe
52: [10:07:46] * zippy____ quit (Quit: zippy____)
53: [10:08:57] * nbezzala quit (Read error: Connection reset by peer)
54: [10:50:32] * simon_w quit (Ping timeout: 265 seconds)
55: [10:51:00] * lab-notes quit (Ping timeout: 265 seconds)
56: [10:51:39] <Zauberfisch> who feels responsible for the Price class?
57: [10:51:41] * simon__w has joined #silverstripe
58: [10:53:03] * lab-notes_ has joined #silverstripe
59: [10:54:54] * lab-notes_ is now known as lab-notes
60: [10:55:01] <Zauberfisch> ah, wait
61: [10:55:05] <Zauberfisch> thats not a ss class
62: [10:55:09] <ss23> lol
63: [10:55:14] <ss23> Was going to say, doesn't sound very stock SS
64: [10:55:44] <Zauberfisch> then I have a pretty good suspect
65: [10:56:07] <ss23> It was simon_w wasn't it
66: [10:56:10] <ss23> It's *always* simon_w
67: [10:56:55] <Zauberfisch> unfortunately not
68: [11:03:16] <Zauberfisch> zend is so weird
69: [11:03:28] <Zauberfisch> I really don't get why people like it that much
70: [11:03:31] <Zauberfisch> or liked
71: [11:04:46] <Zauberfisch> haha, and the docs
72: [11:04:51] <Zauberfisch> print $currency; // Could return '$$$ 100'
73: [11:04:55] <Zauberfisch> could return :D
74: [11:04:57] <Zauberfisch> I like that
75: [11:08:34] * babak quit (Quit: Connection closed for inactivity)
76: [11:09:08] * bobkosse has joined #silverstripe
77: [11:09:51] * bobkosse quit (Client Quit)
78: [11:12:34] * spronk2 quit (Quit: spronk2)
79: [11:18:50] * gelignite has joined #silverstripe
80: [11:31:37] * lab-notes quit (*.net *.split)
81: [11:31:37] * simon__w quit (*.net *.split)
82: [11:31:37] * CodeTrap quit (*.net *.split)
83: [11:31:37] * cloph_away quit (*.net *.split)
84: [11:31:37] * abitran quit (*.net *.split)
85: [11:31:38] * SMaction quit (*.net *.split)
86: [11:31:38] * Azure quit (*.net *.split)
87: [11:31:38] * Stomach quit (*.net *.split)
88: [11:31:38] * Kapdap quit (*.net *.split)
89: [11:31:38] * gelignite quit (*.net *.split)
90: [11:31:38] * lewellyn quit (*.net *.split)
91: [11:31:52] * mrzero quit (*.net *.split)
92: [11:31:59] * pippy quit (*.net *.split)
93: [11:31:59] * DesignerX quit (*.net *.split)
94: [11:31:59] * FrozenFire quit (*.net *.split)
95: [11:31:59] * unsignedint quit (*.net *.split)
96: [11:31:59] * Liquide quit (*.net *.split)
97: [11:31:59] * jrthomer quit (*.net *.split)
98: [11:31:59] * robert_ quit (*.net *.split)
99: [11:31:59] * violet- quit (*.net *.split)
100: [11:31:59] * spronk quit (*.net *.split)
101: [11:31:59] * Zauberfisch quit (*.net *.split)
102: [11:31:59] * ec8or_ quit (*.net *.split)
103: [11:31:59] * TRB143 quit (*.net *.split)
104: [11:31:59] * Guits quit (*.net *.split)
105: [11:31:59] * ss23 quit (*.net *.split)
106: [11:31:59] * madmatt quit (*.net *.split)
107: [11:31:59] * ajmitch_ quit (*.net *.split)
108: [11:31:59] * Kolin quit (*.net *.split)
109: [11:41:22] * andylockran quit (Ping timeout: 265 seconds)
110: [11:46:02] * andylockran has joined #silverstripe
111: [11:46:02] * gelignite has joined #silverstripe
112: [11:46:02] * lab-notes has joined #silverstripe
113: [11:46:02] * simon__w has joined #silverstripe
114: [11:46:02] * CodeTrap has joined #silverstripe
115: [11:46:02] * robert_ has joined #silverstripe
116: [11:46:02] * cloph_away has joined #silverstripe
117: [11:46:02] * lewellyn has joined #silverstripe
118: [11:46:02] * violetina has joined #silverstripe
119: [11:46:02] * spronk has joined #silverstripe
120: [11:46:02] * DesignerX has joined #silverstripe
121: [11:46:02] * abitran has joined #silverstripe
122: [11:46:02] * FrozenFire has joined #silverstripe
123: [11:46:02] * Zauberfisch has joined #silverstripe
124: [11:46:02] * unsignedint has joined #silverstripe
125: [11:46:02] * Guits has joined #silverstripe
126: [11:46:02] * SMaction has joined #silverstripe
127: [11:46:02] * ss23 has joined #silverstripe
128: [11:46:02] * Azure has joined #silverstripe
129: [11:46:02] * Liquide has joined #silverstripe
130: [11:46:02] * Stomach has joined #silverstripe
131: [11:46:02] * Kapdap has joined #silverstripe
132: [11:46:02] * mrzero has joined #silverstripe
133: [11:46:02] * Kolin has joined #silverstripe
134: [11:46:02] * ajmitch_ has joined #silverstripe
135: [11:46:02] * madmatt has joined #silverstripe
136: [11:46:02] * TRB143 has joined #silverstripe
137: [11:46:02] * ec8or_ has joined #silverstripe
138: [11:46:02] * jrthomer has joined #silverstripe
139: [11:46:02] * pippy has joined #silverstripe
140: [11:46:27] <Zauberfisch> best practice for config getters?
141: [11:51:12] <Zauberfisch> also, best practice on documenting config settings in phpdocs on a class?
142: [12:49:41] * micmania1 has joined #silverstripe
143: [13:06:15] * violetina quit (Remote host closed the connection)
144: [13:17:27] * irogue_ quit (Ping timeout: 265 seconds)
145: [13:24:02] * violetina has joined #silverstripe
146: [13:24:02] * bobkosse has joined #silverstripe
147: [13:24:02] * irogue has joined #silverstripe
148: [13:40:36] * bobkosse quit (Quit: bobkosse)
149: [14:14:22] * Moneer has joined #silverstripe
150: [14:23:40] <Moneer> monsurvey1
151: [14:29:41] <Moneer> hello
152: [14:29:41] * Moneer quit (Ping timeout: 245 seconds)
153: [15:05:15] * OxFF1 has joined #silverstripe
154: [15:08:25] * abitran quit (Ping timeout: 240 seconds)
155: [15:08:45] * abitran has joined #silverstripe
156: [15:39:46] * OxFF1 has left #silverstripe
157: [16:02:18] * micmania1 quit (Ping timeout: 240 seconds)
158: [16:37:04] * DesignerX quit (Read error: Operation timed out)
159: [17:42:54] * jrthomer quit (Quit: Leaving...)
160: [17:48:58] * moniuch has joined #silverstripe
161: [18:38:59] * simon__w is now known as simon_w
162: [18:40:20] * micmania1 has joined #silverstripe
163: [18:53:33] * moniuch quit (Ping timeout: 245 seconds)
164: [18:56:40] * simon_w|air has joined #silverstripe
165: [19:21:45] * bubaphex has joined #silverstripe
166: [19:30:34] * zippy____ has joined #silverstripe
167: [19:35:39] * babak has joined #silverstripe
168: [19:36:23] <zippy____> morning
169: [19:37:07] <simon_w|air> Or is it? DUN DUN DUN
170: [19:37:47] <micmania1> Not where I am!
171: [19:41:19] <Zauberfisch> checkboxsetfield does save into many_many, right?
172: [19:44:24] <simon_w|air> Yes
173: [19:52:59] * nickmolhoek has joined #silverstripe
174: [19:54:08] * Ryan-Toast has joined #silverstripe
175: [19:54:20] <Ryan-Toast> Morning, fellahs.
176: [19:56:59] * micmania1 quit (Ping timeout: 252 seconds)
177: [20:00:12] * UncleCheese has joined #silverstripe
178: [20:01:20] * joelpittet has joined #silverstripe
179: [20:04:07] * toebu has joined #silverstripe
180: [20:14:01] <Ryan-Toast> In a custom form action, how can I stop the form from being submitted and display an error?
181: [20:15:21] <Ryan-Toast> Do I just do a return $this->redirect($this->Link()); and set an error message?
182: [20:16:26] <Ryan-Toast> Found it: $form->AddErrorMessage
183: [20:17:24] * k_fish has joined #silverstripe
184: [20:25:39] * jrthomer has joined #silverstripe
185: [20:39:23] * desperate has joined #silverstripe
186: [20:40:01] <desperate> Hi everyone
187: [20:40:15] <desperate> I'm trying to make my own inlcludes file
188: [20:40:26] <desperate> in my template: <% include MyInc %>
189: [20:40:38] <desperate> then I create a MyInc.ss in the includes folder
190: [20:40:45] * joelpittet quit ()
191: [20:40:52] <Ryan-Toast> desperate: do a flush
192: [20:40:56] <desperate> is there a further step required
193: [20:40:59] <Ryan-Toast> ?flush=all
194: [20:40:59] <desperate> ah ok
195: [20:41:34] <Ryan-Toast> Pretty much if something doesn’t work i SS do a dev/build then a ?flush=all and if it still doesn’t work, bugfix from there :P
196: [20:41:52] <zippy____> desperate: ^ Ryan-Toast speaks the truth...
197: [20:42:39] <zippy____> The 10 commandments of SS dev. #1 dev/build #2 flush #3 repeat steps 1 and 2, 4 times
198: [20:42:47] <Ryan-Toast> zippy____: Heh
199: [20:42:50] <desperate> so he does because alas it works!
200: [20:42:54] * Oishi has joined #silverstripe
201: [20:43:24] <Ryan-Toast> Hmm, seem s like ConfirmPassWordField doesn’t take classes.
202: [20:43:55] <Oishi> Hey there, just checking in to see if there was any fixes for repeated 403 forbidden errors caused by the framework. Previously I've just deleted the two generated error files in assets, or replaced the framework folder to fix it
203: [20:44:08] * Shrike_Finland has joined #silverstripe
204: [20:57:00] * UncleCheese quit (Quit: UncleCheese)
205: [20:57:38] * UncleCheese has joined #silverstripe
206: [21:03:24] <UncleCheese> Ryan-Toast: $form->sessionMessage("bad error", "bad"); return $this->redirectBack();
207: [21:03:36] * Oishi_ has joined #silverstripe
208: [21:03:59] <Ryan-Toast> UncleCheese: Wish I knew about sessionMessage before I wrote a flashmessage module :P
209: [21:04:09] <UncleCheese> ha
210: [21:04:12] <UncleCheese> no, that's a good one, too
211: [21:04:18] <UncleCheese> because session message just works for forms
212: [21:04:32] <Ryan-Toast> Ah, good. I don’t feel too bad then :P
213: [21:04:40] <UncleCheese> i haven't seen your module, but it's really cool to be able to throw messages to certain urls
214: [21:04:48] * Oishi quit (Ping timeout: 245 seconds)
215: [21:04:57] <UncleCheese> like if you want to buy something, then have to create an account, log in, etc
216: [21:05:09] <UncleCheese> and finally land on the product page
217: [21:05:15] <Ryan-Toast> UncleCheese: It’s part of my boilerplate - I think the code is okay? https://github.com/Rhym/ss_boilerplate/tree/master/Boilerplate/code/Modules/FlashMessage
218: [21:06:10] <UncleCheese> I'd have allowed the message to be paired to a URL, or a URL pattern
219: [21:06:28] <zippy____> Ryan-Toast: What if… you had fa-$FlashMessageType -
220: [21:06:37] <zippy____> so instead of all the ifs, it just points to a class
221: [21:06:45] <zippy____> like you did with the alert
222: [21:06:46] <UncleCheese> $this->flashMessageService->setMessage('/products/*', 'Some Message', 'good');
223: [21:06:51] <Ryan-Toast> zippy____: in case you wanted different icons
224: [21:07:52] <Ryan-Toast> zippy____: and the fa classes are fontawesome
225: [21:07:52] <Oishi_> As before, having serious issues with 403 errors from the framework - to the point of the website not loading. Would really appreciate some help
226: [21:08:11] <zippy____> Oishi_: What is in the logs?
227: [21:15:46] <Ryan-Toast> UncleCheese: Do you know of an example of a sticky form somewhere?
228: [21:16:55] <zippy____> sticky form?
229: [21:17:23] <Ryan-Toast> Yeah, don’t remove the input values on validation error.
230: [21:17:40] <Ryan-Toast> So set form session data pretty much
231: [21:18:05] <Ryan-Toast> i.e Session::set("FormInfo.Form_FooBar.data", $data);
232: [21:18:19] <Ryan-Toast> I know that much, but I don’t know what to do with it :P
233: [21:18:42] <UncleCheese> You usually use $form->loadDataFrom($objectOrArray)
234: [21:19:31] <Ryan-Toast> UncleCheese: And I would just parse in the session data?
235: [21:19:46] <UncleCheese> no, it isn't related to session
236: [21:19:53] <UncleCheese> often times I'll do something like
237: [21:20:10] <UncleCheese> if($data = Session::get("someFormData")) $form->loadDataFrom($data);
238: [21:20:29] <UncleCheese> and in the form handler, the first line will be Session::set("something", $data);
239: [21:20:45] <UncleCheese> and Session::clear("something"); before you redirect out of the form
240: [21:21:55] <Ryan-Toast> UncleCheese: Would you have to do that for each field?
241: [21:22:05] <UncleCheese> no
242: [21:22:17] <UncleCheese> $data represents the array of form data
243: [21:22:23] <Ryan-Toast> Ah, right.
244: [21:22:34] <UncleCheese> public function handleMyForm($data, $form) { Session::set("foo", $data) }
245: [21:23:39] <Ryan-Toast> UncleCheese, I’ll give it a go :)
246: [21:24:09] <ss23> Morning all ^.^
247: [21:24:21] <Ryan-Toast> Hai
248: [21:24:36] <Zauberfisch> blubb
249: [21:26:07] <ss23> Fatal error: 'continue' operator with non-constant operand is no longer supported
250: [21:26:11] <ss23> what the fuck are we doing with our life.
251: [21:26:38] <simon_w> ss23, upgrade. Your version of 2.4 is too old for 5.4
252: [21:26:43] <ss23> ik
253: [21:26:50] <ss23> :/
254: [21:27:01] <ss23> I need to just write a script to autopwn all the old 2.4 sites
255: [21:29:37] <Oishi_> zippy____: nothing in the apache logs, would there be a better palce to check?
256: [21:30:52] <Ryan-Toast> I swear sspaste is constantly out of Bandwidth
257: [21:31:04] <ss23> lol
258: [21:31:18] <ss23> If I had my way, I would run a codepad.viper-7.com for all of us
259: [21:31:21] <ss23> codepad.silverstripe.org!
260: [21:32:24] <Ryan-Toast> UncleCheese: I did it likle this: http://pastebin.com/tCmhwWUv
261: [21:32:28] <Ryan-Toast> like**
262: [21:32:59] <Ryan-Toast> ss23: god, that looks awful.
263: [21:33:14] <ss23> yeah, *looks* awful, but damn it is awesaome
264: [21:33:17] <ss23> Works so well
265: [21:35:02] <UncleCheese> Ryan-Toast: It looks lil you're working way to hard, man
266: [21:35:06] <UncleCheese> like*
267: [21:35:09] <Ryan-Toast> UncleCheese: Probs :P
268: [21:35:14] <UncleCheese> that should never happen
269: [21:35:32] <Ryan-Toast> I just don’t get how to set the values.
270: [21:35:47] <UncleCheese> is it after failed validation?
271: [21:36:05] <UncleCheese> paste the whole lot, and i'll take a look
272: [21:36:25] <Ryan-Toast> The whole class?
273: [21:37:58] <Ryan-Toast> http://pastebin.com/Rx3T41w4
274: [21:39:34] <Oishi_> zippy___: I've also set it up to email me errors, which none have come. This is after the client's DB fell over during the weekend
275: [21:44:46] <Oishi_> Ah. now getting: The requested page could not be found. and cannot log in.
276: [21:44:56] <Ryan-Toast> Unclecheese: ^
277: [21:46:13] <UncleCheese> Ryan-Toast: all public FormField methods are chainable, so you can save yourself a lot of code by doing something like
278: [21:46:27] <UncleCheese> TextField::create('Name')->setAttribute()->setPlaceHollder()->addExtraClass() etc..
279: [21:46:45] <Ryan-Toast> Oh, I didn’t know that :)
280: [21:47:23] <UncleCheese> also
281: [21:47:34] <UncleCheese> i think this was just an example that someone in IRC gave you: "Form_ContactForm_Name"
282: [21:47:42] <UncleCheese> that should be Form_TheNameOfYourForm
283: [21:49:10] <Ryan-Toast> Ah, yes. I just changed it to “Form_ContactForm”
284: [21:50:36] <UncleCheese> so if you remove all those ->setValue() calls
285: [21:50:45] <UncleCheese> and update your form generator to return something like this:
286: [21:50:46] <UncleCheese> http://pastebin.com/uixFv6vN
287: [21:50:50] <UncleCheese> that should do the trick
288: [21:51:05] <UncleCheese> and obviously, return $f; at the end of that
289: [21:53:33] <Ryan-Toast> UncleCheese: Aww yiss, that works perfectly :)
290: [21:53:40] <Ryan-Toast> UncleCheese: Thanks :)
291: [21:54:22] <UncleCheese> no worries
292: [21:56:37] <Ryan-Toast> UncleCheese: Sticky forms are amuuuch better UX
293: [21:56:47] <UncleCheese> you think?
294: [21:56:54] <Ryan-Toast> Defs
295: [21:57:05] <UncleCheese> i think they're just called "forms", by the way
296: [21:57:07] <Ryan-Toast> Nothing worse than having to re enter fields.
297: [21:57:13] <UncleCheese> forms that don't save state are called "shitty forms"
298: [21:57:26] <Ryan-Toast> Haha, very true
299: [21:57:45] <Ryan-Toast> did you like my super difficult captcha?
300: [22:05:36] * EasyCo has joined #silverstripe
301: [22:06:08] * Colin[pi] has joined #silverstripe
302: [22:06:48] <Ryan-Toast> Colin[pi]: HELLO
303: [22:07:06] <Colin[pi]> HAI RYAN-TOAST
304: [22:07:34] <Ryan-Toast> Thinking of changing my name to just Ryan, but I think someone has that already.
305: [22:08:02] <Colin[pi]> hence why I put the [pi] after mine
306: [22:08:04] * desperate quit (Quit: Page closed)
307: [22:08:13] <Ryan-Toast> what does it stand for?
308: [22:08:34] <Colin[pi]> Praxis Interactive
309: [22:08:46] <Colin[pi]> or Private Investigator, that sounds cooler
310: [22:09:12] <Oishi_> Looks like it was just a borked DB, oh well :)
311: [22:21:20] * UncleCheese_ has joined #silverstripe
312: [22:25:37] <zippy____> fooking google maps not centering on my pointer
313: [22:26:13] <Colin[pi]> zippy____: I had to add my own JS to re-center it
314: [22:26:33] <zippy____> I was hoping to just use the iframe embed so I don't have to piss around with the js
315: [22:26:41] <Colin[pi]> HAR HAR no
316: [22:26:45] <Colin[pi]> I went down the same path too
317: [22:26:52] <Colin[pi]> google maps will laugh at you
318: [22:27:02] <Ryan-Toast> v3 API is really good though?
319: [22:27:13] <Colin[pi]> it is, but some weird arse JS
320: [22:27:27] <Ryan-Toast> zippy____: Paste your code?
321: [22:31:51] <zippy____> Ryan-Toast: Issue is I am hiding the map (on a different "tab") so google can't set the proper size on the frame to center the item correctly.
322: [22:32:16] <Ryan-Toast> Why not initilize the map when it’s shown?
323: [22:32:52] <Colin[pi]> zippy____: yeah at first I used the regular iframe embed but it's not so good with responsive
324: [22:34:14] <Ryan-Toast> Colin[pi]: Use a video-container
325: [22:34:32] <zippy____> Ryan-Toast: Thats what i've done now - only just found out what the problem was :)
326: [22:34:41] <zippy____> monday morning problems…
327: [22:34:43] <Colin[pi]> well I just used the v3 JS API and did some onresize events
328: [22:34:43] <Ryan-Toast> zippy____: Coolio :)
329: [22:34:56] <zippy____> they better love this sexy ass map
330: [22:35:17] <Colin[pi]> zippy____: they will, O faces will be had by all
331: [22:35:36] <Colin[pi]> ping UncleCheese
332: [22:36:30] <zippy____> O Face!! reminds me of that good movie… Office Space :) http://www.youtube.com/watch?v=LY-VdxwxSas
333: [22:36:32] <Ryan-Toast> zippy____: Did you give it colours? :D
334: [22:36:37] <Colin[pi]> zippy____: that's the one
335: [22:36:42] <zippy____> made it blink!
336: [22:38:08] <Colin[pi]> https://www.google.com.au/#q=blink+tag&safe=off
337: [22:38:31] <zippy____> hmmm .au link, don't think I trust it
338: [22:38:36] <Colin[pi]> I wouldn't
339: [22:43:22] * UncleCheese_ quit (Quit: UncleCheese_)
340: [22:44:32] * gelignite_ has joined #silverstripe
341: [22:46:35] * gelignite quit (Ping timeout: 246 seconds)
342: [22:47:49] * gelignite_ quit (Client Quit)
343: [22:50:14] * LimRes has joined #silverstripe
344: [22:51:53] <LimRes> Good morning all. I am trying to break old habits and implement DataExtension properly for member in SS3. I added an extension to the config.yml and dev/built. I added a tester() function to my extension. Error - method does not exist on Member
345: [22:52:07] <LimRes> Any hints?
346: [22:53:05] <Ryan-Toast> LimRes: Post your extension?
347: [22:55:08] <LimRes> <?php class CustomerExtension extends DataExtension { // define additional properties private static $db = array( "Phone1" => "Varchar", "Phone2" => "Varchar", "Address1" => "Varchar", "Address2" => "Varchar", "City" => "Varchar", "Region" => "Varchar", "PostCode" => "Varchar", "Country" => "Varchar" ); private static $has_many = array( "Farms" => "Farm" ); public function tester() { r
348: [22:55:18] <Ryan-Toast> can you post it to pastebin? :P
349: [22:56:00] <LimRes> Sorry I should probably get some sleep
350: [22:56:01] <LimRes> http://pastebin.com/BChzjw91
351: [22:56:16] <Ryan-Toast> and you’re extending member?
352: [22:56:42] <LimRes> http://pastebin.com/hiKZdLfd
353: [22:56:52] <LimRes> yes sir
354: [22:57:05] <LimRes> You have helped me before
355: [22:57:35] <Ryan-Toast> Where are you trying to call the method?
356: [22:57:46] <LimRes> in another control just as a test
357: [22:57:50] <Ryan-Toast> Hmm.
358: [22:58:19] <Ryan-Toast> and you did a dev/build ?flush=all ?
359: [22:58:23] <LimRes> yes i did
360: [22:58:24] <LimRes> http://pastebin.com/m31pk1s5
361: [22:59:18] <Ryan-Toast> and what’s the error?
362: [22:59:45] <LimRes> [User Error] Uncaught Exception: Object->__call(): the method 'tester' does not exist on 'Member'
363: [23:00:34] <LimRes> I am sure I am missing something basic because this looks really straightforward
364: [23:00:59] <LimRes> I am just very keen to do this properly and be able to use the roles and permissions inbuilt stuff instead of always having to make it from scratch
365: [23:01:08] <Ryan-Toast> Yeah, strange.
366: [23:01:12] <Ryan-Toast> SLooks fine to me.
367: [23:01:25] <LimRes> me too :)
368: [23:01:34] <LimRes> and there are no other extensions
369: [23:02:00] <LimRes> does it matter if the members were created before the extension?
370: [23:02:05] <LimRes> I wouldn't have thought it should
371: [23:02:18] <LimRes> it doesn't error when I call a static
372: [23:02:19] <Ryan-Toast> Shouldn’t do.
373: [23:02:27] <LimRes> where do these get stored in db?
374: [23:02:33] <Ryan-Toast> Shrug
375: [23:03:02] <LimRes> because we are not extending Member
376: [23:03:03] <Ryan-Toast> Try adding a new member
377: [23:03:09] <LimRes> it wouuld have to store statics somewhere
378: [23:03:10] <Ryan-Toast> and see
379: [23:03:26] <LimRes> and I don't see any tables that have any relation to extenstion
380: [23:03:27] <LimRes> ok
381: [23:04:15] <LimRes> no luck after adding another member to that grou
382: [23:04:18] <LimRes> group
383: [23:05:40] <LimRes> just tried getting rid of group and going straight for Member::get()
384: [23:05:44] <LimRes> no luck there either
385: [23:06:12] <Ryan-Toast> Sorry, I have no idea. Maybe try some of the more experiened guys here.
386: [23:06:19] <LimRes> ok thanks Ryan
387: [23:06:28] <Colin[pi]> ask simon_w, he knows all
388: [23:07:15] <LimRes> oh wise simon_w any idea on issue above using DataExtension on Member?
389: [23:11:33] <zippy____> LimRes: You need another level of indentin your yaml
390: [23:11:58] <zippy____> Need two more spaces before - CustomerExtension
391: [23:12:04] <zippy____> then flush
392: [23:13:09] * El has joined #silverstripe
393: [23:13:33] * El is now known as Guest70287
394: [23:14:24] <zippy____> LimRes: Sweet?
395: [23:15:32] <LimRes> zippy you are a lifesaver
396: [23:15:37] <LimRes> it's the little things
397: [23:15:39] <LimRes> whitespace
398: [23:15:48] <LimRes> thanks so much
399: [23:17:02] <Ryan-Toast> Anyone know if you can skip confirmPassword validation if it’s empty on an edit member form?
400: [23:17:36] * Guest70287 quit (Client Quit)
401: [23:24:43] <Colin[pi]> Ryan-Toast: is this in the CMS when the member edits their profile?
402: [23:24:54] <Ryan-Toast> Colin[pi]: Nah, front end form.
403: [23:25:18] <Colin[pi]> use PasswordField and not ConfirmedPasswordField?
404: [23:25:31] <Ryan-Toast> Colin[pi]: but what if they enter it wrong?
405: [23:26:04] <Colin[pi]> wait.. maybe I misunderstood, what's the issue?
406: [23:26:08] <ss23> I DONT KNOW WHAT MY FATHER TOLD YOU ABOUT ME BUT IM PERFECTLY CAPABLE OF LOOKING AFTER MYSELF
407: [23:26:12] <ss23> wrong window
408: [23:26:27] <Colin[pi]> lol ok?
409: [23:26:50] <Ryan-Toast> Colin[pi]: I have a edit profile form on the front end of members. If they change say their first name, they have to enter a new password. Which is not ideal.
410: [23:27:03] <Colin[pi]> ah
411: [23:27:39] <Colin[pi]> so it's using the field from the Member class
412: [23:27:49] <Colin[pi]> getMemberFormFields() ?
413: [23:28:04] <Ryan-Toast> Nah.
414: [23:28:10] <Ryan-Toast> just updating a bunch of fields
415: [23:28:42] <Ryan-Toast> Colin[pi]: https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/code/Modules/Registration/code/EditProfilePage.php
416: [23:28:44] <Colin[pi]> ok so where is the password field coming from?
417: [23:28:58] <Colin[pi]> ah I see
418: [23:29:14] <Colin[pi]> so you'd like it to be optional
419: [23:29:34] <Ryan-Toast> Yeah, I may just seperate the forms.
420: [23:29:41] <Colin[pi]> took the words out of my mouth
421: [23:29:42] <Colin[pi]> :)
422: [23:29:46] <Ryan-Toast> :P
423: [23:29:53] <Colin[pi]> I would have an edit profile form and a change password form
424: [23:30:00] <Colin[pi]> I've never liked them together
425: [23:30:52] <Ryan-Toast> Colin[pi]: Yeah, that loooks fine: http://i.imgur.com/JqvXMf6.png
426: [23:31:16] <Colin[pi]> cool
427: [23:31:30] <Colin[pi]> I like the keep the password stuff separate
428: [23:31:55] <Ryan-Toast> Yeah, me too.
429: [23:32:02] <Ryan-Toast> Was just going to be less code is all.
430: [23:43:36] * nbezzala has joined #silverstripe
431: [23:47:43] * Shrike_Finland quit (Quit: Leaving.)
432: [23:58:34] * babak quit (Quit: Connection closed for inactivity)

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