# |
Apr 17th 2017, 13:06 |
mikesmoniker |
In 2.x, is there a likely reason why Cake would be trying to do an insert (resulting in an integrity violation constraint) when deep saving a model w/ a hasOne relationship? |
# |
Apr 17th 2017, 12:55 |
makallio85 |
what would be the correct place to build navigation links for entities automatically in cakephp 3 rest api? |
# |
Apr 17th 2017, 11:56 |
theaxiom |
sorry for the spam :,) |
# |
Apr 17th 2017, 11:56 |
theaxiom |
I'm off to bed, g'night folks |
# |
Apr 17th 2017, 11:44 |
dakota |
`$this->request->session()` |
# |
Apr 17th 2017, 11:44 |
dakota |
Through the request |
# |
Apr 17th 2017, 11:39 |
rushabh |
How can i access session in Helper in cakephp 3.x ? |
# |
Apr 17th 2017, 11:24 |
aiena |
admad you use short php tags ? |
# |
Apr 17th 2017, 10:48 |
admad |
https://github.com/cakephp/bake/blob/master/src/Template/Bake/Element/Controller/delete.ctp#L26 |
# |
Apr 17th 2017, 10:45 |
admad |
obinoob: this is why a delete action (or any action which modifies) db should not be performed in a GET request. |
# |
Apr 17th 2017, 10:29 |
aiena |
in javascript |
# |
Apr 17th 2017, 10:29 |
aiena |
Is it possible to use the html helper to generate URL's for cakephp |
# |
Apr 17th 2017, 09:48 |
obinoob |
is there any cake native functionality to whitelist actions before return $this->redirect($this->Auth->redirectUrl()) ? Or I will have to implement my self? |
# |
Apr 17th 2017, 09:41 |
obinoob |
i guess I'll have to drop some functionality here |
# |
Apr 17th 2017, 09:37 |
obinoob |
it will be executed after proper login without the acknowledgment of the user |
# |
Apr 17th 2017, 09:36 |
obinoob |
this is terrible because if someone makes an earlier request such as /delete/12 |
# |
Apr 17th 2017, 09:35 |
obinoob |
jungle-rock: The last request is being executed by return $this->redirect($this->Auth->redirectUrl()) |
# |
Apr 17th 2017, 09:31 |
jungle-rock |
use cakephp auth |
# |
Apr 17th 2017, 09:31 |
obinoob |
I suspect that the last unauthorised request will be kept in session data right or somewhere else? |
# |
Apr 17th 2017, 08:39 |
obinoob |
I've noticed that while logged off if i make a get request it will be executed after login! Is there a way I can disable that? |
# |
Apr 17th 2017, 07:53 |
rudy1976s |
is there someone who translate locales other than english to help me a bit ? |
# |
Apr 17th 2017, 07:52 |
rudy1976s |
Hello I cannot translate date in any way: I have followed cookbook setting proper intl things but dates are always translated into english |
# |
Apr 17th 2017, 07:22 |
jungle-rock |
not related this group. but have anyone experience with zapier app? |
# |
Apr 17th 2017, 07:18 |
technofection |
@dakota Hmm, I thought that as well.. So using hasMany instead and deep joining |
# |
Apr 17th 2017, 07:02 |
dakota |
technofection I don’t think that’s possible to be honest |
# |
Apr 17th 2017, 06:40 |
megan |
Hang around, when someone comes online that can answer they will jump in :slightly_smiling_face: |
# |
Apr 17th 2017, 06:32 |
technofection |
@megan I have a question and asked above, no one is responding :( Need a solution urgently. |
# |
Apr 17th 2017, 06:26 |
technofection |
Hi @megan Good Morning |
# |
Apr 17th 2017, 06:25 |
megan |
Morning :slightly_smiling_face: |
# |
Apr 17th 2017, 05:52 |
technofection |
@rchavik That does not work |
# |
Apr 17th 2017, 05:41 |
aavrug |
Hey may be people not aware with your question or who can help is not around so just wait don't be rude. |
# |
Apr 17th 2017, 05:40 |
technofection |
@nk-sonu Any idea? |
# |
Apr 17th 2017, 05:33 |
technofection |
While doing find() on StudentsTable, how do I select the RelationMaster from the joiningtable (StudentContacts) |
# |
Apr 17th 2017, 05:33 |
technofection |
StudentsTable $this->belongsToMany('Contacts', [ "through" => "StudentContacts" ]); ContactsTable $this->belongsToMany('Students', [ "through" => "StucentContacts" ]); StudentContactsTable $this->belongsTo('RelationMasters', [ 'foreignKey' => 'relation_id', 'joinType' => 'INNER' ]); $this->belongsTo('Students'); $this->belongsTo('Contacts'); |
# |
Apr 17th 2017, 05:33 |
rrueco |
I was able to remove it but with the use of jquery :( |
# |
Apr 17th 2017, 05:28 |
rrueco |
sir, I just need to remove the class from one input. not for all |
# |
Apr 17th 2017, 05:28 |
nk-sonu |
'inputDefaults' => array( 'div' => 'form-group', //unset this ), |
# |
Apr 17th 2017, 05:25 |
nk-sonu |
ah yes..got it.. |
# |
Apr 17th 2017, 05:25 |
rrueco |
I just need the form-control class, but form-group is automatically placed |
# |
Apr 17th 2017, 05:25 |
rrueco |
@nk-sonu : that will remove the 'form-control' class |
# |
Apr 17th 2017, 05:23 |
nk-sonu |
'class' => '', |