Questions tagged as 'controller'

1
answer

MVC - Doubt about controller and view PHP

I'm studying MVC a few days ago and I came across a question, I need a view to do registration, but this view would not do anything just send the data to my doubt is that I need a control just to put this view and another to register it?     
asked by 14.06.2015 / 23:11
1
answer

Call controller result foreach result and show in view

I need to retrieve a method in the controller and display it in the view, Controller namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Categoria; use App\Models\Sessoes; class todosProdutosController extends Controlle...
asked by 15.05.2018 / 21:27
1
answer

Validation of form - AngularJS

I'm trying to validate a simple form, where when the user leaves some field blank a div is shown with this error. Follow the code var playlistApp = angular.module('playlistApp', []); playlistApp.controller("LucasCtrl", ['$scope', functi...
asked by 28.01.2018 / 01:47
1
answer

How to pass parameter to Index of another Controller

I have to pass an (ID) parameter to the index of a controler, I tried to use ActionLink but it did not work. View: <body> <table class="table"> <tr> <th> @Html.Displa...
asked by 18.02.2017 / 14:53
1
answer

Pass ID to Controller

I have the problem that when I click the Register button, the City does not pass the ID. Made. The ID is being passed to the screen, but at the time of passing to the controller not. <div class="alinhado col-md-4"> <div class="for...
asked by 15.12.2016 / 20:40
2
answers

Angle with ngRouter does not work when I type in browse

I need to type in browse ...    domain.com.br/details1234 ... and I need the controller to take this number 1234 and perform its task. I tried everything without success. Home NOTE: If I create an anchor within the page by hrefing the rou...
asked by 04.01.2017 / 22:40
2
answers

How to limit the amount of addresses that a user can have in the database

I have a database, and I have the user table and the address table. I need to validate in some way so that a user can have a maximum of 5 addresses in the registry. I use the PostgreSQL database and treats an application with Servlet. Any sugges...
asked by 24.11.2016 / 20:23
1
answer

Retrieve the value of a dynamically generated field

Good morning. I would like to know how do I retrieve the value of the control that is generated dynamically in my form at runtime? Type below in the image I have a class that brings all the properties of the controls to be shown in the Client Vi...
asked by 31.10.2016 / 14:30
1
answer

How to extend CI_Controller to more than one core?

In Codeigniter you can create a MY_Controller.php file in the application / core folder and the extended controller of that file, a basic example would be: <?php class MY_Controller extends CI_Controller { public function __cons...
asked by 16.07.2016 / 15:58
1
answer

Laravel - Do I do an action @list for each Controller or a Controller 'listController' receiving parameters?

I have an administrative panel with several areas of your item listings for each table itself. What's best to do: A action 'list' for each Controller responsible for each area: class aController extends Controller{ public function li...
asked by 25.04.2016 / 22:11