Posts by Daniel Kuroski • 329 points
15 posts
-
1
votes1
answer56
viewsQ: Shared variables do not update after http request
I created a Service to share a variable with my entire application, but the value is not being updated: The service makes only one query on the server to return the number of pending users And I…
-
0
votes1
answer24
viewsA: Cakephp 3 - Problem with Nested Eager Loading
I discovered the problem, as I was creating a plugin, relations between tables need to contain the plugin namespace: class GroupsTable extends Table { public function initialize(array $config) {…
-
0
votes1
answer24
viewsQ: Cakephp 3 - Problem with Nested Eager Loading
I have the following table structure: Users Tools Groups All of them have membership from Many to Many And I already own the pivot Tables: groups_tools groups_users tools_users I am trying to do the…
-
1
votes1
answer61
viewsA: Nsobjectinaccessibleexception - Deleting all objects from an Entity - Nsfetchedresultscontroller
The problem was entirely on the second tab. The answer to the problem was to remove the variable: lazy var fetchedResultsController: NSFetchedResultsController = { . . . }() Now the "viewDidLoad" of…
-
1
votes1
answer61
viewsQ: Nsobjectinaccessibleexception - Deleting all objects from an Entity - Nsfetchedresultscontroller
I have a function responsible for deleting all items of an entity: func removeItens() { if let managedContext = managedObjectContext { let fetchRequest = NSFetchRequest() let entity =…
-
0
votes1
answer188
viewsQ: How to merge identical array values, and place the different ones inside a sub-array
I have the following problem. I have an array returned from the database which is as follows: array(4) { [0]=> array(4) { ["groupoURL"]=> string(7) "express" ["grupoNome"]=> string(13)…
-
2
votes2
answers1415
viewsQ: Laravel - Update all fields from a large table
I have the following problem... I am migrating a system, and in the same I own a client table This table has a field called "cli_password", in which the customer’s password To use Laravel…
-
0
votes3
answers1135
viewsA: Bootstrap navbar dropdown focus control menu after click
So guys, I ended up finding an answer. Click here to see jsfiddle I ended up capturing the onclick event from the menu. I avoid the spread of this event. And I control the opening and closing of the…
-
3
votes3
answers1135
viewsQ: Bootstrap navbar dropdown focus control menu after click
Situation I have a navbar on my site, and in it I have several dropdown menus / megamenus. I need that when clicked on this dropdown, the user has the option to "scroll" the page up and down with…
-
1
votes1
answer3282
viewsA: How to make a CRUD via REST
Well, I just found the answer. The correct thing would be to create several Restrequest/ETC depending on your need. If the component you are working with is using Livebindings, create a specific…
-
2
votes1
answer3282
viewsQ: How to make a CRUD via REST
Introducing I need to access a web service in PHP via mobile application. I have seen several videos and read many tutorials about Delphi’s REST Client. I even managed to develop a prototype of my…
-
7
votes2
answers439
viewsQ: Jquery - Problem with events Mouseenter() & Mouseleave()
Situation: I have a menu, and I need that when an event occurs hover, he displays a series of information from the respective menu When the mouse goes to another menu, the displayed information has…
-
1
votes1
answer419
viewsA: Paging with Eager Loading in Laravel
In my case, I have a relationship between Categories and Subcategories Categories hasMany Subcategories Subcategories belongsTo Categories To bring the results in alphabetical order (Category name…
-
1
votes1
answer419
viewsQ: Paging with Eager Loading in Laravel
I’m having a little ordering problem involving paging and Eager Loading. What I need to do: On one part of my site, I need to bring paged results from a subcategory The subcategory is daughter of a…
-
2
votes3
answers4468
viewsA: Best(s) way(s) to use Dependency injection in Laravel
I recommend VERY MUCH the reading of this book (including, the free sample of it is precisely the chapter of addiction injection): Laravel: From Apprentice to Craftsman In this book you should learn…