# |
Jan 29th 2014, 06:10 |
Junior |
yello ;) |
# |
Jan 29th 2014, 06:10 |
BackEndCoder |
i'm going to get some sleep, best of luck mate |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
or indeed 'werid' |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
that would make sence why $this is null |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
i'm guessing now tho, cause i don't have the code infront of me |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
you never know |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
try something like $this->Cms->render( array('view' => 'cms_index')); at the bottom of your cms_index action just to see if it works |
# |
Jan 29th 2014, 06:02 |
BackEndCoder |
this is why you are having problems using forms |
# |
Jan 29th 2014, 06:02 |
BackEndCoder |
so your cms_index your trying to load doesn't use the same controller |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
it would seem your cms thing has overridden rendering |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
and with the comments from the login area just above |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
$this->Cms->render( array('view' => 'index')); |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
the only difference i can see is this line |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
ok so |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
one is overview action the other is cms_index action |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
yes |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
index.ctp and cms_index.ctp |
# |
Jan 29th 2014, 05:56 |
BackEndCoder |
and are they from the same controller |
# |
Jan 29th 2014, 05:56 |
BackEndCoder |
can you give me the names of both views ? |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
the other view that is with a form |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
BackEndCoder: i did, i linked to it |
# |
Jan 29th 2014, 05:55 |
BackEndCoder |
if its outside the plugin range |
# |
Jan 29th 2014, 05:55 |
BackEndCoder |
the only thing i can think of is the location of the view file |
# |
Jan 29th 2014, 05:53 |
BackEndCoder |
if you have a github link to the plugin or something like this i might be more helpful |
# |
Jan 29th 2014, 05:52 |
BackEndCoder |
its hard to check it without having the code infront of me |
# |
Jan 29th 2014, 05:50 |
BackEndCoder |
check the directorys inside plugin/plugin_name/views/helper for anyfiles that look like form, or a form extentnion |
# |
Jan 29th 2014, 05:49 |
BackEndCoder |
check out the app controller too, to make sure they don't override the form helper |
# |
Jan 29th 2014, 05:49 |
BackEndCoder |
see how they made it |
# |
Jan 29th 2014, 05:49 |
BackEndCoder |
in a view |
# |
Jan 29th 2014, 05:49 |
BackEndCoder |
there is probably another place they already have a form |
# |
Jan 29th 2014, 05:48 |
BackEndCoder |
in the whole plugin |
# |
Jan 29th 2014, 05:48 |
Starcraftmazter |
inside the view |
# |
Jan 29th 2014, 05:48 |
Starcraftmazter |
and/or doesnt exist |
# |
Jan 29th 2014, 05:48 |
Starcraftmazter |
null |
# |
Jan 29th 2014, 05:48 |
Starcraftmazter |
BackEndCoder: this is my problem, $this->Form is nullk |
# |
Jan 29th 2014, 05:48 |
BackEndCoder |
or its not going to show an output |
# |
Jan 29th 2014, 05:48 |
BackEndCoder |
remember to echo it |
# |
Jan 29th 2014, 05:48 |
BackEndCoder |
$this->Form->create() will get you started |
# |
Jan 29th 2014, 05:47 |
Starcraftmazter |
BackEndCoder: what object do i call it on? |
# |
Jan 29th 2014, 05:47 |
BackEndCoder |
the data send from the form, is all in the controller |
# |
Jan 29th 2014, 05:47 |
BackEndCoder |
forms are all about the view |