Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Zend Framework 1.8 tutorial 3 zend_application part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
31,603
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 22, 2009

ZF 1.8 with new Zend_Application provides an easy way to get your models loaded automatically and resources to be shared across the whole application. Just need to know the naming convention.

As I am using a simple database connection to illustrate the example, you also get a sneak peak at Zend_Db.

Sorry for ramble and typos. In case the topic is still confusion, stay tuned for my next set of tutorials on Zend_Auth and Zend_Acl that make use of all concepts shown so far so you can see how it all comes together.

Part 2 http://www.youtube.com/watch?v=Xmyqf4cvKHE

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • Great tutorial!

  • I like your accent. :D

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • great job :)

  • @SAWJANSEE in your application.ini, add semicolens (;) to the first lines like this: ;phpSettings.display_startup_e­rrors = 0

    ;phpSettings.display_errors = 0

  • solved .... wrote param instead of params

  • Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

  • i have a problem after adding the database adapter

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

  • simples

  • LOL, had the same error:

    Fatal error: Class 'Model_Books' not found in C:\xampp\htdocs\zfTutorial\app­lication\controllers\BooksCont­roller.php on line 38 finally found the problem:  APPLICATION_PATH is a constant, not a string. I was putting it in quotes ('basePath' => "APPLICATION_PATH" ). It is supposed to be without quotes:

    'basePath' => APPLICATION_PATH

  • tho i still the the same error msg.

    Fatal error: Class 'Model_Books' not found in C:\xampp\htdocs\zfTutorial\app­lication\controllers\BooksCont­roller.php on line 38

    does any one notices any error? ive done the tutorial 3 times and this always happens.

    keep on the good work

  • this is the content of my models/Books.php.

    <?php

    class Model_Books extends Zend_Db_Table_Abstract{ protected $_name = 'books';

    }

    and this is my listAction on Books controller. public function listAction() { $booksTBl = new Model_Books(); }

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more