#silverstripe IRC Log

IRC log for 30 January 2017

All timestamps are in UTC.

1: [00:04:25] * samsamek quit (Quit: samsamek)
2: [00:07:17] <spronk> shit this place is dead
3: [00:22:04] * mikeyc7m has joined #silverstripe
4: [00:22:05] <ss-helper> mikeyc7m: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
5: [00:32:29] * mikeyc7m quit (Ping timeout: 260 seconds)
6: [00:42:46] * bubaphex has joined #silverstripe
7: [00:42:46] * bubaphex quit (Client Quit)
8: [00:43:01] * bubaphex has joined #silverstripe
9: [00:46:44] * bubaphex quit (Client Quit)
10: [00:50:49] * bubaphex has joined #silverstripe
11: [00:52:12] <spronk> oh neesham
12: [00:52:14] <spronk> silly
13: [01:14:00] * UncleCheese has joined #silverstripe
14: [01:29:09] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
15: [01:35:39] * Azure quit (Remote host closed the connection)
16: [01:39:45] * bubaphex quit (Quit: bubaphex)
17: [01:41:53] * Azure has joined #silverstripe
18: [01:45:51] <spronk> BOULTY
19: [01:45:53] <spronk> YEE HAW
20: [01:48:37] * bubaphex has joined #silverstripe
21: [02:01:49] * bubaphex quit (Quit: bubaphex)
22: [02:10:55] * Tron_ has joined #silverstripe
23: [02:12:13] * bubaphex has joined #silverstripe
24: [02:15:24] <Nightjar_> o/ spronk
25: [02:15:30] <spronk> njar
26: [02:15:32] <spronk> watup
27: [02:15:48] <Nightjar_> Cricket, by the sounds of it :P
28: [02:18:08] <spronk> mm
29: [02:18:11] <spronk> nz all out for 286
30: [02:18:18] <spronk> aus 1/0, end of first over
31: [02:18:24] <spronk> should be good
32: [02:18:31] <spronk> this place is dead as fuck
33: [02:30:39] * bubaphex quit (Quit: bubaphex)
34: [02:31:05] <spronk> fuckk
35: [02:31:07] <spronk> 10/2
36: [02:31:08] <spronk> nooooot bad
37: [02:32:20] * bubaphex has joined #silverstripe
38: [02:36:25] <Nightjar_> spronk, this cricket place/this irc channel?
39: [02:36:33] <spronk> irc chan :p
40: [02:36:47] <Nightjar_> Yeah, slack is the new buzz it seems.
41: [02:37:53] <spronk> waaaaaaaat
42: [02:39:50] <Nightjar_> ikr
43: [02:43:45] * Tron_ quit (Ping timeout: 260 seconds)
44: [02:43:57] <spronk> 18/3, shiiit
45: [02:58:18] * bubaphex quit (Quit: bubaphex)
46: [03:03:50] * bubaphex has joined #silverstripe
47: [03:11:50] <spronk> fuuuck aus... collapsing
48: [03:25:59] * bubaphex quit (Quit: bubaphex)
49: [04:46:55] * UncleCheese has joined #silverstripe
50: [04:59:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
51: [05:26:28] <spronk> YESSSS
52: [06:01:21] <spronk> whaaat an ending
53: [06:01:22] <spronk> holy crap
54: [06:21:42] * UncleCheese has joined #silverstripe
55: [06:54:49] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
56: [07:06:05] * wmk has joined #silverstripe
57: [07:08:23] * wmk_ has joined #silverstripe
58: [07:11:40] * wmk quit (Ping timeout: 240 seconds)
59: [07:23:26] * saiyan quit (Quit: BYE)
60: [07:25:54] * saiyan has joined #silverstripe
61: [07:34:03] * Eliseth has joined #silverstripe
62: [07:34:21] <Eliseth> Morning
63: [07:39:16] * wmk_ is now known as wmk
64: [07:43:17] * spronk quit (Quit: I may need a longer sleep timer...)
65: [08:14:30] * samsamek has joined #silverstripe
66: [08:41:08] * UncleCheese has joined #silverstripe
67: [08:55:38] * kinglozzer has joined #silverstripe
68: [09:08:35] * janneklouman-- has joined #silverstripe
69: [09:44:49] * agent44 has joined #silverstripe
70: [10:02:10] * janneklouman-- quit (Ping timeout: 240 seconds)
71: [10:14:21] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
72: [10:19:57] * DimiStripe quit (Quit: DimiStripe)
73: [10:20:22] * DimiStripe has joined #silverstripe
74: [10:20:53] * janneklouman-- has joined #silverstripe
75: [10:27:40] * samsamek quit (Quit: samsamek)
76: [10:42:10] <cloph_away> Hi *, there is not "exit loop" or "break" statement to exit a <% loop ... %> in templates, right?
77: [10:42:45] <ss23> I don't think there is, but there probably *could* be one
78: [10:52:48] * wmk quit (Ping timeout: 240 seconds)
79: [11:12:05] * janneklouman-- quit (Ping timeout: 240 seconds)
80: [11:14:08] * samsamek has joined #silverstripe
81: [12:06:37] * samsamek quit (Quit: samsamek)
82: [12:11:03] * janneklouman-- has joined #silverstripe
83: [12:26:17] * tester_ has joined #silverstripe
84: [12:26:54] <tester_> I am trying to update dataobject single record, but having this issue
85: [12:27:03] <tester_> here is the code http://www.sspaste.com/paste/show/588f30ee0a8cb
86: [12:27:14] <tester_> [Notice] Trying to get property of non-object
87: [12:28:25] <tester_> https://snag.gy/njH0MP.jpg
88: [12:29:02] <kinglozzer> tester_: $con is null
89: [12:29:17] <kinglozzer> Because it couldn't find a matching record
90: [12:30:54] <tester_> how would I fix this
91: [12:32:50] <kinglozzer> Well you'll need to check whether $con is actually an object before you try to use it in ->setValue()
92: [12:33:04] <kinglozzer> i.e. if ($con) { $field->setValue($con->FirstName); }
93: [12:38:15] <tester_> this fixed the issue but now when I click submit button url changes from this http://localhost/dyam/user-address-book/Update/15 to this
94: [12:38:17] <tester_> http://localhost/dyam/user-address-book/Update
95: [12:38:34] <tester_> and DO doesn't change
96: [13:07:12] * samsamek has joined #silverstripe
97: [13:29:25] * UndefinedOffset has joined #silverstripe
98: [13:36:59] * samsamek has left #silverstripe
99: [13:38:48] * janneklouman-- quit (Ping timeout: 240 seconds)
100: [13:46:44] * janneklouman-- has joined #silverstripe
101: [13:50:47] * mrG_ has joined #silverstripe
102: [13:51:08] <mrG_> How can i best force login on a controller
103: [13:51:47] <mrG_> ie show the page if permission is met or show loginform?
104: [14:01:55] <tester_> mrG=> try this if(!Member::currentUser()) { $this->redirect('Security/Login'); }
105: [14:14:26] * cloph_away is now known as cloph
106: [15:34:19] * mrG_ quit (Ping timeout: 260 seconds)
107: [15:46:50] * filisko has joined #silverstripe
108: [15:56:33] * wmk has joined #silverstripe
109: [16:00:08] * tester_ quit (Quit: Page closed)
110: [16:05:31] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
111: [17:17:54] * filisko quit (Quit: Leaving)
112: [17:19:26] * muskie9 has joined #silverstripe
113: [17:32:14] * kinglozzer quit ()
114: [17:49:03] * cloph quit (Ping timeout: 258 seconds)
115: [17:49:52] * cloph_away has joined #silverstripe
116: [18:13:42] * agent44 quit (Quit: zzz)
117: [18:37:19] <Nightjar_> canView
118: [18:37:34] <Nightjar_> Was the easy answer.
119: [18:37:40] <Nightjar_> (for a Controller)
120: [18:39:46] <Nightjar_> or set the permission level on the route via $allowed_actions
121: [18:44:29] * gelignite has joined #silverstripe
122: [18:59:36] * janneklouman-- quit (Ping timeout: 255 seconds)
123: [19:06:27] * tester__ has joined #silverstripe
124: [19:06:27] <ss-helper> tester__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
125: [19:06:50] <tester__> after logging in as normal user ss redirecting to admin/pages template
126: [19:07:05] <tester__> how can I restrict that page for a normal user
127: [19:11:12] * Nightjar__ has joined #silverstripe
128: [19:11:13] * Nightjar_ quit (Read error: Connection reset by peer)
129: [19:24:51] * bubaphex has joined #silverstripe
130: [19:27:03] * Nightjar_ has joined #silverstripe
131: [19:27:04] * Nightjar__ quit (Read error: Connection reset by peer)
132: [19:35:15] * tester__ quit (Ping timeout: 260 seconds)
133: [19:37:34] * bubaphex quit (Quit: bubaphex)
134: [19:39:35] * muskie9 quit (Ping timeout: 240 seconds)
135: [19:57:37] * bubaphex has joined #silverstripe
136: [20:01:19] * UncleCheese has joined #silverstripe
137: [20:08:04] * bubaphex quit (Quit: bubaphex)
138: [20:08:34] * bubaphex has joined #silverstripe
139: [20:25:06] * Nightjar_ quit (Ping timeout: 248 seconds)
140: [20:52:24] * DanaeNZ has joined #silverstripe
141: [21:07:05] * UndefinedOffset quit (Quit: Leaving.)
142: [21:10:16] * UndefinedOffset has joined #silverstripe
143: [22:12:13] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
144: [22:15:00] * UndefinedOffset quit (Quit: Leaving.)
145: [22:22:29] * ss_newbie has joined #silverstripe
146: [22:23:23] <ss_newbie> hi, How can I implement Every profile has a unique url..example .. mysite.com/johndavid
147: [22:25:10] * bubaphex quit (Quit: bubaphex)
148: [22:27:16] * bubaphex has joined #silverstripe
149: [22:35:27] * bubaphex quit (Quit: bubaphex)
150: [22:39:20] * bubaphex has joined #silverstripe
151: [22:41:39] * bubaphex quit (Client Quit)
152: [22:45:17] * bubaphex has joined #silverstripe
153: [22:47:18] * janneklouman-- has joined #silverstripe
154: [22:48:20] * bubaphex quit (Client Quit)
155: [22:50:18] * bubaphex has joined #silverstripe
156: [22:52:00] * janneklouman-- quit (Read error: Connection reset by peer)
157: [22:57:52] * janneklouman-- has joined #silverstripe
158: [22:59:15] * bubaphex quit (Quit: bubaphex)
159: [23:00:01] * ss-helper quit (Remote host closed the connection)
160: [23:00:15] * ss-helper has joined #silverstripe
161: [23:05:21] * Tron_ has joined #silverstripe
162: [23:06:16] <Tron_> Hey guys. How do I auto increment a db variable when i create a new dataobject?
163: [23:06:37] * janneklouman-- quit (Read error: Connection reset by peer)
164: [23:09:08] <ss_newbie> Could anyone help me
165: [23:17:53] * janneklouman-- has joined #silverstripe
166: [23:28:04] <Tron_> ss_newbie. The question is a bit vague. Are your "profiles" pages or DataObjects? look into creating slugs perhaps
167: [23:33:25] <ss_newbie> like when a user logged in and user account page I have how would I change the slug my-account to user username
168: [23:41:16] * UncleCheese has joined #silverstripe
169: [23:44:35] * UncleCheese quit (Read error: Connection reset by peer)
170: [23:44:40] * UncleChe_ has joined #silverstripe
171: [23:47:20] * Azure quit (Quit: Oops.)
172: [23:51:20] * Tron_ quit (Ping timeout: 260 seconds)

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