Stupid Question!

Results 1 to 9 of 9
  1. #1
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Stupid Question!

    Hey Zoners!

    This is gonna be stupid questions but what Laravel?

    I see Major Hotels using it like Boon, Fresh (I think)

    I know its PHP Framework

    Would this be good to learn PHP to start from scratch?


  2. #2
    V.I.P Member Beny. is offline
    MemberRank
    Aug 2009 Join Date
    536Posts

    Re: Stupid Question!

    Quote Originally Posted by Glee View Post
    Hey Zoners!

    This is gonna be stupid questions but what Laravel?

    I see Major Hotels using it like Boon, Fresh (I think)

    I know its PHP Framework

    Would this be good to learn PHP to start from scratch?

    It's basically the authentication, sessions, routing, and caching code done for you. Makes it easy for a developer to get straight to work on the fun stuff instead of coding all that from scratch.

  3. #3
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,608Posts

    Re: Stupid Question!

    Laravel forces you to work in a certain way, which can be a good thing or a bad thing depending on who you ask.

    You could greatly benefit from the speed of developing a website. A lot of common parts, say authentication, permissions, templating, routing are already done in packages for you so easy to plug it into a project.

    There are a bunch of laracasts (Videotutorials) available which help you get started with laravel.

  4. #4
    o/ Konquer is offline
    MemberRank
    Apr 2014 Join Date
    464Posts

    Re: Stupid Question!

    Quote Originally Posted by Glee View Post
    Would this be good to learn PHP to start from scratch?
    Considering the amount of resources out there for Laravel, learning it is not going to be a problem for you. However, if you're doing this only to learn php you're probably going to want to reconsider as all the basic stuff is already done for you. Learn Laravel if you want to learn how typical web frameworks work.

  5. #5
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Re: Stupid Question!

    So I'm bumping this tread. Because I need assistance with Laravel and Javascript! So I completed the Index Page of cms.

    you can see that here http://i63.tinypic.com/20fb9yb.jpg

    So I got it start as I have this code:

    PHP Code:
    <div id="footer-content" class="partner-logo-present">
    <
    div id="footer">
                     @ include(
    'inc.footer')
    </
    div
    Which pulls from the inc folder and the footer.blade.php Fantastic I got that down packed now I got some basic Javascript complete BUT NOW I'M STUCK WITH REGISTRATION part of the javascript!!

    When I click the JOIN NOW button it will not move over the registration page I created!!

    When I click on the Tell Me More button the last 2 image move up and down to show me the Tell me more story.

    I created the registration.blade.php but I want to use the myurl.dev/#registration I have watch plenty of Laracast video but I'm stumped.

  6. #6
    Typescript XOXO LeChris is offline
    MemberRank
    Sep 2011 Join Date
    749Posts

    Re: Stupid Question!

    Laravel is one of the better (but bigger) PHP frameworks available that provides the very basics of everything you need along with a reliable folder-structure so you can actually code the things users want faster.

    As for the question above, the only way to use /registration outside of Javascript options would be to add it as a different route with an <a href="">

  7. #7
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Re: Stupid Question!

    Quote Originally Posted by LeChris View Post
    Laravel is one of the better (but bigger) PHP frameworks available that provides the very basics of everything you need along with a reliable folder-structure so you can actually code the things users want faster.

    As for the question above, the only way to use /registration outside of Javascript options would be to add it as a different route with an <a href="">
    But wouldn’t I need it as a JavaScript though because its intertwine with index page because I’m creating it as the older Habbo theme.

    When I go to boon it has #registration but couldn’t that be atler using .htaccess?

    What I have in my web.php

    PHP Code:

    Route
    ::get(‘registration’, function () {
               Return 
    view (‘registration’);
    }); 

  8. #8
    Typescript XOXO LeChris is offline
    MemberRank
    Sep 2011 Join Date
    749Posts

    Re: Stupid Question!

    Quote Originally Posted by Glee View Post
    But wouldn’t I need it as a JavaScript though because its intertwine with index page because I’m creating it as the older Habbo theme.

    When I go to boon it has #registration but couldn’t that be atler using .htaccess?

    What I have in my web.php

    PHP Code:

    Route
    ::get(‘registration’, function () {
               Return 
    view (‘registration’);
    }); 
    That's because Boon uses the index and register connected with Javascript; not PHP. I suppose I don't understand the question.

  9. #9
    o/ Konquer is offline
    MemberRank
    Apr 2014 Join Date
    464Posts

    Re: Stupid Question!

    You can simply create a new post route for /register that goes to your UserController or whatever to handle registration. You do not need a view for register, simply put the registration form in your index/login page and set the form action="/register" and remember method="post"

    So you fill out the registration form in your login page, but the data gets sent to your registration route.

    Regarding the images moving when you click the button. It's not related to Laravel, you will probably have to sort it out with css. To get the #register thing look up html anchor points.

    If you want to test routes without views, the common tool that everyone uses now a days is Postman



Advertisement