# |
Nov 28th 2017, 12:45 |
slackebot2 |
values within the test by `Configure::write("Email", "");` (which works for other tests where i set different config values) but it doesn't work for the email class. any ideas how i can inject alternative config values for `Cake\Mailer\Email` within a single test method? |
# |
Nov 28th 2017, 12:45 |
felix |
hi, i want to test a class that uses `Cake\Mailer\Email`, creates a new instance of Email and gets me the `from` settings of the config. `$email = new Email('default');` `$from = $email->getFrom();` this gets me the correct config values. now, i would like to test the behaviour, when the from settings are not set correctly in the app.php config file (unlikely, but i want to have 100% coverage for this class). i tried to overwrite the config |
# |
Nov 28th 2017, 12:42 |
joopm |
hello |
# |
Nov 28th 2017, 12:41 |
iam.davidheart |
Hello |
# |
Nov 28th 2017, 12:36 |
joopm |
but the goal is not to save in this case,the cancel buton |
# |
Nov 28th 2017, 12:36 |
joopm |
but its flash that the test has been saved |
# |
Nov 28th 2017, 12:36 |
joopm |
i made like this: <?= $this->Form->button(__('Cancel',['type'=>'button','onClick'=>'location.href=\'/test/new-tests\''])) ?> |
# |
Nov 28th 2017, 12:35 |
joopm |
what is the correct way to make cancel button? |
# |
Nov 28th 2017, 12:35 |
joopm |
all |
# |
Nov 28th 2017, 12:35 |
joopm |
hello |
# |
Nov 28th 2017, 11:23 |
neon1024 |
As the sub-nav essentially belongs to a Provider |
# |
Nov 28th 2017, 11:23 |
neon1024 |
I’m being indecisive this morning. I am building a sub-navigation for my Providers view template, which lists their sub-pages. The provider is a Provider obviously, but it has attached Contents, and the sub-pages are all Contents. I can’t decide if I should put my method in the ProvidersTable or ContentsTable. I’m leaning towards Contents, as the navigation navigates content |
# |
Nov 28th 2017, 11:17 |
HumanG33k |
thx |
# |
Nov 28th 2017, 11:16 |
admad |
HumanG33k: https://bakery.cakephp.org/2017/11/22/mozilla_sos_audit_published.html |
# |
Nov 28th 2017, 09:57 |
neon1024 |
Morning everyone |
# |
Nov 28th 2017, 09:49 |
HumanG33k |
thx .) |
# |
Nov 28th 2017, 09:49 |
HumanG33k |
… |
# |
Nov 28th 2017, 09:49 |
HumanG33k |
missing <?php |
# |
Nov 28th 2017, 09:48 |
HumanG33k |
hum find |
# |
Nov 28th 2017, 09:45 |
HumanG33k |
my form is in src/Form/WikiForm.php |
# |
Nov 28th 2017, 09:44 |
HumanG33k |
and i have done use App\Form\WikiForm; in the top of the file |
# |
Nov 28th 2017, 09:44 |
HumanG33k |
i follow the model less example but when i do a $course = new WikiForm(); it’s not working |
# |
Nov 28th 2017, 09:41 |
HumanG33k |
TotoForm in TitiController |
# |
Nov 28th 2017, 09:41 |
HumanG33k |
Maybe stupid question but if i use a model less form can i do it even in controller with not the same name ie : |
# |
Nov 28th 2017, 09:08 |
HumanG33k |
(if you know of course) |
# |
Nov 28th 2017, 09:08 |
HumanG33k |
thx |
# |
Nov 28th 2017, 09:08 |
HumanG33k |
if no when ? |
# |
Nov 28th 2017, 09:07 |
HumanG33k |
things are fix ? |
# |
Nov 28th 2017, 09:07 |
HumanG33k |
Hello i wan’t to know more about that https://www.nccgroup.trust/us/our-research/cakephp-security-assessment/?research=Public+Reports |
# |
Nov 28th 2017, 09:01 |
rajaslack |
@stoykovnet it'll return as array instead of entities. If you get the records with this you can't use those records in form auto assign field. |
# |
Nov 28th 2017, 08:43 |
stoykovnet |
Hello cakes! I found the `Table` method `enableHydration` and I wondered in what cases would you use `$this->MyTable->find()->enableHydration(false);`? What are the pros and cons? :thinking_face: :) |
# |
Nov 28th 2017, 06:46 |
arnis |
Morning. Advice wanted. I have such an code fragment - https://gist.github.com/arneefreeman/ea2f018a78c2097fc608d1b82ef19008 I'm wondering if I could somehow include a virtual products count field in my $attributes->atribute_values variable (via $query->func()->count() maybe?) ? Products belongsToMany attributeValues, attributeValues belongsTo attributes. |
# |
Nov 28th 2017, 03:07 |
chan |
hello! i take vertical photo with iphone and then i upload that photo on i create cakephp website (coding is file upload) but photo is show by horizontal. why? Can i fix this problem? if you know, please give advice to me. thanks all. |
# |
Nov 28th 2017, 00:44 |
ndm |
Good night everybody :sleeping: |
# |
Nov 28th 2017, 00:44 |
ndm |
I've traced things down to `__debugInfo()` being invoked on a query object in the variable panels shutdown function... looks like this causes the erroneous query to be executed again, causing a second exception to be triggered, and then things go south. Not sure where to go from here, I'm way to tired to pursue this any further now, guess I'll either log an issue tomorrow or harass @lorenzo , he's used to it :slightly_smiling_face: |
# |
Nov 28th 2017, 00:41 |
ndm |
No problem... |
# |
Nov 28th 2017, 00:37 |
casmo |
Ah, misread it, my bad |
# |
Nov 28th 2017, 00:35 |
ndm |
No, it works fine then. That's what I mean when I say "disabling debug kit", debug mode is still on, I've just commented loading the plugin. |
# |
Nov 28th 2017, 00:33 |
casmo |
Is it still happening if you put debug = true and remove the plugin::load('debugkit') from your bootstrap.php ? |
# |
Nov 28th 2017, 00:32 |
ndm |
Well, if things work as expected with debug kit disabled, then I'm of course going to poke it to see what's going on there :slightly_smiling_face: |
# |
Nov 28th 2017, 00:30 |
casmo |
I find it strange that you are searching within debugKit for the problem, though |