Log message #4103509

# At Username Text
# Dec 14th 2017, 09:49 neon1024 But not a plugin as my admin area will not be implemented into a different project
# Dec 14th 2017, 09:49 neon1024 As I like the code separation
# Dec 14th 2017, 09:49 neon1024 I use a prefix personally
# Dec 14th 2017, 09:48 psantos so, you would use prefix or scope for admin area?
# Dec 14th 2017, 09:47 neon1024 Some word in IRC translates into a mention here in slack somehow, it’s quite confusing :P
# Dec 14th 2017, 09:46 neon1024 For some reason here in slack we see “but thats does not @work"
# Dec 14th 2017, 09:46 joopm should?
# Dec 14th 2017, 09:46 neon1024 Does not what?
# Dec 14th 2017, 09:46 neon1024 work
# Dec 14th 2017, 09:46 joopm but thats does not work
# Dec 14th 2017, 09:46 joopm i tried $this->ModelName->FieldName
# Dec 14th 2017, 09:45 joopm but should i refere for the different Model's field?
# Dec 14th 2017, 09:45 joopm i know i can use $context['data']['fieldName'] for current model
# Dec 14th 2017, 09:44 joopm which is based on other's modell field value
# Dec 14th 2017, 09:44 joopm i have to write a custome validation rule
# Dec 14th 2017, 09:44 joopm hello there
# Dec 14th 2017, 09:41 slackebot could not be found.` What I am missing?
# Dec 14th 2017, 09:41 psantos routes from 2.x was more easy to handle... for example, now I have this: ``` $routes->connect( '/categories/:id', ['controller' => 'Categories', 'action' => 'view'] )->setPatterns(['id' => '\d+'])->setPass(['id']); ``` but when I try to visit `http://localhost:8765/categories/1` for example, I got this error: `Error: A route matching "array ( 'controller' => 'posts', 'action' => 'view', 0 => 6, 'plugin' => NULL, '_ext' => NULL, )"
# Dec 14th 2017, 09:34 neon1024 Sense it none makes.
# Dec 14th 2017, 09:32 meowcate I'm not sure I understand your question.
# Dec 14th 2017, 09:28 extreminator how to define array like name attribute every time i get new select box using jquery
# Dec 14th 2017, 09:28 neon1024 No harm in it though, just you have to remember that it’s there and code for it
# Dec 14th 2017, 09:28 neon1024 I wouldn’t make an admin area in a plugin personally, just because it makes things more frustrating to maintain, as all your routes and table classes etc need to manage the plugin
# Dec 14th 2017, 09:17 psantos good morning @furqan
# Dec 14th 2017, 09:10 furqan hey morning there !
# Dec 14th 2017, 09:10 slackebot $routes->connect('/users', ['controller' => 'Users']); }); ``` and ``` Router::plugin('Admin', ['path' => 'admin'], function ($routes) { $routes->connect('/users', ['controller' => 'Users']); }); ``` when should I use one and when should I use another ? whats is the implications of each other? I need to create an "admin" area for manage (eg, a blog system) , which can be the best option and why? Thanks
# Dec 14th 2017, 09:10 psantos hello everybody What's the difference between those codes: ``` Router::scope('/admin', function (RouteBuilder $routes) { $routes->connect('/users', ['controller' => 'Users', 'action' => 'index']); }); ``` ``` Router::prefix('admin', function($routes) { $routes->connect('/users', ['controller' => 'Users', 'action' => 'index']); } ``` ``` Router::scope('/admin', ['plugin' => 'Admin'], function ($routes) {
# Dec 14th 2017, 09:09 furqan i have installed debugkit ,i am looging the sql queries to the log file
# Dec 14th 2017, 09:09 neon1024 Morning everyone
# Dec 14th 2017, 09:09 furqan any one !!!
# Dec 14th 2017, 07:47 furqan if it would log those queries also ,can u tell me how do i configure ,bacause by default it just logs in the queries in the web request -response cycle
# Dec 14th 2017, 07:46 furqan because the code is executed by the background jo processing engine resqueue
# Dec 14th 2017, 07:46 furqan okay ,so someone from teh portal suggested yestarday to get debugkit and to log queries and see ..So i do have the cakephp debugkit ,but will it also log the queries executed by the background workers as in the resqueue workers
# Dec 14th 2017, 07:39 joopm i dont have idea yet
# Dec 14th 2017, 07:32 furqan takes 20 seconds ,i am logging the results to a log file that have timestamp !
# Dec 14th 2017, 07:31 furqan $result = $this->Event->save($event);
# Dec 14th 2017, 07:31 furqan this 1 takkes < half a sec
# Dec 14th 2017, 07:31 furqan $this->Event->query("insert into events (org_id,date,info, user_id ,uuid,published,analysis,attribute_count , orgc_id , timestamp ,distribution , sharing_group_id , proposal_email_lock , locked ,threat_level_id , publish_timestamp , disable_correlation ) values(1 ,'2017-09-18', 'furqan_test_event' , 9 , '42bfaf6e-3347-4c81-bc76-088372452682' ,0, 1, 2 ,1 ,1508771790 ,1 ,0 ,0 ,0 ,1 ,1505829657 ,0 )");
# Dec 14th 2017, 07:28 furqan yes please ,thanks for your time
# Dec 14th 2017, 07:28 furqan i have tried out increasing buffer_pool_size ,writing to other tables ,logging and etc..But it just doesnt seem to get to the root cause
# Dec 14th 2017, 07:28 joopm oh i have to think about it