# |
Sep 11th 2009, 11:00 |
markstory |
might have been less. |
# |
Sep 11th 2009, 11:00 |
markstory |
like 2 months. |
# |
Sep 11th 2009, 11:00 |
markstory |
well there was a very brief point in time where Component was a base class. |
# |
Sep 11th 2009, 11:00 |
crayfishuk |
You're not kidding. wiped out most of today. |
# |
Sep 11th 2009, 11:00 |
thinline |
well you know what everyone wants to extend |
# |
Sep 11th 2009, 10:59 |
crayfishuk |
Serves me right for lifting someone elses ****ing component.. |
# |
Sep 11th 2009, 10:59 |
markstory |
yeah that's a slightly unintuitive part of components. |
# |
Sep 11th 2009, 10:59 |
markstory |
Object |
# |
Sep 11th 2009, 10:59 |
crayfishuk |
Object? |
# |
Sep 11th 2009, 10:59 |
crayfishuk |
What should I extend for a new component ? |
# |
Sep 11th 2009, 10:59 |
crayfishuk |
AHA! |
# |
Sep 11th 2009, 10:58 |
markstory |
It causes badness. |
# |
Sep 11th 2009, 10:58 |
markstory |
because you can't do that. |
# |
Sep 11th 2009, 10:58 |
markstory |
crayfishuk: are you extending Component? |
# |
Sep 11th 2009, 10:58 |
crayfishuk |
http://bin.cakephp.org/view/1757311900 |
# |
Sep 11th 2009, 10:58 |
crayfishuk |
markstory: Found it... Component::beforeRedirect returns an array(); if you use a component which itself doesn't have a beforeRedirect - but which *uses* a component which has a beforeRedirect -- then method_exists returns true, but the $resp is returned from the raw Component::beforeRedirect (whcih is array() ) |
# |
Sep 11th 2009, 10:53 |
jessica-m |
now i can consume my lunch |
# |
Sep 11th 2009, 10:52 |
jessica-m |
I FIXED IT |
# |
Sep 11th 2009, 10:49 |
thinline |
I guess I have viewPath |
# |
Sep 11th 2009, 10:47 |
thinline |
in an element how would you find out what controller method called you (or what view) |
# |
Sep 11th 2009, 10:46 |
markstory |
the code doesn't get lost, it just doesn't display properly normally. |
# |
Sep 11th 2009, 10:46 |
Ceeram |
ok i will then thx |
# |
Sep 11th 2009, 10:46 |
markstory |
Ceeram: well you can bin the diffs, and put the bin urls in the ticket too. |
# |
Sep 11th 2009, 10:44 |
Ceeram |
i was told not to fork |
# |
Sep 11th 2009, 10:44 |
Ceeram |
at least they are in page source, perhaps your db will hold the data |
# |
Sep 11th 2009, 10:43 |
Ceeram |
well attach within ticket i see half the code will be lost if the lines are too long |
# |
Sep 11th 2009, 10:43 |
markstory |
you cited lines and return values that don't exist. |
# |
Sep 11th 2009, 10:43 |
jessica-m |
its an unbug! |
# |
Sep 11th 2009, 10:42 |
markstory |
because right now you have a non-bug. |
# |
Sep 11th 2009, 10:42 |
markstory |
crayfishuk: ok. |
# |
Sep 11th 2009, 10:42 |
markstory |
Ceeram you can either just attach them to the ticket or if you have a fork, commit them and someone can pick them from there. |
# |
Sep 11th 2009, 10:42 |
crayfishuk |
Going to run through it again and work how how the array() got in there. |
# |
Sep 11th 2009, 10:41 |
Ceeram |
markstory, just finished patch and tests for acl behaviour, bin the diffs? sonce the attachments on code.cakephp don't work |
# |
Sep 11th 2009, 10:41 |
markstory |
there is no line that says return array() |
# |
Sep 11th 2009, 10:40 |
markstory |
you can say its in requestHandler but its not. |
# |
Sep 11th 2009, 10:40 |
markstory |
crayfishuk: where? I don't see a return array() anywhere. |
# |
Sep 11th 2009, 10:40 |
Ceeram |
~bin |
# |
Sep 11th 2009, 10:40 |
crayfishuk |
But the return is coming from the RequestHandlerComponent --- I don't have a beforeRedirect method anywhere in my code.. |
# |
Sep 11th 2009, 10:40 |
markstory |
Component::beforeRedirect() returns an array of responses from the various components. Components should return null if they have changes to make, not array() |
# |
Sep 11th 2009, 10:40 |
_shoot^ |
Hey peeps. I'm having issues with tinyMCE in a CakePHP plugin. None of the CSS, images for buttons etc. are loading. Basically, its this problem here: https://trac.cakephp.org/ticket/5914. Does anyone know a current fix? |
# |
Sep 11th 2009, 10:39 |
markstory |
crayfishuk: ok, but that doesn't explain your ticket. If your component is returning an array() when it should be returning null that is your issue. |