Laravel Classroom image

Anil  Bist / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9|Last
Lessons:-Using Controllers

3.3 Using Views
Echoing out source from our Controllers yields a result, but it’s not an elegant solution. If you
are interested in learning Laravel then elegant solutions may well have been what brought you
here. The nature of MVC suggests that we separate our visual layer from the application’s logic.
This is where the ‘Views’ portion of the pattern comes into play.
With Laravel, views could not not be simpler. Simply add HTML templates to your /application/
views/ directory with a lower-case file name, and a .php extension. For example :
1 /application/views/welcome.php
With the contents :
1 <h1>Holla!</h1>
2 <p>This is the welcome action of the account controller.</p>
Now we need to return the View from our welcome action. Laravel has a beautiful expressive
way of doing this, let’s take a look :

 

 
 
 
image
Anil  Bist

Skills    Laravel

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)