Author Topic: ust working out how to use Zend, how do i install?  (Read 1021 times)

0 Members and 1 Guest are viewing this topic.

Offline jarvTopic starter

  • Enthusiast
  • Posts: 271
    • View Profile
ust working out how to use Zend, how do i install?
« on: September 21, 2009, 10:59:57 AM »
how do i install Zend Framework? I am testing locally and I extracted the Zend files into my Sites folder on my mac but when I go to one of the Zend demos, I get the following error:


Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /Users/john/Sites/demos/Zend/Gdata/Calendar.php on line 51

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.:') in /Users/john/Sites/demos/Zend/Gdata/Calendar.php on line 51

Please can someone help?!

Offline itaym02

  • Irregular
  • Posts: 26
  • Gender: Male
    • View Profile
    • PHPancake a community-actions based CSM
Re: ust working out how to use Zend, how do i install?
« Reply #1 on: September 21, 2009, 09:12:46 PM »
What is the path to your Zend folder?
And put here the code of the bootstrap file you use.
In Judo, the bigger your opponent is, The more trashing you will get.

Checkout my opens-source system, A stackoverflow style site. PHPancake
Check out my favorite Megaupload index Rain of Movies
Checkout my Mootools version of WMD: mooWMD

Offline jarvTopic starter

  • Enthusiast
  • Posts: 271
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #2 on: September 22, 2009, 03:46:18 AM »
I don't understand?! bootstrap? I put the zend folders in my Sites folder as i already said above

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #3 on: September 22, 2009, 04:12:27 AM »
You need to put lib/Zend somewhere on your include_path.

Offline jarvTopic starter

  • Enthusiast
  • Posts: 271
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #4 on: September 22, 2009, 04:14:15 AM »
where is my include_path?

Offline Dj Kat

  • Addict
  • Posts: 1,507
  • Gender: Male
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #5 on: September 22, 2009, 05:32:01 AM »
You can define it in your php.ini file

Offline jarvTopic starter

  • Enthusiast
  • Posts: 271
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #6 on: September 22, 2009, 06:23:57 AM »
ok so in my php.ini file there is a bit that reads:

; UNIX: "/path1:/path2"
include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

I cannot find the folder php/includes

Offline Dj Kat

  • Addict
  • Posts: 1,507
  • Gender: Male
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #7 on: September 22, 2009, 06:36:46 AM »
I cannot find the folder php/includes
That you can not find that folder is irrelevant to your problem. Are you using a *nix based OS though and was your php.ini file that way to begin with? Or was that line perhaps commented?
If that folder doesn't exist you can remove that from your include path

As mentioned before you need to put lib/Zend somewhere. Change your include_path to the directory that contains ZF:
Code: [Select]
include_path = ".:/path/to/zend_framework"


Offline jarvTopic starter

  • Enthusiast
  • Posts: 271
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #8 on: September 22, 2009, 06:54:20 AM »
I am using a mac with PHP5 installed ok so I changed it to

; UNIX: "/path1:/path2"
include_path = ".:lib/zend"

and put my zend folder in a lib folder within sites so now when i go to my browser:

http://localhost/~john/lib/zend/

I can see the files but  can't open them?!


Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: ust working out how to use Zend, how do i install?
« Reply #9 on: September 22, 2009, 06:58:58 AM »
Quote
I can see the files but  can't open them?!

What do you mean open them? Zend is a framework and the files within lib/Zend contain classes to be used within your own projects, they don't display anything when viewed via a browser.

You really need to take a look at the quickstart but from here, it sounds like you've allot of ground to yet cover before you even bother using any framework.