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...
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...
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;...
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,...
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...
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...
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...
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...
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...