• PrestaShop Price Calculator Module

    PrestaShop Price Calculator Module

    Price Calculator

    Version: 1.0

    This module requires PrestaShop 1.5 or newer version.
    To upload Module:

    Go to Back office >> Modules >> Click upload module and select ZIP module file to upload.
    After uploading module you can find it under “Front office features Tab”.
    Click install button and you are done.
    Click Configure to edit basic settings.

    Basic Configuration
    For basic configuration go to Modules >> Find Price Calculator and Click configure.
    1. You can set font size for calculated price on front-end.
    2. Title can be also added from back office but leave it blank if you don’t want any.
    3. Color picker is also available for choosing calculated price color for front-end.

    Additional Help
    For further assistance, please send message through PrestaShop

  • We are market basket

    We are market basket

    oto by Daniel Korschun.The Market Basket saga caught the attention of local media,
    such as WHDH Channel 7 in Boston, seen here in July 2014 at a rally in Tewksbury,
    Massachusetts, as well as several national media outlets.

    Photo by Daniel Korschun. Protesters in front of the Hudson, New Hampshire, store. Rallies and protests held during the summer often included children.

    Arthur T. Demoulas returns to Market Basket’s Tewksbury headquarters the morning after
    he reached an agreement with competing shareholders to buy out the company. Here, he
    climbs onto the truck bed of Steve Paulenka, in the foreground, with a stuffed giraffe in the
    background—­a symbol of the employee and customer movement.
    Courtesy of Lowell Sun/Photographer David H. Brow


    One book written by outside observers can hardly capture every facet
    of a story that involves millions of people. What we can offer, however,
    is an account of how this movement came to be told through the eyes
    of some of its participants. This book is based on dozens of interviews
    with people involved in a grassroots movement. They generously
    agreed to be interviewed by us, sharing their personal experiences and
    giving a valuable window into the Market Basket story. Our sincerest
    thanks to all the members of the extended Market Basket family, with
    special thanks to the following associates, vendors, customers, government officials, analysts, and others who opened up to us:
    Market Basket Associates

    Susan Beek, store associate
    David Corteau, warehouse
    Karla Foster, store associate
    Dean Joyce, warehouse manager
    Linda Kulis, accounts receivable
    Mark Lemieux, store director
    William Marsden, director
    of operations
    Luis Mendez, warehouse associate

    Shawn Moran, store associate
    Sean Morse, assistant
    store director
    Barbara Paquette,
    accounts payable
    Scott Patenaude, meat manager
    Diane Patterson,
    refrigeration associate
    Steve Paulenka, grocery

    American Management Association • www.amanet.org



    Joe Schmidt, operations

    Tom Trainor, district supervisor
    Cindy Whelan, store director

    Tony and Amal Aboukhater,
    independent contractor
    Rich Bonanno, founder,
    Pleasant Valley Gardens
    Michael Fairbrother, founder,
    Moonlight Meadery

    Jim Fantini, bakery vendor
    Tim Malley, chief
    executive officer, Boston
    Sword and Tuna
    John Simone, owner,
    Riverside Farm


    Jack Christian
    David Greenberg
    Linda Heilein

    Susan Nolan
    Rita Stone
    Jaymie Wolfe
    Government Officials

    State Senator Sal
    DiDomenico, Everett
    State Senator Eileen
    Donoghue, Lowell
    State Senator Barry
    Finegold, Andover

    Governor Maggie Hassan,
    New Hampshire
    Rick Sullivan, Chief of
    Staff to Governor Deval
    Patrick, Massachusetts

    Ted Clark, executive director,
    Northeastern University
    Center for Family Business
    Burt Flickinger, managing
    director, Strategic
    Resource Group
    Thomas Kochan, professor of
    management, Massachusetts
    Institute of Technology

    Miguel Padro, project
    manager, Aspen Institute
    James Post, professor of
    management, Boston
    Jon Springer, retail editor,
    Supermarket News
    Neil Stern, senior partner,
    McMillan Doolittle

    American Management Association • www.amanet.org


    Zeynep Ton, associate
    professor of operations


    management, Massachusetts
    Institute of Technology

    Additional Contributors

    David Brow, photographer,
    Lowell Sun
    Jay Childs, director, JBC
    Claire Ignacio, author
    Melissa Paly, director of strategy
    and multimedia, Crosscurrent

    Titus Plomaritis, retired
    William Poulios, family friend
    Joanne Sheehan, director,
    Lowell Council on Aging
    Eliot Tatelman, founder,
    Jordan’s Furniture

    We wish to single out Jim Fantini for introducing us to associates
    and other Market Basket stakeholders, for coordinating interviews
    with senior managers, and for believing in the project from the beginning. His efforts to help us tell the story completely and accurately
    have greatly enhanced the book.
    We also wish to send a special thank you to our colleagues at
    Drexel University and the Lowell Sun for reviewing drafts and providing additional ideas and suggestions. In particular, we thank Anubhav
    Aggarwal for research support. Thank you also to Maximo Bustillo
    for his many insightful suggestions, especially in telling the history of
    the company.
    We thank David Brow of the Lowell Sun for his beautiful photos.
    Brow covered the Market Basket story from the beginning and was at
    the rallies, demonstrations, and other key events.
    We also thank the team at AMACOM who have been a pleasure
    to work with from day one. In particular, we thank Stephen S. Power,
    who spearheaded this endeavor and helped us craft it into this book.
    We also thank Tim Durning, who showed great patience and professionalism as we went through versions of the manuscript.
    Finally, and above all, we thank our families for their support. Only
    unconditional love can explain how they tolerated us for the past

    American Management Association • www.amanet.org



    months. We dominated conversations at dinner with talk of Market
    Basket, asked them to read excerpts, sought their opinions on what
    to include in the book, and worked nights, weekends, and holidays to
    meet our deadlines. Doré, Michael, Suzanne, and Camille Korschun all
    pored over drafts every step of the way. We hope our loved ones agree
    that it was worth it!
    Thank you.

    American Management Association • www.amanet.org


    By 9 a.m., thousands had congregated in the parking lot yards away
    from a Market Basket supermarket. The raucous crowd was a mix
    of part-­time clerks, truck drivers, office workers, store directors, and
    senior managers from the corporate office. There were teenagers for
    whom Market Basket is their first employer and longtime employees
    for whom Market Basket has been their only employer. Also in the
    crowd were lifelong customers as well as suppliers of produce, fish, and
    other goods.
    It was the third rally in less than a month. The DJ played a parody
    of Twisted Sister’s song “We’re Not Gonna Take It” (with the words
    changed to “We Are Market Basket”) over the sound system as cowbells and air horns pierced the air. An airplane circled high above the
    parking lot, towing a banner that read in red capital letters, “Arthur T.
    Save Market Basket! Buy Them Out!” Borrowed school buses were
    arriving regularly now from all over New England—­their passengers cheering and waving signs through open windows. Traffic on
    Boston’s Interstate 495 artery was backed up from Stadium Plaza in
    Tewksbury, Massachusetts, where the rally took place, to Interstate 93,
    five miles away.
    While the rally was boisterous, it was a different story inside Market
    Basket’s stores. Shelves for perishables at the chain’s seventy-­one stores
    were barren, most checkouts were closed, and 90 percent or more of the

    American Management Association • www.

  • Venture Mom - income in just 12 weeks

    Venture Mom -  income in just 12 weeks

    ntures in a range of categories. By learning how
    other women have found success, you’ll learn how you can, too. The book
    covers all areas of interest: food, fashion, art, children’s classes, products
    and clothing for babies and children, animal-related ventures, Web and
    media ventures, and everything in between. Each success story in the first
    12 chapters illustrates key points on the path to success, not simply the
    end result. These stories all have kernels of information that serve to both
    instruct and inspire.
    When people ask why I started my website and wrote this book, I can
    point to two reasons: I love motivational books, and I get really antsy on
    long car rides. When my children were young, we rented a rundown ski
    house about four hours from home with some other families. It was on the
    weekly car rides to Vermont that Venture Mom was born.
    I decided to come up with my own top 10 ways to stay motivated and
    fulfilled. When I looked around, the happiest women I could find were the
    ones who had created business ventures around something they loved to
    do. This resonated with my own experience: when I have a project, I’m on
    top of the world. I began to interview these women and write their stories.
    They were so compelling that, rather than wait to get a book published, I
    wanted to share their experiences right away. So I started a website and
    newsletter and called it what I was, a mom with a venture: VentureMom.
    The paths to a successful venture were similar in so many aspects of the
    stories I heard that I developed a plan around what I learned from talking
    with these women. I’m a no-nonsense type of person, and showing other
    moms who wanted ventures how easily they could get started became the
    subject of this book.
    I also learned that fear can be a huge roadblock. When I first started my
    newsletter, it took me two weeks to hit the send button. Knowing that this
    is a universal feeling can help new entrepreneurs overcome their own fear
    and get started on their ventures.
    The timing is right. Women-owned businesses are thriving as important economic contributors in the U.S. and abroad. Between 1997 and
    2013, the number of women-owned firms grew at one and a half times the
    national average, according to the American Express OPEN State of
    Women-­Owned Businesses Report for 2013 (http://cwb.uschamber.com/­

    American Management Association / www.amanet.org

    P reface


    Many of the topics in this book could be (and have been) the subjects
    of entire books, but that kind of in-depth exploration is not the purpose of
    the 12-week program. This book aims to give you enough information—
    and inspiration—so you can move forward quickly and confidently.

    American Management Association / www.amanet.org

    This page intentionally left blank

    American Management Association / www.amanet.org


    Five Commonalities

    There are five things all moms with successful ventures have in common:
    #1. They have an existing talent, skill, or passion. First and foremost,
    most of these moms start a business around a passion that’s already in their
    lives. It’s usually a hobby that they love to pursue or a product they make
    that gets lots of compliments. Whether it’s getting babies to sleep, remodeling bathrooms, or organizing pantries; whether it’s making a great carrot
    cake, a beautiful necklace, or fabulous pillows, everyone has something
    they do really well, something that wins praise from friends and family.
    You’ve heard the expression “Do what you love, and the money will follow.” It’s true for most moms who have their own ventures. What is it that
    you do in your life now that you love to do and others need?
    #2. They have a network of supportive friends and family. Friends and
    family always play a huge part in these stories. When you have an idea, tell
    everyone you know and get input, suggestions, and feedback. Someone
    always knows someone who can help you in some way. Successful entrepreneurs are not afraid to ask for help, and they spread the word on what
    they need. What is your idea and who can help you make it happen?

    American Management Association / www.amanet.org


    Intro d uctio n

    #3. They usually have no formal business plan. Most successful moms
    with their own ventures do not create a business plan. Most don’t even
    have something written on the back of a napkin. Many women just seem
    to fall into their business ventures, whether they plan to or not. A friend
    asks for help organizing a closet. Or an aunt begs them to make a soup and
    salad for her bridge group. Or a neighbor loves the belt her friend created
    and asks her to make one for her. When this happens, these moms become
    aware that they have something that not only their friends and family
    would like and would pay for, but others might, too. But rather than take
    time to create a business plan, these moms just get started.
    #4. They raise no start-up capital. Most successful Venture Moms start
    their venture without any start-up capital or loans. If some capital is
    needed they self-fund their ventures, usually with less than $500. Many
    get started by sending an email to everyone they know, telling of their service or product, and use initial proceeds to fund their venture.
    #5. They overcome their fear. Finally, most successful moms are scared
    to get started. Many worry, saying, “What will my friends think? What will
    they say?” But many know in their hearts that their idea is something they
    must pursue even if they fail. It is common for entrepreneurs to have a
    visceral feeling that they must put their idea out in the world. You are not
    alone if you feel this way.
    How This Book Will Help You

    This book will help you succeed. By following the steps and assignments
    outlined each week you will be able to overcome the fear you may feel at
    getting started. You don’t want to be sitting in your rocking chair 30 years
    from now, thinking about that great business idea you wish you had tried.
    The book is organized into four parts. Here’s how it works.
    Parts I Through III

    For the next 12 weeks, your weekly goal will be to complete the assignments described in each week’s chapter.
    It doesn’t have to be perfect. As women, we strive for perfection and
    may seek the exact color orange for our logo or the perfect weight of paper
    American Management Association / www.amanet.org

    Intro d uctio n


    for our business cards. My belief is that it’s better to get started with something you may not be 100 percent happy with than to not get started at all.
    Remember, others don’t know that you think the orange in your logo is too
    bright, or not bright enough, or not quite the shade you had in mind. They
    just see the success of your business. Focus on the big picture, and the
    details will fall into place.
    Not to worry if you get sidetracked with life and you can’t complete the
    assigned task for the week. Just hit reset and start again the next week

  • English Grammar

    English Grammar

    the 2


    79 Singular and plural
    80 Noun+ noun (a tennis ball I a headache)
    81 -'s (your sister's name) and of ... (the name of the book)

    Pronouns and determiners

    Myself/yourself/themselves etc.
    A friend of mine My own house On my own I by myself
    There ... and it ...
    Some and any
    Nothing/ nobody etc.
    Much, many, Little, few, a Lot, plenty
    All I all of most I most of no I none of etc.
    Both I both of neither I neither of either I either of
    All, every and whole
    Each and every

    Relative clauses

    Relative clauses 1: clauses with who/that/ which
    Relative clauses 2: clauses with and without who/ that/which
    Relative clauses 3: whose/ whom/where
    Relative clauses 4: extra information clauses (1)
    Relative clauses 5: extra information clauses (2)
    -ing and -ed clauses (the woman talking to Tom, the boy injured in the accident)

    Adjectives and adverbs

    Adjectives ending in -ing and -ed (boring/bored etc.)
    Adjectives: a nice new house, you look tired
    Adjectives and adverbs 1 (quick/quickly)
    Adjectives and adverbs 2 (well/fast/Late, hard/ hardly)

    102 So and such
    103 Enough and too
    104 Quite, pretty, rather and fairly

    Comparison 1 (cheaper, more expensive etc.)
    Comparison 2 (much better I any better I better and better I the sooner the better)
    Comparison 3 (as ... as I than)
    Superlatives (the Longest, the most enjoyable etc.)

    109 Word order 1: verb+ object; place and time
    110 Word order 2: adverbs with the verb
    111 Still/ yet and already
    112 Even

    Any more I any Longer I no Longer

    Conjunctions and prepositions
    113 Although I though I even though In spite of I despite
    11 6
    11 9

    In case
    Unless As Long as Provided/ providing
    As (As I wa lked along the street ... I As I was hungry ...)
    like and as
    Like I as if I as though
    For, during and while
    By and until By the time ...




    At/ on/ in (time)
    On time and in time At the end and in the end
    In/ at/on (position) 1
    In/ at/ on (position) 2
    In/ at/on (position) 3
    To/ at/in/into
    In/ on/ at (other uses)
    Noun+ preposition (reason for, cause of etc.)
    Adjective+ preposition 1
    Adjective+ preposition 2
    Verb+ preposition 1
    to and at
    Verb+ preposition 2
    about/ for/ of/ after
    Verb+ preposition 3
    about and of
    Verb+ preposition 4
    of/for/from / on
    Verb+ preposition 5
    in/ into/ with /to/ on

    Phrasal verbs
    13 7

    Phrasal verbs
    Phrasal verbs
    Phrasal verbs
    Phrasal verbs
    Phrasal verbs
    Phrasal verbs
    Phrasal verbs
    Phrasal verbs
    Phrasal verbs




    Regular and irregular verbs 292
    Present and past tenses 294
    The future 295
    Modal verbs (can/could/will/would etc.) 296
    Short form s (I'm I you've I didn't etc.) 297
    Spelling 298
    American English 300

    Additional exercises
    Study guide

    General points
    in/ out
    on/ off (1)
    on/ off (2)
    up/ down
    up (1)
    up (2)
    away/ back



    Key to Exercises 336
    Key to Add itiona l exercises
    Key to Study guide 372





    This is the fourth edition of English Grammar in Use. I wrote the original edition when I was a teacher at
    the Swan School of English, Oxford . I would like to repeat my thanks to my colleagues and students at the
    school for their help, encouragement and interest at that time.
    Regard ing the production of this fourth edition, I am grateful to N6irfn Burke, Annabel Marriott, Matthew
    Duffy, Liz Driscoll, jane Walsh, jeanette Alfoldi and Kamae Design. I would like to thank Cambridge
    University Press for permission to access the Cambridge International Corpus.
    Thank you also to the following illustrators: Humberto Blanco, Paul Fellows, Sophie Joyce, Katie Mac,
    lan Mitchell, Gillian Martin, Sandy Nicholls, Roger Penw ill, Lisa Sm ith, Dave Whamond and Simon Williams.



    This book is for students who want help with English grammar. lt is wri tten for you to use without a
    The book will be useful for you if you are not sure of the answers to questions like these:



    What is the difference between I did and I have done?
    When do we use will for the future?
    What is the structure after I wish?
    When do we say used to do and w hen do we say used to doing?
    When do we use the?
    What is the difference between like and as?

    These and many other points of English grammar are explained in the book and there are exercises on
    each po int.

    The book is intended mainly for intermediate students (students who have already studied the basic
    grammar of English). lt concentrates on those structures which intermediate students want to use,
    but which often cause difficulty. Some advanced students who have problems with grammar will also
    find the book useful.
    The book is not suitable for elementary learners.
    How the book is organised

    There are 145 units in the book. Each unit concentrates on a particular point of grammar. Some
    problems (for example, the present perfect or the use of the) are covered in more than one unit. For a
    list of units, see the Contents at the beginning of the book.
    Each unit consists of two facing pages. On the left there are explanations and examples; on the
    right there are exercises. At the back of the book there is a Key for you to check your answers to the
    exercises (page 336).
    There are also seven Appendices at the back of the book (pages 292-301). These include irregular
    verbs, summaries of verb forms, spelling and American English.
    Finally, there is a detailed Index at the back of the book (page 373).
    How to use the book

    The units are not in order of difficulty, so it is not intended that you work through the book from
    beginning to end. Every learner has different problems and you shou ld use this book to help you with
    the grammar that you find difficult.
    lt is suggested that you work in this way:



    Use the Contents and/or Index to find which unit deals with t he point you are interested in.
    If you are not sure which units you need to study, use the Study guide on page 326 .
    Study the explanations and examples on the left-hand page of the unit you have chosen.
    Do the exercises on the right-hand page.
    Check your answers with the Key.
    If your answers are not correct, study the left- hand page aga in to see what wen t wrong.

    You can of course use the book simply as a reference book without doing the exercises .



    Additional exercises

    At the back of the book there are Additional exercises (pages 302-325). These exercises bring together
    some of the grammar points from a number of different un its. For example, Exercise 16 brings together
    grammar points from Un

  • Java By Example

    Java By Example

    Example: Using a Variable as a Subscript
    Multidimensional Arrays
    ❍ Example: Creating a Two-Dimensional Array
    Example: Using Two-Dimensional Arrays in an Applet
    Review Questions
    Review Exercises

    Chapter 14 Classes

    Classes and Objects
    ❍ Defining a Simple Class
    ❍ Declaring Fields for a Class
    ❍ Defining a Constructor
    ❍ Example: Creating an Object by Calling a Constructor
    ❍ Defining Methods
    Example: Using Classes in Applets
    Understanding the Applet
    Using Inheritance
    ❍ Creating a Subclass
    ❍ Adding Fields and Methods to the Subclass
    ❍ Example: Adding Fields and Methods
    Example: Using a Subclass in a Program
    Overriding Methods of the Superclass
    The this Keyword
    Review Questions
    Review Exercises

    Chapter 15 Writing a Simple Applet

    The Simplest Java Applet
    The Five Stages of an Applet's Life Cycle
    Example: Overriding the Life Cycle Methods
    Review Questions
    Review Exercises

    Chapter 16 Drawing Graphics

    The Applet's Canvas
    Example: Using the Coordinate System
    Drawing Shapes

    Example: Drawing a Rectangle
    Example: Drawing Other Shapes
    Understanding the ShapeApplet Applet
    ❍ Drawing Ovals
    ❍ Drawing Arcs
    ❍ Example: Drawing Arcs in an Applet
    ❍ Drawing Polygons
    Review Questions
    Review Exercises

    Chapter 17 Graphical Text

    Dealing with Graphical Text
    ❍ Getting Font Attributes
    ❍ Example: Displaying Font Information
    ❍ Getting Font Metrics
    ❍ Example: Displaying Font Metrics
    Creating Fonts
    ❍ Example: Creating a Font with Multiple Styles
    ❍ Using the Font
    ❍ Example: Displaying Different Sized Fonts
    Review Questions
    Review Exercises

    Chapter 18 Label and Button Controls

    Example: Creating a Label
    ❍ Methods of the Label Class
    ❍ Example: Adding a Button to an Applet
    ❍ Handling Multiple-Button Events
    ❍ Example: Handling Multiple Buttons in an Applet
    Review Questions

    Review Exercises

    Chapter 19 Checkbox and TextField Controls

    ❍ Example: Creating Nonexclusive Checkboxes
    ❍ Checkbox Groups
    ❍ Checkbox Methods
    ❍ Example: Handling Checkboxes in an Applet
    ❍ Responding to a Checkbox Event
    ❍ Example: Handling Checkbox Events in an Applet
    ❍ TextField Methods
    ❍ Example: Using Echo Characters
    Review Questions
    Review Exercises

    Chapter 20 Choice Menu, Text Area, and Scrolling
    List Controls

    Choice Menus
    ❍ Example: Creating a Choice Menu
    ❍ Choice Menu Methods
    ❍ Example: Responding to Menu Events in an Applet
    Scrolling Lists
    ❍ Example: Creating a Single-Selection List
    ❍ Example: Creating a Multiple-Selection List
    ❍ Example: Creating a Scrolling List
    ❍ Methods of the List Class
    ❍ Example: Using a Scrolling List in an Applet
    The TextArea Control
    ❍ Example: Creating a TextArea Control
    ❍ Methods of the TextArea Class
    Review Questions
    Review Exercises

    Chapter 21 Scrollbar and Canvas Controls

    ❍ Example: Creating a Scrollbar
    ❍ Responding to a Scrollbar
    ❍ Example: Using a Scrollbar in an Applet
    ❍ Canvases
    ❍ Example: Using a Canvas in an Applet
    Review Questions
    Review Exercises

    Chapter 22 Panels and Layout Managers

    Example: Creating and Using Panels
    Layout Managers
    The FlowLayout Manager
    ❍ Example: Creating a FlowLayout Manager
    The GridLayout Manager
    ❍ Creating a GridLayout Manager
    The BorderLayout Manager
    ❍ Creating a BorderLayout Manager
    The CardLayout Manager
    ❍ The CardLayout Manager Methods
    ❍ Example: Creating a CardLayout Manager
    The GridBagLayout Manager
    ❍ Creating and Setting the GridBagLayout Manager
    ❍ Creating and Setting a GridBagConstraints Object
    ❍ Example: Using a GridBagLayout Manager in an Applet
    ❍ Understanding the GridBagApplet Applet
    Review Questions
    Review Exercises

    Chapter 23 Windows and Menu Bars

    Displaying a Window
    ❍ Example: Displaying a Window in an Applet
    ❍ Example: Creating a Window Class
    ❍ Example: Adding Components to a Window
    Using Menu Bars
    ❍ Creating and Setting a MenuBar Object
    ❍ Adding Menus to a Menu Bar
    ❍ Adding Menu Items to Menus
    ❍ Example: Using a Menu Bar in a Frame Window
    Review Questions
    Review Exercises

    Chapter 24 Dialog Boxes

    Using a Dialog Box
    ❍ Creating the Dialog Box
    ❍ Creating the Dialog Box's Layout
    ❍ Displaying the Dialog Box
    ❍ Removing the Dialog Box
    ❍ Methods of the Dialog Class
    ❍ Example: A Dialog Box for Text Input
    Review Questions
    Review Exercises

    Chapter 25 Mouse and Keyboard Events

    The Event Object
    The Mouse
    ❍ Handling Mouse Clicks
    ❍ Example: Using Mouse Clicks in an Applet
    ❍ Handling Mouse Movement
    ❍ Example: Responding to Mouse Movement in an Applet
    The Keyboard

    Responding to Key Presses
    ❍ Predefined Key Constants
    ❍ Key Modifiers
    ❍ Example: Using Key Presses in an Applet
    Handling Events Directly
    ❍ Example: Overriding handleEvent() in an Applet
    Review Questions
    Review Exercises

    Chapter 26 Configurable Applets

    Types of Users
    Parameters and Applets
    ❍ Example: Setting and Retrieving a Parameter's Value
    ❍ Example: Using a Parameter in an Applet
    Multiple Parameters
    ❍ Example: Using Multiple Parameters in an Applet
    Default Parameter Values
    ❍ Example: Using Default Parameters in an Applet
    Review Questions
    Review Exercises

    Chapter 27 Images and Sounds

    Image Types
    Loading and Displaying an Image
    ❍ Example: Using the getDocumentBase() Method
    ❍ Example: Using the getCodeBase() Method
    ❍ Loading an Image
    ❍ Displaying an Image
    ❍ Example: Displaying an Image in an Applet
    Playing a Sound
    ❍ Example: Using the play() Method
    ❍ Example: Playing a Sound in an Applet
    ❍ Controlling Sounds

    Example: Using an AudioClip in an Applet
    Review Questions
    Review Exercises

    Chapter 28 Communications

    URL Objects
    ❍ Example: Creating an URL Object
    ❍ URL Exceptions
    The Applet Context
    ❍ Example: Using an AppletContext to Link to an URL
    ❍ Example: Using an AppletContext in an Applet
    Creating a "Favorite URLs" Applet
    Review Questions
    Review Exercises

    Chapter 29 Packages and Interfaces

    ❍ Creating Your Own Packages
    ❍ Example: Creating a Simple Package
    ❍ Example: Using the New Package
    ❍ Example: Extending the Package
    ❍ The Basic Interface
    ❍ Example: Creating an Interface
    ❍ Implementing an Interface
    Review Questions
    Review Exercises

    Chapter 30 Exceptions

    Java's Exceptions
    Throwing an Exception

    Types of Exceptions
    Determining the Exceptions to Handle
    ❍ Example: Catching a Runtime Exception

  • zend framework exmaple

    zend framework exmaple

    vidual components
    with their very own lifecycle, it just makes no real sense to version the overall Framework anymore.
    That said, Zend Framework 3 in fact is more a marketing term, while the Framework itself now is
    simply named “Zend Framework“.
    Zend Framework 3 keeps a lot of good stuff that was introduced with Zend Framework 2 and at the
    same time improves on its weaknesses. It also ships with brand new ideas, components and tools.

    Who is this book for?
    It is a challenge to write a technical book which finds a balance between theory and practice,
    allowing both novices and professionals to get the best out of it. I gladly accepted this task, but
    left myself an escape hatch. Later explanation or references are supplied to overcome any of my
    straying in a forest of details. No big promises, but I plan to continually revise text and examples:
    so keep your purchase up to date! A further challenge is how to address both developers new to
    Zend Framework 3 and “old hands”. For those familiar with Version 1 or 2 I frequently refer to this
    predecessor when appropriate, without going into excessive detail. That might also perhaps help
    novices, because in this manner they would get a better feeling for why Version 3 is necessary.
    I presume that you have basic knowledge of PHP. You do not have to be a PHP expert, particularly
    because many “native” PHP functions became obsolete when one uses Framework techniques. For
    example, Session Management, which maps in an object-oriented manner and abstracts some of the
    low-level functionality. Hence, if you are accustomed to PHP syntax, have a basic understanding
    of the operating principles of PHP applications, and are familiar with common functions of the
    language core, you are well prepared. Bear in mind you will also need to use a PHP language
    references, readily available on-line.

    Structure of this book
    This book is not meant to be a compendium. More a pragmatic and practice-oriented introduction
    to basic concepts and practical work with Zend Framework 3. In one’s progress as a developer, the



    official documentation serves well as a compendium for experienced developers, but is not really
    appropriate for use whilst becoming familiar with the subject. Instead, the book’s objective is to
    serve as an (indispensible) reference work for further detailed questions achieving required basic
    It is structured such that you can read it from the beginning to the end, and that is what you should
    do. We will begin with an overview of the Framework, first looking at essential concepts and ideas
    forming its essence and differentiating it from its predecessors. On the way, we will repeatedly also
    look to the left and right, becoming familiar with the Framework conditions, for example ideas
    and discussions behind Framework’s development. Then elucidate the Framework’s most important
    components and relationships; peek at how a HTPP request is processed; write our first bit of code;
    and an excursion into the Framework environment. We will examine the most important third-party
    modules. Modules are a large part of the magic of Zend Framework 3, like it also was already the
    case with version 2. Modules can greatly accelerate and simplify application development. Also with
    the implementation of the so-called “middleware” approach now in Zend Framework 3, a new way
    of re-using code has been set-up.

    How you can best work with this book
    Programming (or handling a programming framework) is best learned when you become active
    yourself. Indeed, particularly the first part of the book up to the practice section is already helpful
    even without an opened IDE, but you will have the greatest possible learning success if you
    reproduce some of the lines of code or write some yourself. In the ideal case, you have a system
    with a debugger at hand, with which you can follow the Framework’s mode of operation step by
    step. Some knowledge of Git and a GitHub account would not hurt anything either, but are not

    Found a bug?
    Have you found a bug in the text or code? Please email me at zf3@michael-romer.de. I am thankful
    for your feedback and support.

    Conventions used in this book
    Code examples
    The listings in this book have Syntax Highlighting, wherever possible, but do not always conform
    to a coding standard; this serves to make them more legible. PHP code is introduced by a a // [..] in the respective listing indicates excluded code fragments.



    Command line
    When a command has to be executed on the command line, this is symbolised by a preceding dollar
    sign ($) . The visual feedback of the command is indicated by a preceding “greater than sign” (>).

    $ php composer.phar
    > Composer version 1.1.3 2016-06-26 15:42:08

    A first look at Zend Framework 3
    Three ways to use the Framework
    Zend Framework 3 allows you to write your applications in two fundamentally different ways, using
    two different architectural styles. In addition, you might not want to use Zend Framework 3 as you
    app foundation at all, but only use specific Framework components.
    First, there is the „classic MVC“ style. If you used earlier version of Zend Framework before,
    especially version 2, things will look familiar to you. If you are new to Zend Framework or not
    used to other full stack MVC PHP frameworks like Laravel yet: MVC simply means dividing your
    app into three interconnected parts, so as to separate internal representations of information (M =
    model) from the ways that information is presented (V = view) to or accepted from the user (C =
    If you want to build a MVC structured app, you will base your app on the zend-mvc component and
    also leverage a bunch of other related Framework components like the Event Manager and Module
    Manager. No worries, we will talk about both in great detail later in this book. While the MVC
    approach is still valid and very powerful, it’s somewhat complex and hard to understand, especially
    in the beginning. zend-mvc is not what one would call “beginner friendly” indeed. Also, it dictates
    a specific code structure for your app and makes many assumptions, which may or may not be true
    for your specific application.
    Because of this, Zend Framework 3 now also includes a so-called “micro-framework” component
    as well. You might use it instead of zend-mvc. Micro-frameworks in general are pretty popular
    these days and you will find a lot of them out there. Even the most popular frameworks, like
    Symfony or Laravel these days offer an alternative micro-framework right next to their main MVC
    framework. And now, also Zend Framework ships with a micro-framework. It’s called “Expressive”,
    or zend-expressive. Expressive implements a new approach in structuring an app, using so-called
    “middleware”. Since middleware is PSR-7 compliant, by default, Expressive is also way more open
    to work with other libraries and components of other framework

Record with your Camera and Share it