# |
Jan 11th 2018, 18:52 |
bigdaddygee |
Can't say |
# |
Jan 11th 2018, 18:48 |
Es0teric |
so i have a question -- why is it that my $this->render() is not working even after I am specifying the file |
# |
Jan 11th 2018, 18:37 |
bigdaddygee |
@dereuromark I would ask you something, feel free to refuse. I'm searching since a long time, someone willing to explain me a little bit how I can participate in Cake dev's. As I would love to create some PR and fix some bugs. I'm a good programmer, doing CakePHP for the last year, my bigguest problem is more about understanding where to find bug list, feature list, how to make a good PR... |
# |
Jan 11th 2018, 17:27 |
neon1024 |
I’m heading out of the office shortly. Need to get this form finished off. Send me a PM with the link if you wouldn’t mind and I’ll take a look tomorrow :slightly_smiling_face: |
# |
Jan 11th 2018, 17:25 |
dereuromark |
in case you find a few minutes, must be only a small tweak |
# |
Jan 11th 2018, 17:25 |
dereuromark |
See my open PR for tooltips |
# |
Jan 11th 2018, 17:25 |
neon1024 |
Oh geez yeah! |
# |
Jan 11th 2018, 17:25 |
neon1024 |
I think it’s mostly getting some markup into the wrapping div |
# |
Jan 11th 2018, 17:25 |
dereuromark |
the div=>false also killed me a few times HEHE |
# |
Jan 11th 2018, 17:25 |
dereuromark |
So no tooltips anymore for the time being here |
# |
Jan 11th 2018, 17:25 |
dereuromark |
Upgrading from a 2.x app I had to deactivate those two as hack until a better solution can be found |
# |
Jan 11th 2018, 17:24 |
dereuromark |
I agree :slightly_smiling_face: |
# |
Jan 11th 2018, 17:23 |
neon1024 |
Or making a whole new widget to change the markup |
# |
Jan 11th 2018, 17:23 |
neon1024 |
Should really be supported by Cake without doing all the hassle of messing with templates |
# |
Jan 11th 2018, 17:23 |
neon1024 |
<3 bootstrap-ui helper for that |
# |
Jan 11th 2018, 17:20 |
neon1024 |
It’s a shame we’ve lost the ability to use ‘before’ and ‘after’ in the form helper :*( |
# |
Jan 11th 2018, 17:07 |
Es0teric |
bigdaddygee so then even with `return;` its still not rendering the view i am specifying |
# |
Jan 11th 2018, 16:59 |
Es0teric |
ah i see |
# |
Jan 11th 2018, 16:58 |
bigdaddygee |
die stop all process (including rendering) |
# |
Jan 11th 2018, 16:58 |
bigdaddygee |
instead of die use return; |
# |
Jan 11th 2018, 16:56 |
Es0teric |
i also have a die(); after |
# |
Jan 11th 2018, 16:56 |
Es0teric |
but its not rendering |
# |
Jan 11th 2018, 16:56 |
Es0teric |
i have this: if( !is_null( $existingUser ) ) { $this->render('HCConfirmer.HCConfirmers/display_merge'); } |
# |
Jan 11th 2018, 16:55 |
bigdaddygee |
https://book.cakephp.org/2.0/en/controllers.html#rendering-a-specific-view |
# |
Jan 11th 2018, 16:54 |
Es0teric |
question -- if i am in a controller on cake 2.x, how do i render a different view without allowing the controller to continue going to the default behavior? |
# |
Jan 11th 2018, 16:51 |
slackebot |
acceptable answer. after all, i'm not the one asking the question ;) |
# |
Jan 11th 2018, 16:51 |
bigdaddygee |
Part of the problem right now is that you use word.word as key, and I think that inflector do not like it and that's why it's not working. I asked you the fieldName in your table ta refer to your tags id, and you where not able to tell me. So that's why I invite you to use bake, it will prepare the code for you, and you'll be able to understand what's going on. But that's your call if you think that i'm not good enough to point you to an |
# |
Jan 11th 2018, 16:49 |
bigdaddygee |
And you'll see |
# |
Jan 11th 2018, 16:49 |
bigdaddygee |
it will do it for you |
# |
Jan 11th 2018, 16:49 |
bigdaddygee |
... if you do use bake |
# |
Jan 11th 2018, 16:49 |
pedroseco |
thanks :slightly_smiling_face: |
# |
Jan 11th 2018, 16:48 |
pedroseco |
Will read the documentation on that part to find if it's true. |
# |
Jan 11th 2018, 16:48 |
pedroseco |
not the issue I think. belongsToMany probably need a custom validation rule, that's all I was going to ask. |
# |
Jan 11th 2018, 16:46 |
bigdaddygee |
Have you ever tried bake ? |
# |
Jan 11th 2018, 16:46 |
pedroseco |
I think the schema is not the problem |
# |
Jan 11th 2018, 16:45 |
pedroseco |
yes |
# |
Jan 11th 2018, 16:44 |
bigdaddygee |
Two things, have you done your relations in db ? (foreign key) ? |
# |
Jan 11th 2018, 16:44 |
bigdaddygee |
I have an idea for you |
# |
Jan 11th 2018, 16:44 |
bigdaddygee |
Wait wait wait... |
# |
Jan 11th 2018, 16:44 |
bigdaddygee |
And what's the structure of posts |
# |
Jan 11th 2018, 16:43 |
pedroseco |
so it should be straight forward. At least there is no problem at all on saving data. I was just trying to use the validator, and only now noticed the difficulty |