Posts by Felipe Miranda De Lima • 195 points
30 posts
-
1
votes2
answers66
viewsQ: Return data from a subobject
Below is what I implemented until then: public class Interface { private List<Usuario> usuarios = new ArrayList(); private List<Tarefa> tarefas = new ArrayList(); Menu menu = new Menu();…
-
0
votes2
answers77
viewsA: Array is not showing the data that should be there
As indicated by the above friend I switched to the following: Interface class: import java.util.Scanner ; import java.util.ArrayList; import java.util.List; public class Interface { private List…
-
2
votes2
answers77
viewsQ: Array is not showing the data that should be there
Class Interface: switch(opcao) { case 1: Usuario umUsuario = new Usuario(); umUsuario.criarUsuario(); break; case 2 : System.out.println("Busca de usuario"); System.out.println("Forneça o cpf do…
-
0
votes1
answer596
viewsA: Codeigniter - Permission Authentication
You can use the Hooks of codeigniter below is an example function restrict() { //Instância do CodeIgniter $ci = & get_instance(); //Método atual, pega da url $method =…
-
0
votes1
answer642
viewsQ: Redirect after executing codeigniter function
Below I show the code that I use to call a function after performing the function I use a redirect to the home page, however I want to give a modic to this because if the user uses some filter when…
-
1
votes4
answers629
viewsA: How to make a Popup that only records information on the cookie or anything and displays only once on the website homepage
You can try something simpler using a Modal in your view and the following code in your Controller $this->session->set_flashdata('alert', 'Sua mensagem'); view: <h3…
-
0
votes1
answer78
viewsQ: Treat date correctly
I have an agenda where I am using the Fullcalendar library (javascript) and when I click on an event I want more information of this to be displayed so far everything right now I have a field form…
-
1
votes2
answers677
viewsA: Query sql codeigniter
I ended up solving it this way and it worked $this->db->where('inicio <', date('Y-m-d'));
-
0
votes2
answers677
viewsQ: Query sql codeigniter
I have a table with dates and I would like to create a query that returns records with dates prior to the current day but I could not assemble this query; follows below my code and BD image:…
-
0
votes1
answer299
viewsQ: Problem with treeview menu
Good morning I’m making a menu and I need the functionality of a treeview, but even done as documentation when clicking on the menu the desired links are not displayed(dropdown): Code: <ul…
-
0
votes0
answers92
viewsQ: Display data at user level
I have an agenda where users will register reminders and tasks, now I would like each user to view only their own tasks. Each task created is already associated to the user as I will be showing…
-
0
votes3
answers871
viewsQ: Validation of completed fields of a form
Today I have some cupboards in windows (modals) and some of these fields need to force the user to fill today I am doing as follows: Form: In case the user forgets to fill some field I use the…
-
1
votes1
answer541
viewsQ: Editing fields in event modal with Fullcalendar + Javascript
Good afternoon staff I am creating a simple schedule using the plugin Fullcalendar, I’m already with almost everything ready, but now I need to click on the desired event, the information of the…
-
2
votes1
answer752
viewsQ: perform sum of values codeiginiter
I need to add some values at the end of a table as shown below: below follows the codes I am using: Controller: function index() { $this->template->set('title', 'Lista de Orçamentos'); $config…
-
-1
votes2
answers337
viewsQ: How to treat error when deleting a BD record, which has a foreign key, PHP
Good morning guys, someone would tell me the best way to treat the following mistake: The following error occurs when, for example, I have a client in a BD table and in another table I have a budget…
-
-1
votes1
answer1651
viewsQ: change date format in datepicker-bootstrap
I am following the documentation but I can not change the format to the BR standard, follows below my codes: Loading css. and . js files into my template: <!-- DATAPICKER --> <link href='…
-
0
votes0
answers500
viewsQ: Javascriptui + PHP + Mysql autocomplete
Good morning guys I’m implementing an autocomplete in a CRM but I’m with a problem gave a searched here and I did not find a solution, so below the description: I am wanting to make my system more…
-
0
votes1
answer58
viewsA: SQL Clause with Codigniter
Galera ended up solving carrying some attributes like Hidden: <input type="hidden" name="cliente" value="<?php echo $dados_orcamentos[0]->cliente; ?>"/> <input type="hidden"…
-
0
votes1
answer58
viewsQ: SQL Clause with Codigniter
Good morning guys to need to do an update in the database but I’m not getting below the codes: I am using the codeigniter so this the following way: Controler: function editar($ocod) { /* Aqui vamos…
-
2
votes1
answer1158
viewsQ: Upload/download files with Codeigniter
You guys all right ? I am developing a small web system in which price to upload budgets and later your download, I am following a tutorial that I found but I have an error that I cannot solve: By…
-
1
votes0
answers67
viewsQ: assign a variable to a vector key - PHP
Good evening everyone with a problem that I believe to be very simple but I could not solve I have the following code: function inserir($ccod) { $cod_cliente = $ccod;…
phpasked Felipe Miranda De Lima 195 -
0
votes0
answers50
viewsQ: Use a form with select to control views
Good afternoon guys, next couldn’t find a practical solution for what I’m trying to develop: Through the select above I intend to display data below such as charts, ie if the user chooses the item…
-
0
votes2
answers7202
viewsQ: How to create and access a global variable with PHP and codeigniter
Good morning guys, I’m having a doubt I’m using the following to generate success alerts or errors in my system. if ($this->model->inserir($data)) { $msg = "<div class='alert…
-
0
votes0
answers339
viewsQ: Adminlte2 + Fullcalendar - problem when integrating both
Good afternoon, guys, okay? So I’m developing a small system with Codeigniter, and for that I’m using the template Adminlte, and now I’m creating the calendar+schedule part and for that I’m using…
-
3
votes3
answers2169
viewsQ: Control of séssions and authentication in PHP with Codeigniter
Good morning guys, I’m new to programming with PHP and I have a question: I have already developed the login system and it is working correctly, now I would like to control the access to the other…
-
-2
votes1
answer558
viewsQ: get data with PHP + codeigniter by clicking a button
Good afternoon guys follows a doubt I have a list as below: By clicking history I am directed to this page: This page is showing all comments made for the customer to overcome By clicking on new…
-
0
votes1
answer1201
viewsQ: Insert data into codeigniter database
Say guys all right, I’m having the following doubt: I need to view and save data in my database but as I will show below I am using Joins to display, for example the name of an author using his…
-
0
votes1
answer42
viewsA: Grocerycrud error
Researching a little more I ended up discovering that it was a bug of the codeigniter itself 3.1.3 where just changing the line get_object_vars($object) for get_object_vars($vars) in the following…
-
0
votes1
answer42
viewsQ: Grocerycrud error
Speak guys I’m trying to use the Grocerycrud together with the Framework Codeigniter I am doing the installation exactly as indicated in the video tutorial of Grocery but even without changing…
-
2
votes1
answer913
viewsQ: Export CRUD list with MPDF + Ob_start()
Good morning guys, I’m developing a CRM using the framework CodeIgniter and I’m not able to export some lists CRUD using the library MPDF. I’m trying to use the function ob_start() as indicated in…