# |
Feb 12th 2018, 21:27 |
clementcrownrise |
how please, i am new to cakephp |
# |
Feb 12th 2018, 21:27 |
clementcrownrise |
please how do I clear my model cache @admad |
# |
Feb 12th 2018, 21:27 |
admad |
like is said clear model cach |
# |
Feb 12th 2018, 21:26 |
clementcrownrise |
the issue is that, i just created this field , after I have backed my application , and I also added the field to the database and form |
# |
Feb 12th 2018, 21:26 |
admad |
clear model cache |
# |
Feb 12th 2018, 21:26 |
clementcrownrise |
yes, it is set |
# |
Feb 12th 2018, 21:25 |
admad |
ensure that field is always set when creating new record or set a default value for it in db. |
# |
Feb 12th 2018, 21:24 |
clementcrownrise |
please why am I having this error Error: SQLSTATE[HY000]: General error: 1364 Field 'monthofexaminationpassed' doesn't have a default value |
# |
Feb 12th 2018, 21:23 |
clementcrownrise |
is anyone in the room |
# |
Feb 12th 2018, 21:23 |
clementcrownrise |
hello |
# |
Feb 12th 2018, 20:52 |
ank068 |
File uploaded https://cakesf.slack.com/files/U91GR08DV/F982JQZ7F/-.txt / https://slack-files.com/T053DPNCM-F982JQZ7F-6810101081 - Anyone know what this error means? and what kind of objects or code i should be looking at? |
# |
Feb 12th 2018, 20:49 |
saeideng |
cake ver: 3.5.12 |
# |
Feb 12th 2018, 20:48 |
saeideng |
for your plugin https://github.com/lorenzo/cakephp-email-queue |
# |
Feb 12th 2018, 20:46 |
slackebot1 |
/var/www/html/site/vendor/cakephp/cakephp/src/Console/Shell.php(507): EmailQueue\Shell\PreviewShell->main() #5 /var/www/html/site/vendor/cakephp/cakephp/src/Console/CommandRunner.php(141): Cake\Console\Shell->runCommand(Array, true) #6 /var/www/html/site/bin/cake.php(12): Cake\Console\CommandRunner->run(Array) #7 {main} ``` |
# |
Feb 12th 2018, 20:46 |
slackebot1 |
#1 /var/www/html/site/vendor/cakephp/cakephp/src/Mailer/Email.php(1569): Cake\Mailer\Email->setTransport('Debug') #2 /var/www/html/site/vendor/lorenzo/cakephp-email-queue/src/Shell/PreviewShell.php(56): Cake\Mailer\Email->transport('Debug') #3 /var/www/html/site/vendor/lorenzo/cakephp-email-queue/src/Shell/PreviewShell.php(38): EmailQueue\Shell\PreviewShell->preview(Object(Cake\ORM\Entity)) #4 |
# |
Feb 12th 2018, 20:46 |
saeideng |
``` Email : Exception: Transport config "Debug" is missing. in [/var/www/html/site/vendor/cakephp/cakephp/src/Mailer/Email.php, line 1582] 2018-02-12 20:42:04 Error: [InvalidArgumentException] Transport config "Debug" is missing. in /var/www/html/site/vendor/cakephp/cakephp/src/Mailer/Email.php on line 1582 Stack Trace: #0 /var/www/html/site/vendor/cakephp/cakephp/src/Mailer/Email.php(1523): Cake\Mailer\Email->_constructTransport('Debug') |
# |
Feb 12th 2018, 20:45 |
saeideng |
# bin/cake EmailQueue.preview |
# |
Feb 12th 2018, 20:45 |
saeideng |
@lorenzo |
# |
Feb 12th 2018, 20:29 |
michaelze |
In a model form I can use the form helper like this: $this->Form->control('tags._ids'). How do I have to configure the schema of the modelless form? What's the name of the control? |
# |
Feb 12th 2018, 20:27 |
michaelze |
Hi! Is it possible, in a modelless form, to have a field which basically behaves like a list of checkboxes as if it was a belongsToMany association on a normal model form? |
# |
Feb 12th 2018, 20:02 |
nishantmathur62 |
What changes should i do ? |
# |
Feb 12th 2018, 20:01 |
nishantmathur62 |
Hello, I have create a Data folder outside of SRC folder in cake3, Now how can i call this data folder content? "https://mapstesting.achtunglabs.co/data/flight/5/air-india-5107.jpg" |
# |
Feb 12th 2018, 19:11 |
aro |
like if you are searching tags |
# |
Feb 12th 2018, 19:11 |
aro |
is there a way to do a search on join to a habtm and sort by descending order of the number of matches? |
# |
Feb 12th 2018, 17:19 |
louis |
Hello @admad, I'm using CakePDF with wkhtmltopdf for rendering. Have you ever experienced rendering problem with https ? |
# |
Feb 12th 2018, 16:44 |
slackebot1 |
$this->Html->image('/img/logo.png', ['url' => '/posts', 'class' => 'logo']); ?> ``` |
# |
Feb 12th 2018, 16:44 |
zwarag |
What is the best way to use a logo instead of a h1 text? Previously I had the commented code (obviously not commented back then) as my "Home" link. Now I would like to use a logo. But the logo goes not well with the resizing and I'm kinda noob with frontend. Any suggestions? ``` <!--<h1><?= $this->Html->link("DirtyDreaz", ["controller" => "posts", "action" => "index"]); ?></h1>--> <?= |
# |
Feb 12th 2018, 16:18 |
akkaweb |
File uploaded https://cakesf.slack.com/files/U0V85N6NP/F98QL911D/grouping_results_-_fixed.php / https://slack-files.com/T053DPNCM-F98QL911D-3041fb8ac4 |
# |
Feb 12th 2018, 16:18 |
akkaweb |
Darn it! Hate it when as soon as I post a question it become clear on what the answer should've been |
# |
Feb 12th 2018, 16:14 |
akkaweb |
File uploaded https://cakesf.slack.com/files/U0V85N6NP/F97SDM1U5/grouping_results.php / https://slack-files.com/T053DPNCM-F97SDM1U5-7366560abf - I am trying to return results from Database grouped by date created, but I have not been successful even after reviewing documentation and examples in the book. This is my current code which returns `created` and `count` as requested, but individually per date |
# |
Feb 12th 2018, 15:25 |
admad |
/src is for class files, config files belong under /config. |
# |
Feb 12th 2018, 15:24 |
neon1024 |
Would you opt for `config` or perhaps `src/Model/Config` maybe you’re thinking `Lib/Config` ? |
# |
Feb 12th 2018, 15:23 |
neon1024 |
If you were going to configure a database type, representing a type of object, such as a type of Content. Where would *you* out your configuration files? |
# |
Feb 12th 2018, 15:04 |
dereuromark |
hmic: I can also imagine some internal file_get_contents($url) to timeout as the default behavior of php is really bad here (long term connected) |
# |
Feb 12th 2018, 14:44 |
jameg83 |
Thanks @hmic. I’ll do that when I get home tonight. |
# |
Feb 12th 2018, 14:39 |
hmic |
the browser could become inrespsonsive if you send like 100M file with wrong header (html) which it would try to parse, instead of send to the (correct) pdf handler or download. which can easily happen with wrongly setup response/routing. so just save the generated file and see if that works. if so, it's not the pdf generation that fails but your response/routing setup |
# |
Feb 12th 2018, 14:38 |
flavius |
thx @admad @dereuromark |
# |
Feb 12th 2018, 14:37 |
hmic |
jameg83: try saving the file and check your logs (cakephp and webserver respective) |
# |
Feb 12th 2018, 14:25 |
admad |
also cake shells doesn't use the middlewares :slightly_smiling_face: |
# |
Feb 12th 2018, 14:24 |
admad |
@flavius only and error/exception generated before the before middleware error hanlder is setup will be caught by the error handler set in bootstrap |
# |
Feb 12th 2018, 14:06 |
jameg83 |
Thanks @dereuromark. I’ll have a read tonight. |