# |
May 14th 2021, 09:13 |
etibor |
thank you @kevin.pfeifer i checked the sql and than manually executed |
# |
May 14th 2021, 09:08 |
kevin.pfeifer |
check the executed SQL queries via DebugKit if everything is in there that you expect |
# |
May 14th 2021, 09:05 |
etibor |
the normal contain does not worked as before so i contained the Documents but the Documents.description does not avaliable i double checked the entity file the description is accessible |
# |
May 14th 2021, 09:04 |
etibor |
a strange thing happened today |
# |
May 14th 2021, 09:04 |
etibor |
hello everyone |
# |
May 13th 2021, 22:26 |
rightscoreanalysis |
ignore that ^ |
# |
May 13th 2021, 22:21 |
rightscoreanalysis |
for example Orders conroller beforefilter $this->Orders->find... |
# |
May 13th 2021, 22:20 |
rightscoreanalysis |
do we not have access to models in beforeFilter |
# |
May 13th 2021, 19:19 |
ndm |
Generally, yes. |
# |
May 13th 2021, 19:15 |
rightscoreanalysis |
if I have a table-less model and I need to load another model, is this acceptable: $myModel = ClassRegistry::init('MyModel'); |
# |
May 13th 2021, 15:16 |
neon1024 |
Ah 4.4 is out! :rollsafe: |
# |
May 13th 2021, 15:16 |
neon1024 |
> cakephp/debug_kit 4.2.0 requires composer/composer ^1.3 |
# |
May 13th 2021, 15:16 |
neon1024 |
Any reason for DebugKit to not use Composer 2? |
# |
May 13th 2021, 10:56 |
kevin.pfeifer |
ah right, the editor for datatables has a price, forgot that :see_no_evil: |
# |
May 13th 2021, 10:55 |
ovidiu.marinoiu |
thanks! |
# |
May 13th 2021, 10:55 |
ovidiu.marinoiu |
data tables it's really cool and that plugin looks interesting. I'll check on that and maybe I'll create my own editor :) |
# |
May 13th 2021, 10:53 |
ovidiu.marinoiu |
yeah, I've checked that one but had to drop it. I was looking for something free since I'm not going to monetize |
# |
May 13th 2021, 10:53 |
kevin.pfeifer |
seems like there is a datatables plugin for cakephp :thinking_face: haven't seen that till now https://github.com/wsssoftware/cakephp-datatables |
# |
May 13th 2021, 10:51 |
kevin.pfeifer |
https://editor.datatables.net/examples/inline-editing/simple |
# |
May 13th 2021, 10:51 |
kevin.pfeifer |
you would still need to create a custom ajax handler to save the adjusted data |
# |
May 13th 2021, 10:50 |
kevin.pfeifer |
I am not aware of any "ready made" plugins which will give you that functionality out of the box But I would recommend you to look into data tables and its inline editor |
# |
May 13th 2021, 10:50 |
ovidiu.marinoiu |
wondering what is the best approach and how the community does that. |
# |
May 13th 2021, 10:50 |
ovidiu.marinoiu |
a tutorial/plugin with an integration of a js library with cake |
# |
May 13th 2021, 10:49 |
ovidiu.marinoiu |
yes |
# |
May 13th 2021, 10:48 |
kevin.pfeifer |
so like you want to edit records which are displayed in the index template without the need to go into the seperate edit template |
# |
May 13th 2021, 10:47 |
ovidiu.marinoiu |
for example: I have a table with users. if I click on the email cell, an editable textfield will show. after changing the field, an ajax request will update the db. I did something on my own but don't really like it. |
# |
May 13th 2021, 10:43 |
kevin.pfeifer |
@ovidiu.marinoiu what do you then mean by inline editor? |
# |
May 13th 2021, 10:40 |
ovidiu.marinoiu |
@admad now really what I was looking for, but thanks! |
# |
May 13th 2021, 10:28 |
paolo.bragagni |
Super. Thanks!! |
# |
May 13th 2021, 10:27 |
slackebot |
function is being generated. The template for the controller function is loaded from `plugins/yourTemplatePlugin/templates/bake/element/Controller/login.twig` The template for the view is loaded from `plugins/yourTemplatePlugin/templates/bake/Template/login.twig` |
# |
May 13th 2021, 10:27 |
slackebot |
(EventInterface $event) { $view = $event->getSubject(); if ($view->get('name') === 'Users') { // add the login and logout actions to the Users controller $view->set('actions', [ 'login', 'index', 'view', 'add', 'edit', 'delete' ]); } } );``` In this example an additional `login` |
# |
May 13th 2021, 10:27 |
kevin.pfeifer |
@paolo.bragagni as stated in the last code block in the https://book.cakephp.org/bake/2/en/development.html#bake-events section you need to add your custom functions in an event listener. ```<?php use Cake\Event\EventInterface; use Cake\Event\EventManager; use Cake\Utility\Hash; // in src/Application::bootstrapCli() EventManager::instance()->on( 'Bake.beforeRender.Controller.controller', function |
# |
May 13th 2021, 09:33 |
admad |
OvidiuM: https://github.com/CakeDC/TinyMCE |
# |
May 13th 2021, 08:20 |
OvidiuM |
Hi! Do you guys have some knowledge about guidelines/tutorials/plugins for integrating an inline editor with cakephp? |
# |
May 13th 2021, 07:14 |
paolo.bragagni |
it bakes 'standers' views (index edit etc..) but I'd like to insertt my own actions. where I have to write my own actions? |
# |
May 13th 2021, 07:13 |
paolo.bragagni |
hi. found a way to make a bake theme with a plugin etc.. I dont understand how to bake my own actions and views |
# |
May 12th 2021, 22:57 |
rightscoreanalysis |
$request->input(); :) |
# |
May 12th 2021, 22:09 |
rightscoreanalysis |
it was required |
# |
May 12th 2021, 22:08 |
rightscoreanalysis |
is there an equivalent $request->getContent() in cake2? |
# |
May 12th 2021, 21:57 |
greg138 |
Didn't ever use Cake2, but I think if you don't include the plugin, then it won't find *your* model class, it will use it's default scaffolding one, which will default the name of the database table. |
# |
May 12th 2021, 21:37 |
joacir.santos |
@ndm I had think about this way too. tks! |