PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Dec 11, 2018 7:41 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Nov 17, 2010 9:53 am 
Offline
Forum Newbie

Joined: Thu Sep 16, 2010 5:17 am
Posts: 4
I'm new to Zendframework but i've heared that its possible to use normal php within Zend FW.

now i have a class Users.php with some SQL (create, update,.. ) and i want to use this in a controller.
I also have a class that connects to the database from which te users extends.

all this works outside Zend but when a include one of the classes in my controller it doesn't work.

How can i do this.

I don't want to extend my classes from Zend_Db_Table_Abstract


Top
 Profile  
 
PostPosted: Wed Nov 17, 2010 10:58 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Zend framework is written in PHP, of course your PHP code will work with it. If you have a problem and describe it here I'm sure someone can help


Top
 Profile  
 
PostPosted: Wed Nov 17, 2010 12:09 pm 
Offline
Forum Newbie

Joined: Thu Sep 16, 2010 5:17 am
Posts: 4
found the error.

forgot '../' in my require


Top
 Profile  
 
PostPosted: Wed Nov 17, 2010 9:16 pm 
Offline
The Ninja Space Mod
User avatar

Joined: Fri Aug 05, 2005 1:53 pm
Posts: 6424
Location: Paradise, CA
As josh said, there is nothing special about Zend Framework. It is PHP just like any PHP you might write. It is not a magical black box. :)


Top
 Profile  
 
PostPosted: Thu Nov 18, 2010 4:26 am 
Offline
DevNet Master

Joined: Thu Oct 06, 2005 3:57 pm
Posts: 3360
It isn't. But sometimes it can seem to be :)


Top
 Profile  
 
PostPosted: Sat Oct 25, 2014 4:44 am 
Offline
Forum Newbie

Joined: Sat Oct 25, 2014 4:41 am
Posts: 1
With Zend you just set Zend_Loader to be the autoloader. You add prefixes and paths. So you say look in /lib/Doc/ for classes beginning with Doc_ and it will.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group