Support the ongoing development of Laravel.io →
Configuration
Last updated 1 year ago.
0

First of all there are some errors: models/Category.php on line 7:

pubic static $rules = arry('name' => 'required|min:3');

it should be:

public static $rules = array('name' => 'required|min:3');

and try to access the admin/categories like ...index.php/admin/categories

delete that index.php file

in main.blade.php are also a lot of syntax errors

Last updated 9 years ago.
0
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>eCommerce</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
     {{ HTML::style('css/normalize.css') }}
     {{ HTML::style('css/main.css') }}
     {{ HTML::script('js/vendor/modernizr-2.6.2.min.js') }}
    
</head>
<body>
    <!--[if lt IE 7]>
        <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/";>upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true";>activate Google Chrome Frame</a> to improve your experience.</p>
    <![endif]-->

    <div id="wrapper">
        <header>
            <section id="top-area">
                <p>Phone orders: 1-800-0000 | Email us: <a href="mailto:[email protected]">[email protected]</a></p>
            </section><!-- end top-area -->
            <section id="action-bar">
                <div id="logo">
                    <a href="#"><span id="logo-accent">e</span>Commerce</a>
                </div><!-- end logo -->

                <nav class="dropdown">
                    <ul>
                        <li>
                            <a href="#">{{ HTML::image('img/down-arrow.gif', 'Shop by Category')}} </a>
                            <ul>
                                <li><a href="#">Laptops</a></li>
                                <li><a href="#">Desktop PC</a></li>
                                <li><a href="#">Smartphones</a></li>
                                <li><a href="#">Tablets</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>

                <div id="search-form">
                    <form action="#" method="get">
                        <input type="search" name="search" placeholder="Search by keyword" class="search">
                        <input type="submit" value="Search" class="search submit">
                    </form>
                </div><!-- end search-form -->

                <div id="user-menu">
                    
                    <nav id="signin" class="dropdown">
                        <ul>
                            <li>
                                <a href="#">
                                    {{ HTML::image('img/user-icon.gif', 'Sign In')}} Sign In 
                                    {{ HTML::image('img/down-arrow.gif', 'Sign In')}}
                                </a>
                                <ul>
                                    <li><a href="#">Sign In</a></li>
                                    <li><a href="#">Sign Up</a></li>
                                </ul>
                            </li>
                        </ul>
                    </nav>

                    <!--
                    <nav class="dropdown">
                        <ul>
                            <li>
                                <a href="#">
                                      {{ HTML::image('img/user-icon.gif', 'Andrew Perkins')}} Andrew Perkins 
                                      {{ HTML::image('img/down-arrow.gif', 'Andrew Perkins')}}
                                <ul>
                                    <li><a href="#">Order History</a></li>
                                    <li><a href="#">Sign Out</a></li>
                                </ul>
                            </li>
                        </ul>
                    </nav>-->
                </div><!-- end user-menu -->

                <div id="view-cart">
                    <a href="#">
                        {{ HTML::image('img/blue-cart.gif', 'Vieuw Cart')}} View Cart</a>
                </div><!-- end view-cart -->
            </section><!-- end action-bar -->
        </header>

        <hr />

        <section id="main-content" class="clearfix">
           @if (Session::has('message'))
               <p class="alert"> 
                   {{Session::get('messages')}}
               </p>
            @endif
            @yield('content')  
        </section><!-- end main-content -->

        <hr />

        <footer>
            <section id="contact">
                <h3>For phone orders please call 1-800-000. You<br>can also email us at <a href="mailto:[email protected]">[email protected]</a></h3>
            </section><!-- end contact -->

            <hr />

            <section id="links">
                <div id="my-account">
                    <h4>MY ACCOUNT</h4>
                    <ul>
                        <li><a href="#">Sign In</a></li>
                        <li><a href="#">Sign Up</a></li>
                        <li><a href="#">Order History</a></li>
                        <li><a href="#">Shopping Cart</a></li>
                    </ul>
                </div><!-- end my-account -->
                <div id="info">
                    <h4>INFORMATION</h4>
                    <ul>
                        <li><a href="#">Terms of Use</a></li>
                        <li><a href="#">Privacy Policy</a></li>
                    </ul>
                </div><!-- end info -->
                <div id="extras">
                    <h4>EXTRAS</h4>
                    <ul>
                        <li><a href="#">About Us</a></li>
                        <li><a href="#">Contact Us</a></li>
                    </ul>
                </div><!-- end extras -->
            </section><!-- end links -->

            <hr />

            <section class="clearfix">
                <div id="copyright">
                    <div id="logo">
                        <a href="#"><span id="logo-accent">e</span>Commerce</a>
                    </div><!-- end logo -->
                    <p id="store-desc">This is a short description of the store.</p>
                    <p id="store-copy">&copy; 2013 eCommerce. Theme designed by Adi Purdila.</p>
                </div><!-- end copyright -->
                <div id="connect">
                    <h4>CONNECT WITH US</h4>
                    <ul>
                        <li class="twitter"><a href="#">Twitter</a></li>
                        <li class="fb"><a href="#">Facebook</a></li>
                    </ul>
                </div><!-- end connect -->
                <div id="payments">
                    <h4>SUPPORTED PAYMENT METHODS</h4>
                    {{ HTML::image('img/payment-methods.gif', 'Supported Payment Methods')}}
                </div><!-- end payments -->
            </section>
        </footer>
    </div><!-- end wrapper -->

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script>window.jQuery || document.write('{{ HTML::script('js/vendor/jquery-1.9.1.min.js')}}')</script>
    {{ HTML::script('js/plugins.js')}}
    {{ HTML::script('js/main.js')}}
   
    <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
    <script>
        var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
        (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
        g.src='//www.google-analytics.com/ga.js';
        s.parentNode.insertBefore(g,s)}(document,'script'));
    </script>
</body>
</html>
0

Thanks,

The url is now working well. The trick was that apache must point to /public instead of /

Roelof

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.