# |
Apr 25th 2018, 12:04 |
eax |
Hey folks! I am running CRUD on Cake 3.6.1, I have an add() method that is sent some data, that I want to manipulate before it’s made into an entity. What’s the best way to go about this? I could manipulate $this->request, but since that’s deprecated, that doesn’t seem like a proper solution :slightly_smiling_face: |
# |
Apr 25th 2018, 10:15 |
neon1024 |
Morning everyone |
# |
Apr 25th 2018, 08:34 |
joshualuckers |
If im correct, the default styles are set in cake.css |
# |
Apr 25th 2018, 08:20 |
portilloster |
Morning guys, I have a problem that is a silly thing but has been anoying me for a while. I want to change the text color of the validation messages. When I inspect the element is pointing to a "scaffolding.less" file on my proyect that I cannot find. Any ideas how to solve this? |
# |
Apr 25th 2018, 07:06 |
nisseni |
I'm having some problem with l18n - not sure if I'm in the wrong, but I'm getting Not unique table/alias: 'I18n__name' - shouldn't I be able to have "name" in several tables. Like product and category, and still make it work. |
# |
Apr 25th 2018, 06:16 |
justrohu |
@admad - Thank you |
# |
Apr 25th 2018, 06:01 |
bad5ect0r |
Haha |
# |
Apr 25th 2018, 06:01 |
bad5ect0r |
-_- typos I swear... |
# |
Apr 25th 2018, 06:01 |
bad5ect0r |
Let me try again |
# |
Apr 25th 2018, 06:01 |
bad5ect0r |
Hmm |
# |
Apr 25th 2018, 05:59 |
admad |
any file under webroot should be directly accessible with the default url rewriting rules |
# |
Apr 25th 2018, 05:58 |
bad5ect0r |
t behaves like a normal directory? |
# |
Apr 25th 2018, 05:58 |
bad5ect0r |
Hello! I think the problem I'm having is a simple one. Basically I have a subdirectory under the img directory (webroot/img/ProfilePictures), When I try to reference an image from here, I get a 404. I think CakePHP is trying to find a controller for it and that's why it's failing. I'm new to Cake, could someone please help me make it so that it jus |
# |
Apr 25th 2018, 05:58 |
admad |
@justrohu https://github.com/cakephp/app/blob/master/config/bootstrap.php#L80 check something like server name / host name and conditional load a per environment file |
# |
Apr 25th 2018, 05:57 |
ricksaccous |
generally i do it with different env files, or different config/app.php files |
# |
Apr 25th 2018, 05:45 |
justrohu |
Hello All, How do I setup my database configuration env wise means a different db and credentails for production and different ones while in development and staging |
# |
Apr 25th 2018, 02:24 |
itmpls |
because it sounded like you needed an api for your app to grab data from your cake app |
# |
Apr 25th 2018, 02:23 |
itmpls |
or a website inside of a browser of a phone |
# |
Apr 25th 2018, 02:23 |
itmpls |
are you talking about a real app |
# |
Apr 25th 2018, 02:21 |
mendoza.anthony.g |
Yes, I agree, but how? I am using responsive to fit on all devices. |
# |
Apr 25th 2018, 01:24 |
ricksaccous |
anything is possible |
# |
Apr 25th 2018, 01:21 |
mendoza.anthony.g |
i dont know jow to explain it but all i want is an android app that will read my cakephp program, is it possible? |
# |
Apr 25th 2018, 01:20 |
mendoza.anthony.g |
hi everyone |
# |
Apr 24th 2018, 21:24 |
gareth___ |
Am I missing something? |
# |
Apr 24th 2018, 21:24 |
gareth___ |
I've just baked a plugin using CakePHP3. It's autoloaded via Composer and everything is fine with it. Within that plugins folder, I have a composer.json file with one dependency. When doing `composer update` from my main repo directory, it doesn't pull in the dependency. Why would this be? |
# |
Apr 24th 2018, 20:38 |
cpierce |
out of order |
# |
Apr 24th 2018, 20:38 |
cpierce |
n/m |
# |
Apr 24th 2018, 20:38 |
cpierce |
what am i doing wrong to get `Call to undefined method Cake\ORM\ResultSet::order()` |
# |
Apr 24th 2018, 18:28 |
slackebot2 |
condition to get artists that belong to particular user ->where($options['where']); return $query; } } |
# |
Apr 24th 2018, 18:28 |
keyur.joshi |
i want above result in following code plz. help me in this i am new to cakephp thanks in advance public function findEnquiryByAlpha(\Cake\ORM\Query $query, array $options){ $query->enableAutoFields(TRUE) ->select(['Interests__id']) ->contain([ 'Users' => ['fields' => ['Users.id']], 'ArtworkImages' => ['fields' => ['ArtworkImages.id']], ]) // TODO: Enable below |
# |
Apr 24th 2018, 18:27 |
keyur.joshi |
?? |
# |
Apr 24th 2018, 18:27 |
keyur.joshi |
can anyone help in this thanks in advance |
# |
Apr 24th 2018, 18:27 |
keyur.joshi |
i have three table Artwork_Image, Users, Interests i want following result Select Interests.id, Artwork_Images, Users.fname, Users.email,Artwork_Images.created from Artwork_Images, Users, Interests Where Interests.Artwork_Images_id = Artwork_Images.Artwork_image_id and Interests.User_id - Users.id |
# |
Apr 24th 2018, 16:25 |
Diego_ |
oh i see the problem, i called the Configure::load('app', 'default', false); after the fullBaseUrl detection so its reset to false, thx |
# |
Apr 24th 2018, 16:18 |
jeremyharris |
what is the value of it right before your link creation? |
# |
Apr 24th 2018, 16:16 |
Diego_ |
is it necessary? because bootstrap detects and write App.fullBaseUrl in configure |
# |
Apr 24th 2018, 16:08 |
jeremyharris |
diego do you have a full base url defined in your config? |
# |
Apr 24th 2018, 16:07 |
jeremyharris |
control will build the entire control, including the label and the input. select will just build the input, still using the same validation, magic options, etc. |
# |
Apr 24th 2018, 16:06 |
Diego_ |
Hello, im trying to build a full url with router but the option fullBase wont work, whats wrong? code: http://dpaste.com/17VR2G1 |
# |
Apr 24th 2018, 16:03 |
stalkerxxl |
Guys, what's the difference between Form-> control and Form-> select? I need to bring a dropdown-list from the database .. Validation is not needed .. I correctly understand that I can just use Form-> select? Form-> control uses data validation + wraps in a div? |
# |
Apr 24th 2018, 16:03 |
saltlake |
ConnectionManager::get('default')->query() works |