Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1...345678910
TOPIC: Modular application
#255
Modular application 2 Years, 1 Month ago Karma: 0
thank you soooooooo much, That is great tutorial,
I loved it
I have question I cant understand how did the application call the (login page) authentication/login by default why it is not going to index/index as what its supposed ? I dont know if I missed any thing here please any ideas
ghudeihed
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#256
Modular application 2 Years, 1 Month ago Karma: 0
Ooops I see ,
its in the AccessCheck.php
that is why it goes to the login directly
thanks any way
ghudeihed
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#336
Re:Modular application 2 Years ago Karma: 0
Hello!
I've one problem with modular structure.
I've direcotry tree like this: default/models/Entries.php.
Everything worked fine until I've added a line into my model:
protected $_rowClass=''Entry;
So I'm getting error that Zend can't find Entry.php. It's not searching in default/models/ folder.
I've fixed it by putting entry model into library/entry/db/table/row folder and chaging Entries.php like this:
protected $_rowClass = 'Entry_Db_Table_Row_Entry';
With this fix it's working; maybe you know how to use it in first way?
P.S. As I understand I should point zend to search for models in my custom directory?
Thank you!
01Kuzma
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#662
Re:Modular application 1 Year, 8 Months ago Karma: 0
I'm following the tutorials, and run into a little problem - an error when trying to create an action in zend tool.
I use Netbeans 6.9 Beta and ZF 1.10.4
When I type in "run command": create action actionname rejestracja 1 default
I get:
An Error Has Occurred
Controller Rejestracja was not found.

I cannot create actions, but I can create modules and controllers.
Everything is working ok, when I create action manually, or use actions created befor "modularisation".
Did I miss something in the tutorials, or is it somenthing else?
bart
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#663
Re:Modular application 1 Year, 8 Months ago Karma: 16
@01Kuzma
Sorry, I keep on not noticing posts recently. Thanks to bart for posting here otherwise I would never see this. Please do nudge me if I do not reply fast enough!!
I have not played with it myself but theory goes that you add a resourcetype to your autoloader. First three lines you should already have which create default namespace. I am not too sure you can have a blank resource type although you could try. I will use "row" as a resource type name.
Code:


$modelLoader = new Zend_Application_Module_Autoloader(array(
                        'namespace' => '',
                        'basePath' => APPLICATION_PATH.'/modules/default'));
$modelLoader->addResourceType('row', 'library/entry/db/table/row' 'Row');


zendframework.com/manual/en/zend.loader....loader-resource.html for more info
Let me know if that was not helpful enough.


@bart command looks OK. I would check your case. You are asking for rej... but its responding with Rej.... . I also assume you created the controller with zend tool as well.
alexanderrv
Administrator
Posts: 279
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.
 
#665
Re:Modular application 1 Year, 8 Months ago Karma: 0
I checked again, and action is not being created only in controllers created before "modularisation", if I create a new controller actions are created ok in this new controller. Font case was only my mistake while writing previous post.
bart
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1...345678910
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1388
Content : 42
Web Links : 1
Content View Hits : 190530

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 34 guests online