# |
Mar 14th 2019, 16:16 |
jeremyharris |
also if the app is somewhere let me know, I’ll be looking for something new now that brewtoad closed |
# |
Mar 14th 2019, 16:13 |
jeremyharris |
on twitch nick? if so yeah, I may drop in :slightly_smiling_face: |
# |
Mar 14th 2019, 16:06 |
NickBusey |
I've started streaming my work integrating a cake backend with a react front end for my open source brewing app 3 times a week if anyone is curious |
# |
Mar 14th 2019, 15:51 |
this.impetus |
@jeremyharris hrmm, yep I'll try that |
# |
Mar 14th 2019, 15:50 |
jeremyharris |
@this.impetus perhaps you can add it to your inflector so it inflects as you expect: https://book.cakephp.org/3.0/en/core-libraries/inflector.html#inflection-configuration |
# |
Mar 14th 2019, 15:47 |
this.impetus |
I have a model, 'Supervisedtheses'. Cake cannot seem to inflect this properly—the automatically baked views are throw errors. I'm happy to change the model name, but, throughout the project, I still need "Supervised Theses" to appear when printing the model name. In older versions of cake I know you could create a model alias to achieve this. Playing with the 'alias' property of the table just seemed to break everything. |
# |
Mar 14th 2019, 15:41 |
marek.sebera |
:rolling_on_the_floor_laughing: |
# |
Mar 14th 2019, 15:40 |
dereuromark |
it's actually the same, it was an accidental include with some dependency. |
# |
Mar 14th 2019, 15:39 |
marek.sebera |
geez, wanted to greet the one who made the nice clicky black-green dump() in cakephp, and it's just wrapped Symfony VarDumper :zipper_mouth_face: |
# |
Mar 14th 2019, 15:27 |
ricksaccous |
just ask ;) |
# |
Mar 14th 2019, 15:25 |
this.impetus |
@admad tyvm, will do; got time for one more quick one? |
# |
Mar 14th 2019, 15:22 |
admad |
@this.impetus check the methods of relevant bake task |
# |
Mar 14th 2019, 14:21 |
this.impetus |
hopefully this is a quick question... making custom bake templates for the first time. Copied and am editing twig files in a custom plugin, works great. Wondering where I can see a list of the vars passed to the template. See things like `groupedFields[]` etc.. whence these? |
# |
Mar 14th 2019, 12:27 |
slackebot |
$serverSoftwareVersionQuery is defined earlier return $serverSoftwareVersionQuery ->select(['server_id', 'software_name', 'version', 'state_date']) ->where(['state_date' => $subQuery]) ->order(['state_date' => 'DESC']); ``` |
# |
Mar 14th 2019, 12:27 |
tunafish |
@ricksaccous Thanks, I did check that out, but wasn't sure how to add the aliases. In the end I got it working like this: ```php $subQuery = $this->Servers->getConnection()->newQuery(); $subQuery->select("MAX(aliasedTable.state_date)") >from('server_software_versions aliasedTable') ->where('ServerSoftwareVersions.software_name = aliasedTable.software_name AND ServerSoftwareVersions.server_id = aliasedTable.server_id'); // |
# |
Mar 14th 2019, 12:10 |
skor |
ok, sorry about that, found it in the config/routes.php |
# |
Mar 14th 2019, 12:08 |
skor |
AppController is empty as well, i think im a bit stuck |
# |
Mar 14th 2019, 12:06 |
skor |
i also have nothing in my Application.php, only ErrorHandlerMiddleware AssetMiddleware RoutingMiddleware |
# |
Mar 14th 2019, 12:04 |
skor |
ok, so $this->getEventManager()->off($this->Csrf); has no effect in the beforeFilter of the controllerin question. so how can I disable it? |
# |
Mar 14th 2019, 12:03 |
skor |
ok, i see here https://book.cakephp.org/3.0/en/controllers/components/csrf.html |
# |
Mar 14th 2019, 12:02 |
skor |
ok, how do i disable the component for a specific url? just to try |
# |
Mar 14th 2019, 12:00 |
admad |
if disabling middleware still gives error then your app using the Csrf component |
# |
Mar 14th 2019, 12:00 |
admad |
the default depends at what point in time you started off from the skeleton project |
# |
Mar 14th 2019, 11:59 |
skor |
what comes by default in cake 3.7 the component or the middleware? |
# |
Mar 14th 2019, 11:56 |
skor |
Hi All, imposting to a (fresh) empty cake 3.7 controller, and im getting “Error: Missing CSRF token cookie” I tried disabling it in middleware, (i would need to disable it) but im not sure how to do it, does anyone have a link? thanks |
# |
Mar 14th 2019, 11:55 |
admad |
hit me |
# |
Mar 14th 2019, 11:50 |
dereuromark |
well, maybe not so much about those typos, more about other semantic things maybe |
# |
Mar 14th 2019, 11:49 |
admad |
use a spell checker :-) |
# |
Mar 14th 2019, 11:36 |
dereuromark |
If someone wants to proofread my article, please PM me. I dont want to hide more typos in it than necessary :P |
# |
Mar 14th 2019, 11:30 |
dereuromark |
@challgren I am now finishing a blog post for the Dto plugin, to showcase it a bit more. |
# |
Mar 14th 2019, 11:01 |
kaliel |
oh sorry for your time, it was a typo :S |
# |
Mar 14th 2019, 11:01 |
neon1024 |
Does the entity you set to the form have the field populated as boolean? |
# |
Mar 14th 2019, 11:00 |
kaliel |
sure |
# |
Mar 14th 2019, 11:00 |
neon1024 |
@kaliel Is it `TINYINT(1)` in the database? |
# |
Mar 14th 2019, 11:00 |
neon1024 |
I’m writing a custom view class and need to implement some pagination, but I’m not sure where to get the pagination data from as usually it’s a param |
# |
Mar 14th 2019, 11:00 |
kaliel |
hi everyone, any idea why a new boolean field added with migration plugin is detected as an text input by FormHelper instead of checkbox please ? Even when cache is removed. |
# |
Mar 14th 2019, 10:24 |
neon1024 |
@om.axisweb You’d create a controller as normal. There isn’t anything really different in the controller part for Ajax, except perhaps what sort of response you send back in response to the request |
# |
Mar 14th 2019, 10:16 |
arthurb |
Thanks @dereuromark the query string works great! |
# |
Mar 14th 2019, 09:49 |
om.axisweb |
i have some issue create controller |
# |
Mar 14th 2019, 09:48 |
om.axisweb |
how to create a ajax controller in cake |
# |
Mar 14th 2019, 09:38 |
arthurb |
@om.axisweb you can start here https://book.cakephp.org/3.0/en/controllers/request-response.html#path-information |