Related
Mohsin: I'm having trouble trying to pass a variable from the controller to the view. I think I've made a mistake somewhere and can't find it since I'm a newbie. My controller method is: public function paymentdetail($order_code)
{
$this->load->model('
Porcupine 92 I am trying to pass variables from one view to controller to another. I don't get any errors, but when it gets to the last view, it doesn't show the variable as expected. In the first view, I'm just a name. {{ Form::open(array('route' => 'form', '
username I just started moving to Laravel 5 from Symfony and I'm wondering how to pass multiple arrays from controller to view. I'm trying to use PHP's compact() function but can't get them right in the view. $users = Users::all();
$projects = Projects::all();
devout I am stuck passing variable value from controller to local controller. I have @skillSetData on @skillSetData with all data from skillsets database from controller: SkillSetsController def skillsetdata
@skillSetData = SkillSet.all
end
The skills bel
lemon I've seen YouTube tutorials on Laravel. Here is the code. I am starting to learn Laravel. <?php
class Authors_Controller extends BaseController {
public $restful = true;
public function get_index(){
$view = View::make('authors.index',array('name'
stevens I am new to Laravel 5 and MVC framework. I am not able to get the result from the database query and pass it to the blade view. Here is the controller function I need... public function show(Project $project)
{
$technologies = DB::select('select * from
Moses My array ($response_array) is like this: Array
(
[Auth] => Array
(
[UserID] => test
[UserIP] => 123
[XmlVersion] => Testing Version
)
[SearchAvailRequest] => Array
(
[Countr
Niladri Banerjee - Uttarpara I have passed the $id from the controller as: $data['getId'] = $id; // say value = 12
return view('Administrator.notification.index',$data);
However, in the view file I use {{getId}}, it shows the error: Using undefined constant g
Porcupine 92 I am trying to pass variables from one view to controller to another. I don't get any errors, but when it gets to the last view, it doesn't show the variable as expected. In the first view, I'm just a name. {{ Form::open(array('route' => 'form', '
username I'm having trouble passing data from a controller to a view loaded via Ajax. Below is my code: JS: function editass(id, name, title) {
var modal_title = document.getElementById("modal-title");
var modal_name = document.getElementById("
username I just started moving to Laravel 5 from Symfony and I'm wondering how to pass multiple arrays from controller to view. I'm trying to use PHP's compact() function but can't get them right in the view. $users = Users::all();
$projects = Projects::all();
Roman Ali Hi I am trying to do the following in Laravel 5.2. Summary: Pass some variable from middleware to view via controller Detailed: When a customer logs in, no matter which route they wish to use, we need to check that they have completed all the "setup
Leflanderberg I'm trying to make a notification badge show the number of unread messages a user has. The following works: // Controller
public function messages()
{
$messages = MessagesController::getMessages();
$newNotificationNumber = MessagesContro
hernan brothers I'm new to Laravel and I'm following this tutorial to make CRUD: https://appdividend.com/2020/03/13/laravel-7-crud-example-laravel-7-tutorial-step-by-step/ First I made it myself, then I just copied the code from GitHub, in both cases I went in
Wasswa Samuel I'm building a simple voting application in Laravel 4 where candidates are voted. I have two entities candidate and voting relationship one to one. When someone clicks a button, I'll get the candidate's ID and store it in a poll table with only o
Porcupine 92 I am trying to pass variables from one view to controller to another. I don't get any errors, but when it gets to the last view, it doesn't show the variable as expected. In the first view, I'm just a name. {{ Form::open(array('route' => 'form', '
Netera I'm new to the php platform and what I'm trying to do is pass a variable from the controller to see if the dropdown is populated with an entry from the database, but everything I've tried doesn't work. I get the following error: Undefined variable: prod
stevens I am new to Laravel 5 and MVC framework. I am not able to get the result from the database query and pass it to the blade view. Here is the controller function I need... public function show(Project $project)
{
$technologies = DB::select('select * from
lemon I've seen YouTube tutorials on Laravel. Here is the code. I am starting to learn Laravel. <?php
class Authors_Controller extends BaseController {
public $restful = true;
public function get_index(){
$view = View::make('authors.index',array('name'
Cato I want to pass a variable (id) from the view to the controller using javascript onChange. I've done that, but I ddalways get the same result. In my case I always get "7". Here is my code: Check out : <select id="jurusan_id" type="text" name="jurusan_id"
Netera I'm new to the php platform and what I'm trying to do is pass a variable from the controller to see if the dropdown is populated with an entry from the database, but everything I've tried doesn't work. I get the following error: Undefined variable: prod
Roman Ali Hi I am trying to do the following in Laravel 5.2. Summary: Pass some variable from middleware to view via controller To elaborate: Once the customer is logged in, no matter which route they wish to use, we need to check that they have completed all
lemon I've seen YouTube tutorials on Laravel. Here is the code. I am starting to learn Laravel. <?php
class Authors_Controller extends BaseController {
public $restful = true;
public function get_index(){
$view = View::make('authors.index',array('name'
Porcupine 92 I am trying to pass variables from one view to controller to another. I don't get any errors, but when it gets to the last view, it doesn't show the variable as expected. In the first view, I'm just a name. {{ Form::open(array('route' => 'form', '
username I just started moving to Laravel 5 from Symfony and I'm wondering how to pass multiple arrays from controller to view. I'm trying to use PHP's compact() function but can't get them right in the view. $users = Users::all();
$projects = Projects::all();
username I'm having trouble passing data from a controller to a view loaded via Ajax. Below is my code: JS: function editass(id, name, title) {
var modal_title = document.getElementById("modal-title");
var modal_name = document.getElementById("
username I'm having trouble passing data from a controller to a view loaded via Ajax. Below is my code: JS: function editass(id, name, title) {
var modal_title = document.getElementById("modal-title");
var modal_name = document.getElementById("
Netera I'm new to the php platform and what I'm trying to do is pass a variable from the controller to see if the dropdown is populated with an entry from the database, but everything I've tried doesn't work. I get the following error: Undefined variable: prod
lemon I've seen YouTube tutorials on Laravel. Here is the code. I am starting to learn Laravel. <?php
class Authors_Controller extends BaseController {
public $restful = true;
public function get_index(){
$view = View::make('authors.index',array('name'