# |
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 |
# |
Apr 24th 2018, 15:56 |
neon1024 |
Probably having trouble marshalling your strange query |
# |
Apr 24th 2018, 15:55 |
saltlake |
code: http://dpaste.com/3NXFRBV |
# |
Apr 24th 2018, 15:54 |
saltlake |
but if i do debug($p) it returns all posts, why? |
# |
Apr 24th 2018, 15:54 |
saltlake |
the query returns only one row in sql client |
# |
Apr 24th 2018, 15:49 |
neon1024 |
For some reason, Past Me, is unloading the component and reloading it in the Controller, after it’s been setup in the AppController |
# |
Apr 24th 2018, 15:49 |
neon1024 |
Just can’t reload the component with new config, as it’ll cause a collision in the object registry |
# |
Apr 24th 2018, 15:48 |
neon1024 |
`$this->MyComponent->setConfig('thing.foo', $awesome)` |
# |
Apr 24th 2018, 15:48 |
neon1024 |
Component configuration can be changed on the fly right? |
# |
Apr 24th 2018, 15:48 |
neon1024 |
Or join one of the free CakeDC training sessions |
# |
Apr 24th 2018, 15:47 |
neon1024 |
Sounds to me like you need to take on the tutorial |
# |
Apr 24th 2018, 15:47 |
neon1024 |
Nothing about that makes any sense |