include() problem
Posted: Sun Jun 07, 2009 8:38 am
- Domain
-- Helper
---- DomOrder.class.php (class DomOrder)
-- View
---- Domain Registration
------ RegisterDomain.php (HTML + PHP code for user)
-- Controller
---- DomainRegistration.php (class DomainRegistration)
I have a tree structure of folder just like this in my project. Now i am making the object of 'DomainRegistration' class object in RegisterDomain.php, but DomainRegistration.php class is including the 'DomOrder' class from Helper folder.
In DomainRegistration.php i have written
In RegisterDomain.php i have written
when i run the RegistrationDomain.php it is giving me error that it cannot find the file ../Helper/DomOrder.class.php in DomainRegistration.php file.
Please anyone can help me...???
-- Helper
---- DomOrder.class.php (class DomOrder)
-- View
---- Domain Registration
------ RegisterDomain.php (HTML + PHP code for user)
-- Controller
---- DomainRegistration.php (class DomainRegistration)
I have a tree structure of folder just like this in my project. Now i am making the object of 'DomainRegistration' class object in RegisterDomain.php, but DomainRegistration.php class is including the 'DomOrder' class from Helper folder.
In DomainRegistration.php i have written
Code: Select all
include('../Helper/DomOrder.class.php')Code: Select all
include('../../Controller/DomainRegistration.php')Please anyone can help me...???