Questions tagged as 'mvc'

1
answer

View in MVC project in PHP

I'm developing an MVC project in PHP and did the whole view in .html files. When I need to manipulate a form, I specify in the action the path to a script in the controller. My question is whether you need to view only .html files without anythi...
asked by 05.06.2015 / 18:38
1
answer

Resolved - Rewrite HTTP to HTTPS with Let's Encrypt [duplicate]

I have the .htaccess file with the following content: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?path=$1 [QSA,L] When I load...
asked by 31.10.2018 / 13:25
1
answer

ASP.NET MVC vs. Angularjs with WEBAPI [closed]

In a web project (type a "small" ERP, rs) where some companies would manage their affiliates being able to exist several connected users, what would be better in performance and performance (I know that each case is a case, but in general) in yo...
asked by 30.10.2015 / 13:09
2
answers

System.NullReferenceException when sending Form Asp.Net MVC

Ihaveaneditcontroller,whichreceivesavaluefromthedatabaseandplaysitforview,andthenIwantwiththatviewtoplaythevaluesonthescreen(basictest)...However,evenwithmycontrollerleadingtotheeditviewpassingaBranchobject,ittellsmethatbranchisnull.Hereismycon...
asked by 12.09.2018 / 21:22
1
answer

MVC / OO events system

I'm writing my first PHP application. From what I've been studying, I've chosen to learn Object Orientation and MVC. I am building this application following a book I have, and it is returning the following error: Parse error: syntax error,...
asked by 21.05.2015 / 09:14
1
answer

Get current user's email

I've developed an application, but I want to get the current user's email (because of aesthetic and requirements issues). I can only get the name of the user through the following code: @HttpContext.Current.User.Identity.Name How to get...
asked by 13.12.2018 / 15:59
1
answer

Save entities related to cakephp-3

I do not understand why related entities are not working with cakephp, for example: I have an entity company, and this company has a user. In my view, the company values correctly put [$ company-> cnpj] and the values for user, I put through the...
asked by 01.09.2016 / 01:42
1
answer

How to use or add aspx pages in an Asp.Net MVC project

Can you use or add to my project that is in Asp.net MVC a page that is ready in webforms (aspx and cs)? If yes how do I add the page?     
asked by 10.09.2015 / 22:17
1
answer

Send variable to layout in laravel4 with blade

I'm having a problem here, I need to send a variable to my layout, so I tried: No controller $this->layout->page = 'Atendentes'; and in the layout this @yield('page') The problem is that I need to compare this page variable wi...
asked by 11.04.2014 / 20:04
1
answer

Data not being loaded in the Table

Good afternoon, I would like to know how I can make my list of records be loaded into the table at the same time that the chart is loaded by AJAX, because currently in my model it shows that it has records but they do not appear in the table,...
asked by 20.07.2018 / 20:53