# |
Sep 22nd 2011, 12:56 |
isaqual |
dakota: I cant see params wich are set in init method |
# |
Sep 22nd 2011, 12:56 |
dakota |
isaqual: how do you know that your helper isn't being initialised? |
# |
Sep 22nd 2011, 12:56 |
dakota |
the helper initialisation is done in the view constructor. So it *should* work... |
# |
Sep 22nd 2011, 12:55 |
isaqual |
Mean helper |
# |
Sep 22nd 2011, 12:55 |
isaqual |
looks like it will never initialize that component |
# |
Sep 22nd 2011, 12:53 |
isaqual |
hmm.. weird. Logged object is actually that helper but it doesn't just do anything. |
# |
Sep 22nd 2011, 12:49 |
ADmad |
use the $this->log to log stuff and find out |
# |
Sep 22nd 2011, 12:48 |
isaqual |
And very hard to debug in shell mode .. |
# |
Sep 22nd 2011, 12:48 |
isaqual |
I get no error about missing helper but it still does nothing :/ |
# |
Sep 22nd 2011, 12:47 |
ADmad |
whats not working and what doesnt do anything |
# |
Sep 22nd 2011, 12:47 |
isaqual |
ADmad: Does nothing actually |
# |
Sep 22nd 2011, 12:47 |
isaqual |
ADmad: I get no error anymore but it is not working.. |
# |
Sep 22nd 2011, 12:44 |
isaqual |
ADmad: sounds good, I ll try |
# |
Sep 22nd 2011, 12:43 |
ADmad |
isaqual: after the line $this->Controller =and new Controller(); do $this->Controller->helpers = array('foo', 'bar'); |
# |
Sep 22nd 2011, 12:43 |
isaqual |
aff.. and work day is too near to end.. |
# |
Sep 22nd 2011, 12:43 |
isaqual |
yeah |
# |
Sep 22nd 2011, 12:43 |
isaqual |
ADmad: And there is no problems sending emails. Problem is using own helpers in email-templates. |
# |
Sep 22nd 2011, 12:42 |
rchavik |
he can't get his helpers working in the email view |
# |
Sep 22nd 2011, 12:42 |
isaqual |
ADmad: thanks but I've readed this many times today :) |
# |
Sep 22nd 2011, 12:41 |
ADmad |
isaqual: http://bakery.cakephp.org/articles/Jippi/2007/12/02/emailcomponent-in-a-cake-shell |
# |
Sep 22nd 2011, 12:40 |
isaqual |
rchavik: I can't understand how it can help in this case |
# |
Sep 22nd 2011, 12:39 |
DidItAgain |
aright. Lemme know |
# |
Sep 22nd 2011, 12:38 |
DidItAgain |
rchavik, Id be interested in the git project you had an idea about |
# |
Sep 22nd 2011, 12:38 |
rchavik |
maybe create a dummy controller with all your required helpers + component, then use that in the shell |
# |
Sep 22nd 2011, 12:37 |
rchavik |
yeah.. you're using a Controller, no name |
# |
Sep 22nd 2011, 12:36 |
isaqual |
rchavik: "Fatal error: Class '' not found in .." |
# |
Sep 22nd 2011, 12:34 |
dakota |
franki: you don't have to use it, but it will show you how to do it at least :) |
# |
Sep 22nd 2011, 12:33 |
rchavik |
isaqual, try adding $this->Controller->constructClasses() after line 5 |
# |
Sep 22nd 2011, 12:32 |
franki |
im not so lucky with plugins usually |
# |
Sep 22nd 2011, 12:31 |
franki |
lets see |
# |
Sep 22nd 2011, 12:31 |
isaqual |
basic cake helpers works fine.. like $html |
# |
Sep 22nd 2011, 12:31 |
dakota |
franki: look at the cakedc users plugin. It includes that |
# |
Sep 22nd 2011, 12:31 |
isaqual |
I can send emails but not use any own helpers like image-resize in email templates |
# |
Sep 22nd 2011, 12:30 |
franki |
but what if users closes page |
# |
Sep 22nd 2011, 12:30 |
franki |
or i could just send email and ask for a code in the same page |
# |
Sep 22nd 2011, 12:29 |
rchavik |
fenix`, yeah.. isaqual |
# |
Sep 22nd 2011, 12:29 |
fenix` |
oh auto name completion fail |
# |
Sep 22nd 2011, 12:29 |
franki |
how do i retrieve data from it?it should be kinda random page |
# |
Sep 22nd 2011, 12:29 |
fenix` |
not me.. |
# |
Sep 22nd 2011, 12:29 |
fenix` |
rchavik: what? |
# |
Sep 22nd 2011, 12:28 |
franki |
i need a "register module"but it must have an email of confirm |