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
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
# 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
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:
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
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
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
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
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
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
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
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
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
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:
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.
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
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
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
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
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' =
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
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
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',
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
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();
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
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
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
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:
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
30 matches
Mail list logo