#silverstripe IRC Log

IRC log for 19 October 2013

All timestamps are in UTC.

1: [00:14:46] * spronk2 has joined #silverstripe
2: [00:23:29] * SightUnseen has joined #silverstripe
3: [00:23:43] * SightUnseen has left #silverstripe
4: [00:47:58] * toddmorey quit (Quit: Leaving.)
5: [00:58:26] * spronk2 quit (Quit: spronk2)
6: [01:09:02] * toddmorey has joined #silverstripe
7: [01:13:28] * simon_w quit (Quit: Leaving)
8: [02:38:12] * simon_w has joined #silverstripe
9: [03:03:44] * ajshort has joined #silverstripe
10: [03:22:23] * CodeTrap quit (Ping timeout: 260 seconds)
11: [03:23:01] * CodeTrap has joined #silverstripe
12: [03:49:45] * cloph_away has joined #silverstripe
13: [03:50:06] * cloph quit (Read error: Operation timed out)
14: [03:55:50] * jrthomer_ has joined #silverstripe
15: [03:57:11] * jrthomer_ quit (Remote host closed the connection)
16: [04:29:30] * toddmorey quit (Quit: Leaving.)
17: [04:48:33] <guzzlefry> What's a good way to create mock dataobjects?
18: [04:48:57] <guzzlefry> I need to do the templates first because silly clients. :P
19: [04:59:55] <simon_w> ArrayData
20: [05:01:21] <guzzlefry> ah, thank you sir
21: [05:01:41] * SightUnseen has joined #silverstripe
22: [05:03:08] * SightUnseen quit (Client Quit)
23: [05:11:57] * joelpittet has joined #silverstripe
24: [05:30:22] * toddmorey has joined #silverstripe
25: [05:39:07] * toddmorey quit (Ping timeout: 248 seconds)
26: [05:40:22] * toddmorey has joined #silverstripe
27: [06:00:33] * SightUnseen has joined #silverstripe
28: [06:00:37] * SightUnseen has left #silverstripe
29: [06:00:59] * robert_ quit (Read error: Connection reset by peer)
30: [06:05:00] * robert_ has joined #silverstripe
31: [06:10:23] * CodeTrap quit (Ping timeout: 260 seconds)
32: [07:00:19] * SightUnseen has joined #silverstripe
33: [07:00:22] * SightUnseen has left #silverstripe
34: [07:55:55] * violetina has joined #silverstripe
35: [08:03:38] * chillu has joined #silverstripe
36: [08:08:24] * Nightjar has joined #silverstripe
37: [08:45:16] * mobiusnz has joined #silverstripe
38: [08:48:08] * spronk has left #silverstripe
39: [08:49:21] * spronk has joined #silverstripe
40: [09:11:22] * pathum has joined #silverstripe
41: [09:16:27] * skorp has joined #silverstripe
42: [09:36:38] * pathum quit (Quit: Leaving)
43: [09:45:23] * gelignite has joined #silverstripe
44: [10:13:04] * travis-ci has joined #silverstripe
45: [10:13:05] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1326 (3.1 - f532b84 : Ingo Schommer): The build passed.
46: [10:13:05] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/69c888a2ac7a...f532b8483b98
47: [10:13:05] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12752360
48: [10:13:05] * travis-ci has left #silverstripe
49: [10:27:26] <irogue23> SUP Y'ALLL
50: [10:28:49] <Nightjar> hi irogue23
51: [10:31:30] <spronk> WATUP
52: [10:31:49] <Nightjar> sleep 'bout to go down.
53: [10:32:13] <spronk> mm..
54: [10:39:09] * chillu quit (Quit: chillu)
55: [10:40:35] * mobiusnz quit (Quit: Leaving.)
56: [10:49:09] * joelpittet quit (Remote host closed the connection)
57: [10:54:12] * Alexw has joined #silverstripe
58: [10:55:00] <Alexw> Hi, can someone help me setup my first widget?
59: [10:55:09] <Alexw> I have been strugeling with it since yesterday
60: [10:55:45] <Alexw> Here is my code: http://pastebin.com/UQDz1VuM
61: [10:56:00] <Alexw> I can add the widget from the cms at the pages section
62: [10:56:06] <Alexw> It has been added to the home page
63: [10:56:18] <Alexw> I also added $WidgetArea to the my main layout
64: [10:56:38] <Alexw> At Page.php I got this too: private static $has_one = array("WidgetArea" => "WidgetArea");
65: [10:56:56] <Alexw> And yes, I have flushed and rebuild the DB
66: [10:58:05] <Alexw> Any suggestions?
67: [10:59:34] * chillu has joined #silverstripe
68: [11:02:37] * irogue23 licks Nightjar
69: [11:10:54] <skorp> hi, on php5.4 index.php is added to the urls, this solves the problem Director::setBaseURL('/'); when i add it to config.php but when i try to add it to config.yml
70: [11:10:55] <skorp> Director:
71: [11:10:55] <skorp> rules:
72: [11:10:55] <skorp> alternate_base_url: '/'
73: [11:10:55] <skorp> it doesn't work, anyone an idea how to add this to yml config??
74: [11:23:23] <Alexw> I don't think it is caused by PHP5.4
75: [11:25:15] * chillu quit (Quit: chillu)
76: [11:25:48] * jrthomer_ has joined #silverstripe
77: [11:26:11] * Alexw is wondering why nobody is replying
78: [11:46:11] <Alexw> Why is silverstripe using allowed_actions? Why do you have to define actions?
79: [11:47:11] <jrthomer_> Alexw: you don't want people to be able to call arbitrary functions on your controller
80: [11:47:17] <Alexw> Then make it private
81: [11:47:27] <jrthomer_> that's not a solution
82: [11:47:34] <jrthomer_> other code may need to call your controller methods
83: [11:47:34] <Alexw> Why not?
84: [11:48:03] <Alexw> I thought the controller was the parent of the request
85: [11:48:17] <Alexw> As far as I know you descend into code, you don't go back to the parent again
86: [11:48:42] <jrthomer_> controllers may need to interact with other controllers
87: [11:48:53] <Alexw> Why you want that?
88: [11:49:04] <jrthomer_> also, templates can call methods on controllers if they are public
89: [11:49:06] <Alexw> If you do that then the logic is in the wrong place
90: [11:49:26] <Alexw> Wow
91: [11:49:33] <Alexw> View calling functions to the controller?
92: [11:49:42] <Alexw> Ah yes
93: [11:49:45] <Alexw> I remember
94: [11:49:48] <Alexw> The functions
95: [11:50:08] <jrthomer_> Alexw: it's not bad to have controllers interact with other controllers
96: [11:50:23] <Alexw> Yeah, I was wondering why you can't just set variables for the view rather then the view have access to the controller
97: [11:50:27] <jrthomer_> actually, many MVC frameworks break down controllers into more fine-grained things than just "request controller"
98: [11:50:42] <Alexw> If you do that then the logic is in the wrong place
99: [11:50:44] <jrthomer_> you may have a controller for each widget on the page, etc
100: [11:50:55] <Nightjar> because then you'd have a viewmodel, not a controller
101: [11:51:01] <jrthomer_> right, thanks Nightjar
102: [11:51:07] <Alexw> This does not break the thing of my statement of public and privte functions
103: [11:52:10] <jrthomer_> Alexw: sorry, I've got to run... you asked why actions needed to be declared and I explained. the rest of that (private/public) is up to your style/opinion, but I'd suggest you don't keep bashing people who help you on support forums by telling them arbitrarily that their way is wrong
104: [11:52:21] <Nightjar> Alexw: allowed actions is to define which methods on the controller are available to a request, as opposed to publicly accessible by other objects
105: [11:52:22] <jrthomer_> it's just not good netiquette
106: [11:52:37] <Alexw> I was just wondering, I'm not bashing things
107: [11:52:58] <Nightjar> Then phrase yourself in a different manner.
108: [11:53:25] <jrthomer_> <Alexw> If you do that then the logic is in the wrong place
109: [11:53:33] <jrthomer_> ^^^ that == "you're wrong"
110: [11:53:42] <jrthomer_> anyway, gotta run. ttyl
111: [11:53:46] * jrthomer_ quit (Remote host closed the connection)
112: [11:53:48] <Nightjar> glhf
113: [11:53:53] * Nightjar has left #silverstripe
114: [11:54:18] <Alexw> "controllers may need to interact with other controllers"...I mean to reply to that...I think then it is in the wrong place
115: [11:54:56] <Alexw> I think that controllers may not access other controllers directly
116: [11:55:03] <Alexw> But that is just my opinion
117: [11:55:37] <Alexw> Btw, my IDE sometimes freak out about the PHPDoc
118: [11:55:55] <Alexw> "Expected The, got string"
119: [11:58:01] <Alexw> Oh god, I was talking to myself
120: [12:06:30] * Shrike_Finland has joined #silverstripe
121: [12:07:32] * skorp has left #silverstripe
122: [12:07:42] <irogue23> Alexw: hahaha
123: [12:07:51] <irogue23> RONERY
124: [12:27:40] * DesignerX has joined #silverstripe
125: [12:27:44] * spronk2 has joined #silverstripe
126: [12:55:16] <Alexw> Is it possible to ignore the setting of a page that it won't be shown on a menu?
127: [12:56:04] <Alexw> In code
128: [12:59:28] * violetina quit (Remote host closed the connection)
129: [13:29:06] * spronk2 quit (Quit: spronk2)
130: [13:29:40] * osterlaus has joined #silverstripe
131: [14:11:09] * osterlaus quit (Quit: Leaving.)
132: [14:25:11] * guci0 has joined #silverstripe
133: [14:25:21] <guci0> Hello!
134: [15:15:58] <DesignerX> hi, When saving an object, how can I get the data that is being submitted & do some validation before write().
135: [15:26:08] * swordsmanz quit (Read error: Connection reset by peer)
136: [15:27:11] * swordsmanz has joined #silverstripe
137: [15:33:14] * skorp has joined #silverstripe
138: [15:47:06] * swordsmanz quit (Quit: swordsmanz)
139: [16:35:01] * DesignerX quit (Ping timeout: 272 seconds)
140: [17:24:58] * AlphaCactus_ has joined #silverstripe
141: [17:28:13] * AlphaCactus quit (Ping timeout: 272 seconds)
142: [17:28:23] * AlphaCactus_ is now known as AlphaCactus
143: [17:35:11] * Alexw quit ()
144: [18:06:33] <Zauberfisch23> 4
145: [18:10:39] * toddmorey quit (Quit: Leaving.)
146: [18:23:24] * skorp has left #silverstripe
147: [19:07:15] * toddmorey has joined #silverstripe
148: [19:38:57] * jrthomer_ has joined #silverstripe
149: [20:04:41] * pippy has joined #silverstripe
150: [20:07:27] * pippy_ quit (Ping timeout: 272 seconds)
151: [20:09:44] * pippy_ has joined #silverstripe
152: [20:12:21] * pippy quit (Ping timeout: 248 seconds)
153: [20:14:44] * pippy has joined #silverstripe
154: [20:15:07] * robert_ quit (Ping timeout: 256 seconds)
155: [20:15:23] * pippy_ quit (Ping timeout: 248 seconds)
156: [20:21:40] * toddmorey quit (Quit: Leaving.)
157: [21:00:12] * Colin[pi] has joined #silverstripe
158: [21:10:57] * SightUnseen has joined #silverstripe
159: [21:10:59] * SightUnseen has left #silverstripe
160: [21:13:02] * pippy_ has joined #silverstripe
161: [21:15:13] * pippy quit (Ping timeout: 272 seconds)
162: [21:17:35] * Nightjar has joined #silverstripe
163: [21:19:41] * DigNZ has joined #silverstripe
164: [21:19:44] * DigNZ quit (Client Quit)
165: [21:57:55] * toddmorey has joined #silverstripe
166: [22:00:45] * jrthomer_ quit (Remote host closed the connection)
167: [22:17:02] * robert_ has joined #silverstripe
168: [22:49:28] * Nightjar quit (Quit: Nightjar)
169: [22:53:30] * SightUnseen has joined #silverstripe
170: [22:53:39] * SightUnseen has left #silverstripe
171: [23:14:13] * guci0 quit (Ping timeout: 250 seconds)
172: [23:15:03] * DesignerX has joined #silverstripe
173: [23:26:48] * DesignerX quit (Read error: Connection timed out)
174: [23:27:14] * DesignerX has joined #silverstripe

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