Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

Modular Application Configuration
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Modular Application Configuration
#605
Modular Application Configuration 5 Months, 4 Weeks ago Karma: 0
First i want to say that the tutorials you made helped me alot.
Zend Framework version 1.10.1

I am trying to make a modular Application Configuration but unfortunatly i have problems.

My structure is:

/admin
-> /controller
->/model
----> /DbTable
->/views
->/forms
/default
-> /controller
->/model
--->/DbTable
->/views
->/forms
/layout

in /admin/forms i have a class LoginForm.php , exactly how you made it in your tutorials
in bootstrap i have pretty much exacly your bootstrap.

The problem is that when i call the form like this :
$form = new Admin_Form_LoginForm();
it returns an error :
Fatal error: Class 'Admin_Form_LoginForm' not found in /home/user/web_firme/application/modules/admin/controllers/AutentificareController.php on line 24

However if i call the form like this:
$form = new Form_LoginForm(); it is getting the class here: /default/forms/LoginForm.php
to get it from /admin/forms i have to edit the bootstrap namespace like this:

$modelLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Admin',
'basePath' => APPLICATION_PATH.'/modules/admin')
);

But this is not a solution for me because i need to have forms in the admin AND in the default module

Please assist

Thank you very much
Johnny_D
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/15 05:37 By Johnny_D.
The administrator has disabled public write access.
 
#611
Re:Modular Application Configuration 5 Months, 2 Weeks ago Karma: 14
Even though you said you did it exactly as in my tutorials, I still would like to go from the beginning to troubleshoot this issue.
First lets start by checking that your class name in LoginForm.php is Admin_Form_LoginForm
alexanderrv
Administrator
Posts: 207
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 661
Content : 42
Web Links : 1
Content View Hits : 89993

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 37 guests online