# |
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. |
# |
Sep 11th 2009, 10:39 |
crayfishuk |
It's getting called by the RequestHandlerComponent::beforeRedirect |
# |
Sep 11th 2009, 10:38 |
crayfishuk |
markstory: Sorry - it's the Component::beforeRedirect that returns the array() |
# |
Sep 11th 2009, 10:36 |
miguelmarbella |
i want to Attach a file to an email, changing the name to will be appear in the mail ,, anybody can help me? |
# |
Sep 11th 2009, 10:35 |
jessica-m |
is there a way to select the local key to link the foreign key to? |
# |
Sep 11th 2009, 10:35 |
markstory |
or nothing because it halts the script. |
# |
Sep 11th 2009, 10:35 |
markstory |
returns null |
# |
Sep 11th 2009, 10:35 |
markstory |
RequestHandler::beforeRedirect doesn't return array. |
# |
Sep 11th 2009, 10:34 |
crayfishuk |
where the RequestHandler::beforeRender returns an array() - which shouldnt be used to override the $url |
# |
Sep 11th 2009, 10:34 |
markstory |
you just gave lots of examples of core code which I already have. |
# |
Sep 11th 2009, 10:34 |
markstory |
ok your ticket doesn't actually show how I could reproduce your error. |
# |
Sep 11th 2009, 10:34 |
miguelmarbella |
hello |
# |
Sep 11th 2009, 10:34 |
crayfishuk |
markstory: The return value from beforeRender is not checked properly. If there is a component that uses Request Handler it returns an array() itself e.g. array( null, null, array(), null) |
# |
Sep 11th 2009, 10:33 |
markstory |
so your component is returning an array? |
# |
Sep 11th 2009, 10:32 |
markstory |
crayfishuk: so what was it? |
# |
Sep 11th 2009, 10:29 |
tPl0ch |
*for |
# |
Sep 11th 2009, 10:28 |
tPl0ch |
Ceeram: rightly guessed, 100 points |
# |
Sep 11th 2009, 10:26 |
nnc |
never mind, got what I need with "if ($this->query($sql) !== false) ..." |
# |
Sep 11th 2009, 10:25 |
Ceeram |
i guess afterSae is not called when save() fails? |
# |
Sep 11th 2009, 10:25 |
jessica-m |
what am i missing in my bindings? |
# |
Sep 11th 2009, 10:23 |
crayfishuk |
Just thought I'd kick up a little straw poll - thanks folks! |
# |
Sep 11th 2009, 10:23 |
nnc |
I would prefer something that would return number of affected rows |
# |
Sep 11th 2009, 10:23 |
crayfishuk |
Okay - I'm sold on the array(controller,method) stuff... |
# |
Sep 11th 2009, 10:22 |
crayfishuk |
YAY!!! found my redirect problem... and its NOT MY FAULT!! (and I've reported by first cake bug...) |
# |
Sep 11th 2009, 10:22 |
nnc |
Problem with query is that it just returns empty array for insert queries |
# |
Sep 11th 2009, 10:21 |
tPl0ch |
crayfishfunk: automatic update of links when changing routes |
# |
Sep 11th 2009, 10:21 |
nnc |
Is there any other method (beside query) that can be used in a model to insert data with custom SQL? |
# |
Sep 11th 2009, 10:21 |
nnc |
Hi all |
# |
Sep 11th 2009, 10:20 |
jessica-m |
what binding do i need to modify to make comments.id be comments.user_id |
# |
Sep 11th 2009, 10:17 |
jperras |
crayfishuk: reverse routing |
# |
Sep 11th 2009, 10:17 |
jessica-m |
if you were to change routing, it would map the link accordingly |
# |
Sep 11th 2009, 10:16 |
jessica-m |
routing? |
# |
Sep 11th 2009, 10:16 |
crayfishuk |
I know that the 'proper' way of specifying a controller/action is array(controller=>xxx,action=>yyy) --- but what are the advantages of that over '/controller/action'....? |
# |
Sep 11th 2009, 10:09 |
jessica-m |
when i add the alias, it tells me that the table 'Notes2' doesnt exist |
# |
Sep 11th 2009, 10:09 |
jessica-m |
LEFT JOIN `notes` AS `Note` ON (`Note`.`id` = `Comment`.`id`) |
# |
Sep 11th 2009, 10:06 |
U|zzz |
can someone tell me why the variables i pass into my plugin.helper come out as the names of the variables rather than the actual values? http://pastebin.com/m592c89cb |
# |
Sep 11th 2009, 10:04 |
jessica-m |
( |
# |
Sep 11th 2009, 10:01 |
seamaster |
i trie d with bind and does not work... |
# |
Sep 11th 2009, 10:01 |
seamaster |
how can i paginate the data from 3 tables ,only 2 ofthem have associative models? |