[fw-general] Re: Pointer to ACL tutoials

2010-01-20 Thread prodigitalson
Unfortunately its older but ive found it tremendously helpful in a recent 1.9 project: http://codeutopia.net/blog/2009/02/18/zend_acl-part-3-creating-and-storing-dynamic-acls/ -- View this message in context: http://n4.nabble.com/Pointer-to-ACL-tutoials-tp1018515p1018538.html Sent from the

Re: [fw-general] Zend_Tool in 1.10

2009-12-18 Thread prodigitalson
Ralph Schindler-2 wrote: The alternate naming facilities are in place, the only problem is that nothing exposes them yet (this is a matter of finding the use case). The only use case that myself and Benjamin came up with was to let thing work with existing project... which brings me to

Re: [fw-general] Zend_Tool in 1.10

2009-12-17 Thread prodigitalson
# ability to persist alternate namings of things # ability to scan existing projects (lower priority, and harder to do) # ability to use alternate config type (moderate complexity, low priority) Its ironic that the 3 things i want/use most are not complete and have been ranked low in

Re: [fw-general] Experience with modular Doctrine structure

2009-12-09 Thread prodigitalson
I asked nearly the same question today, although mine was geard more towards setting up a single CLI entry point for building without having to create a Zend_Tool_Provider and all that mess... Heres the thread from the Doctrine user list:

Re: [fw-general] XMheL

2009-12-03 Thread prodigitalson
Daniel Latter wrote: Can anyone recommend any XML libs they use with thier ZF app? I need to create, parse, request/respond etc.. I normally use SimpleXML or DOMDocument. Ive also used XMLReader in the past for huge files, but never in conjunction with ZF. There is also Zend_Dom

Re: [fw-general] PHP + IIS + SMB + Zend Studios?

2009-11-20 Thread prodigitalson
This share is on the same network youre on (ie. not being routed over internet via VPN or something) correct? humansky wrote: On Nov 19, 2009, at 4:38 AM, Jason Webster wrote: On 18/11/2009 6:00 AM, Henry Umansky wrote: Hello all, This is not a question regarding ZF per se, I just

Re: [fw-general] PHP + IIS + SMB + Zend Studios?

2009-11-18 Thread prodigitalson
Thats pretty much how i do it - even for small stuff like one-off static pages. Its just easier in my work flow and that way i have a record of everything done and a continuous backup without having to trying to figure out if i need to revert to site_old_1, site_old_2 or site_old_3 :-) Never

Re: [fw-general] Zend_Layout and view rendering

2009-11-17 Thread prodigitalson
I usually use a placeholder/partial directly in the view script for things like this. In fact i never even thought to go abotu it in the way you are doing. so in my layout.phtml i might have something like: ?php echo $this-placeholder('sidebar'); ? and in my index.phtml i would have: ?php

Re: [fw-general] Why does Zend_Application_Module_Autoloader specifically look in /models/dbTable/?

2009-11-03 Thread prodigitalson
Artsemis wrote: So, why is it that Zend_Application_Module_Autoloader [b]specifically[/b] checks for DbTable classes in the /models/DbTable/ class? Unless I'm missing something, this specific check is redundant as the underscore in the class name indicates that DbTable is a subdirectory

[fw-general] Re: Re[fw-general] gistering view scope variables within global action helper

2009-11-03 Thread prodigitalson
I think you can do the following inside the action helper: $this-getActionController()-view-varname = 'myvalue'; jasonzfw wrote: Hi, In order to consolidate code used throughout each controller, I've created an action helper which performs commonplace tasks such as determining

Re: [fw-general] adding elemets to zend_form dynamically

2009-11-02 Thread prodigitalson
KimG wrote: gives 6 4 and 5. but how come zend doesn't see this extra value? Think about it... :-) When the form is posted youre getting raw data which is used to reconstruct the form so you have a form object to work with. Generally you do this using the same construction process

Re: [fw-general] adding elemets to zend_form dynamically

2009-11-02 Thread prodigitalson
KimG wrote: The user adds the extra row on the client using jscript and DOM. I would like to avoid having to take another round trip to the server for adding an extra row. Youre taking another trip. this is the process 1.) User visit page with form - in the controller/action the

Re: [fw-general] adding elemets to zend_form dynamically

2009-11-02 Thread prodigitalson
KimG wrote: The user adds the extra row on the client using jscript and DOM. I would like to avoid having to take another round trip to the server for adding an extra row. Youre not taking another trip. this is the process 1.) User visit page with form - in the controller/action

[fw-general] Zend_Tool_Framework Customization

2009-11-01 Thread prodigitalson
Can anyone elaborate on the .zf.ini properties that are respected or what one needs to do to set up custom profiles? Ultimately id like to change the project layout a bit. But for now ill settle for enabling certian things. For example these are the key things i want by default in every project:

[fw-general] Zend_Filter_Inflector Usage

2009-10-31 Thread prodigitalson
IS there a way to call Zend_Filter_Inflector::filter() with a simple string argument? I jsut want to change: thirdPartyMethodProxy TO third_party_method_proxy But i dont really want to always be passing an array argument to filter since there are no segments for replacement or different rules.

Re: [fw-general] Rowsets and empty()

2009-10-29 Thread prodigitalson
Hector Virgen wrote: Calling empty() on a rowset (Zend_Db_Table_Rowset) always returns false, even if the rowset has zero rows. Is there a way to make rowsets (or any iterator) work with empty()? Or is !count($rowset) the only way to test for an empty rowset? You need to use count() or

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread prodigitalson
I dont know if its even possible but id really like to see some general abstraction for ORM integration that these would be based on... Just to make it easier to integrate Propel for instance. Granted this would have to be pretty abstract given vendor differences - or even differences in major

Re: [fw-general] Creating CLI scripts utilizing ZF

2009-10-28 Thread prodigitalson
Tim Fountain wrote: * I've had to add my application's model/library directories to my local PHP CLI php.ini include_path, so that ZF can find my provider classes. This is not very portable. Is there a reason youre not setting this in the shell profile via ZEND_TOOL_INCLUDE_PATH or

Re: [fw-general] Creating CLI scripts utilizing ZF

2009-10-28 Thread prodigitalson
Do your CLI scripts require authentication or ACL support? If so, are you handling that as well? Mine do not. I ma only using ACL for user based operations through the webapp. My scripts only server to update certain tables in my DB with the latest information from the real data source or to

Re: [fw-general] Router Help?

2009-10-28 Thread prodigitalson
Try adding the module to your default paramters: $router-addRoute( 'index', new Zend_Controller_Router_Route( '/:city/:state/:keyword/', array('controller' = 'index', 'action' = 'index', 'module' =

Re: [fw-general] Problems using Zend_Dom

2009-10-28 Thread prodigitalson
Well i havent used Zend_Dom either but i assume its using SimpleXml for its underlying functionality. If this is indeed the case im thinking that maybe its the namespace... try removing the xml namespace prefix from your xpath string. I know simpleXML requires a fully expanded prefix when using

[fw-general] Creating CLI scripts utilizing ZF

2009-10-27 Thread prodigitalson
Im in the process of porting an existing application. Currently there are a number of shell scripts written in a number of scripting languages. Typically these can be considered owned by particular ZF modules within the web application in that they supply supportive functionality (like daily

Re: [fw-general] ZF Custom Router

2009-10-26 Thread prodigitalson
Just add another route.. but take care they are you add them in order (most general - most specific): $default = new Zend_Controller_Router_Route( ':lang/:controller/:action/*', array('controller'='index',

Re: [fw-general] application.ini adaptation for php 5.3

2009-10-26 Thread prodigitalson
I couldnt agree with you more Phillip. I was literally floored that an Enterprise framework would adopt INI as the config standard. INI is VERY hard to look at when youre talking complex configuration - which i think should be the default assumption. I could understand YAML simply because its

Re: [fw-general] false negative in unit testing whether plugin is loaded (?)

2009-10-26 Thread prodigitalson
Well first off you shouldnt really throw exceptions in your test... thats what the assertions are for really for example: function testAclPluginLoadsIfUserIsAuthenticated() { $this-loginDavid(); // tested independently and known to work $this-resetRequest()-resetResponse();

Re: [fw-general] calling controller action and getting json response from seperate controller

2009-10-22 Thread prodigitalson
tony stamp wrote: Thanks ant, that was almost exactly what i was aiming for. But i've been reading a lot about the downsides of the actionstack, and also feel that the process of geocoding the address should be a behaviour of the model itself. I will be using the google API to obtain

Re: [fw-general] Right way to use $_rowClass to class-map via Zend/MySQL?

2009-10-22 Thread prodigitalson
Im not sure what the reqs of a VO for AMF are but Zend_Table does do what youre describing essentially. The thing is Zend_Db_Table returns a Zend_Db_Table_Rowset from the fetch methods. which is what you are actually calling getAll() on. However getAll doesnt actuall have instantiated VO's yet

[fw-general] Zend Framework Deployment (Zend Application)

2009-07-27 Thread prodigitalson
Ive got a couple sites in dev with ZF and Im not using the majority of the framework. Just whatever Zend_Application makes use of plus a couple other packages. Ive got the whole framework externaled in svn right now, but i wouldnt dream of deploying the entire codebase if im not actively using

Re: [fw-general] Pre/Post Dispatch vs. Intercepting Filter Pattern?

2009-03-27 Thread prodigitalson
Rolando Espinoza La Fuente wrote: You might be looking for front controller plugins: http://devzone.zend.com/article/3372-Front-Controller-Plugins-in-Zend-Framework http://is.gd/eQhU Excellent. Just what i was looking for. Thanks! -- View this message in context:

[fw-general] Pre/Post Dispatch vs. Intercepting Filter Pattern?

2009-03-26 Thread prodigitalson
Im very new to ZF as I normally work with Symfony or my own custom rolled framework , i have basic question about control flow/dispatching. In both Symfony and my custom framework, the FrontController does preprocessing on the request, and bootstrapping and all that then executes an