Questions tagged as 'view'

2
answers

View .HTML with VRaptor. It's possible?

I'm a Systems Analysis and Development student and I love programming, I've studied the basics of Java and I'm working on frameworks just to get a feel for it. How do I return an HTML page in a controller with VRptor instead of JSP. I'm d...
asked by 21.01.2015 / 17:36
1
answer

How to pass two variables from a view to the controller?

I have a link where I already pass a variable to the controller. It works ok. How do I get through two? My link in View: <a href="{{url("/ordemvar/$equipam->codigoequipamento")}}"><i class="glyphicon glyphicon-tasks"></i&g...
asked by 11.01.2017 / 17:41
1
answer

Problem moving from Controller to Model

I'm making a code, where it involves MVC. To move from View to Controller I'm not having problems, but when I go from Controller to Model I can not, being that the variable is imported, but without any value. View: package bancomvc;...
asked by 02.07.2015 / 04:39
3
answers

What's the difference when calling a function with parentheses and without in urls.py with Django 1.7?

In the mapping of my urls.py I use from common functions to views based on classes. I want to know the difference of calling the view with or without parentheses, considering that if I have the url(r'^$', base_views.index_view) input,...
asked by 12.02.2015 / 02:42
2
answers

What are the model and model variables in a View?

What are the @model and Model variables in a view ? In my view I use this at the beginning of the code: @using Html5DataList.Models @model List<Estabelecimento> And to access the data, I use it like this: @foreac...
asked by 29.07.2017 / 15:45
1
answer

View with parameters without external?

I need to get parameters for a view , but since it has COUNT(DISTINCT DTA_HOR) I can not get the where external. Would it have any other way? SELECT EX1 ,EX2, EX3, EX4, (SELECT COUNT(DISTINCT DTA_HOR) FROM TB_1 WH...
asked by 25.05.2017 / 23:21
1
answer

Calling a function in Views in codeigniter

I have this function in models : function sumContasReceber() { $this->db->select('lancamentos.*'); $this->db->from('lancamentos'); $somaCR = "SELECT SUM(valor) as SOMACR FROM lancamentos where baixado...
asked by 10.09.2016 / 23:03
1
answer

Undefined variable: users

   Undefined variable: users (View: C: \ Users \ Vitoria \ Desktop \ Laravel \ resources \ Panel.blade.php <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"/> <title>BEM VINDO AD...
asked by 27.03.2017 / 16:05
1
answer

How to pass data searched by a view back to the view itself

I need to search a database through a view (Laravel Blade). The data obtained, stored in an array, need to display on the page itself called the database. I'm not getting the array return with such data, because I do not know how to handle the a...
asked by 13.05.2016 / 16:21
1
answer

How to insert an information of a model that has a Relationship?

I have a list of Products and this listing has the vendor code, I need to enter the vendor name in that listing. My Controller: public ActionResult Index() { IEnumerable<Produto> produtos = db.Produto...
asked by 03.12.2015 / 20:08