What happened to the website zfmodules (was it modules.zendframework.com)?
Doesn't seem to be online anymore.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zfmodules-tp4662200.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
Hi, i'm having some trouble populating my fieldset/collection from an object.
Simply, i have an Animal object that has an array of 1-N breed objects.
Animal::getBreeding returns this array.
The form AnimalBreeding defines the following:
/ public function init (){
Hey all, i'm wondering if there's a way to redirect all requests to a single
route?
I am working on a site and want to upload the work-in-progress page, and
have all requests sent to that route that displays that page.
When i tried editing my .htaccess to send all requests to that page it was
I am looking for some help in understanding how to use the array/closure type
of configuration that is used in zf2 to manage the construction of simple
where queries in a mapper. It's much easier to explain with an example:
/protected function buildQuery(\Zend\Db\Sql\Select $select, $params){
I am trying to use the flashmessenger controller/view plugin but i am not
getting any output at all.
In my controller i have:
LocationController:
/
public function addAction(){
/* snip */
$this-flashMessenger()-addMessage('New location successfully
Agree. So does the redirect controller plugin not constitute another request?
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zf2-FlashMessenger-not-rendering-messages-tp4660429p4660448.html
Sent from the Zend Framework mailing list archive at Nabble.com.
So is nobody developing applications like this anymore? If not i'd love to
know the better way that everyone else is doing it.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zf2-one-many-to-many-relationships-tp4659910p4660085.html
Sent from the Zend
ok, so you have one mapper that communicates with two seperate tables (even
if the second table just contains, for instance, 2 columns (foreign keys))?
So i'm assuming that is two seperate TableGateway instances? Or you just
have an adapter with custom sql queries?
--
View this message in
Hi, i'm hesitant about having a mapper write a query to two seperate tables.
Although i can see why it would be tempting to do so. For instance in a
many-to-many relationship, the joining table is only likely to contain two
columns (both being foreign keys, pointing to separate tables), and having
yes, a non-doctrine, zf only solution
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zf2-one-many-to-many-relationships-tp4659910p4660062.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: fw-general@lists.zend.com
Info:
Anyone got any pointers on the best way to achieve the above? Not many
tutorials out there on the subject for zf2.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zf2-one-many-to-many-relationships-tp4659910p465.html
Sent from the Zend Framework
What is the best way of performing one/many to many relationships using zf2?
For instance, i have a UserMapper that consumes a UserTableGateway to get
the data from the user table. I also have a PostsMapper that consumes a
PostTableGateway to get data from the posts table.
When i load a user, i
Hi, i'm having some problems trying to run my unit tests on Zend Studio 8
with phpunit and zf 1.11.
The test is just a simple assertion to confirm the environment is set up
correctly, but i am getting the following error:
/
ZendPHPUnitUserErrorException: Argument 1 passed to
Thanks for the tip. I added that to my application.ini but am still getting
the same error
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Zend-Framework-Quickstart-not-finding-layout-tp4617382p4620298.html
Sent from the Zend Framework mailing list archive
ok, the problem is fixed although i'm not sure what it was to begin with. I
deleted the entries from my ini, deleted the layout directory and done the
command again from zend tool, and this time it's using the layout. Strange,
but fixed!
--
View this message in context:
Hi, just working my way through the quickstart guide of the zend framework,
and am having a strange problem with the layout. Although i have followed
the guide, i am getting an exception:
/script 'layout.phtml' not found in path
(C:/workspace/domain/application/views\scripts/)/
I only have a
I'm using the application resource cache manager which uses Capture for it's
frontend, so the whole page is cached by default, and if a hit is found in
the cache, the majority of the zf stack is bypassed and the cached page is
served instead. I'm caching front end pages as they have database
Thanks for the reply.
I would prefer to have the cache outside/above the document root, but is the
.htaccess able to point to files outside of this?
RewriteCond %{DOCUMENT_ROOT}/cached/index.html -f
eg:
RewriteCond %{REQUEST_METHOD} GET
RewriteCond
Hi, i'm using the default cache manager in my application ini as outlined in
the documentation, which i believe uses Capture for it's frontend and Static
for the back end. Here is the relevant parts from application.ini :
resources.cachemanager.page.backend.options.public_dir = APPLICATION_PATH
Hi, i have a form containing a Zend_Form_Element_File element, and i am
attempting to validate that the filename of the submitted file is not
present in the database before uploading the file. I am using the following:
$element-addValidator(new Zend_Validate_Db_NoRecordExists(array('table' =
Hi
I'm scratching my head on how to create a table with a checkbox at the end
of each row, with only one submit button at the bottom of the table. The use
case is a table of data with a checkbox for a mass operation (delete) on
multiple rows. But i can't seem to figure out how to have the whole
I am getting this error when attempting to edit a video entry's metadata:
Fatal error: Call to a member function getDOM() on a non-object in
C:\workspace\domain\library\Zend\Gdata\App\FeedEntryParent.php on line 226
I am connecting using an authenticated login, and the edit link is obtained.
Thanks for the pointers. I prefer the second one too, but was wondering if
that would be best placed in the test bootstrap, or should it placed in
every individual tests set-up, in case they are run manually (bypassing the
unit test bootstrap)?
--
View this message in context:
Hi, finally managed to get phpunit configured all nice and happy with that,
but i'm having some trouble autoloading my models into my test scripts. I
think the issue is that i am calling my models with their namespace prefix
(new Domain_Model_Something) whereas the test scripts have no idea of the
Hi, does the Zend_Gdata_YouTube_VideoEntry provide a link for the newer
iframe tag? The only method i can see on the api at the moment is
getFlashPlayerUrl.
--
View this message in context:
I am slipping a service layer into my application and have come across my
first hurdle - how does the service layer interact with forms? I'm assuming
a single service can be responsible for creating more than one type of form?
Is it the responsibility of the service layer to validate the form, and
Hello
I have directories created and named after a unix timestamp, and a lot of
these end up empty and are purged on a request. If the timestamp is older
than 5 minutes, than it is safe to delete the directory.
The problem i am having is not in determining if the directory timestamp is
earlier
Hello, i have an architectural type question.
When displaying tabular data, say a list of users, it is established that
anything that manipulates data should be made via POST. So to view an
individual user's details, a GET link would be displayed, but to edit or
delete that row in the database, a
hi, thanks for the reply. I am less concerned with accessing a request via
get and/or post, and more interested in how the model should be represented
along with it's own form to edit or delete the row represented by the model.
For instance, say a recordset of 3 users is returned, with the
Hello
I am using zend_service_livedocx and all is going well, but now i am having
trouble rendering an array in the document.
When i pass the array to the template, the document displays the value as
array. I have
http://www.phplivedocx.org/articles/pdf-generation-with-zend-framework/ read
Has no-one else had this problem?
I'm tempted to report it as a bug, but would prefer some feedback first.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Zend-Navigation-submenu-item-pointing-to-other-menu-renders-both-submenus-tp2301072p2302359.html
Sent
Hello
I'm having some strange behaviour with a form containing 3 simple elements
(input box, recaptcha element and submit button) that is submitted via an
ajax call. If the values of either the input box or the recaptcha are wrong
the form is briefly displayed with the error messages before the
Hello,
I have a controller that handles subscriptions to articles. Add/edit/delete
are publicly viewable actions, but there is a listSubscribers action that is
called from the admin side of the site, and is not accessible to the public.
At the moment i simply change the layout and navigation
Hello,
I have my site navigation defined in an xml file. I am rendering the page
submenu from the config as follows:
layout.phmtl
$rootPage = $this-navigation()-getContainer()-getPages();
foreach($rootPage as $page) {
edit: just found the visible parameter in the manual, but setting visible to
false does not keep it hidden:
edit
labelEdit Item/label
uri/item-manager/edit/uri
controlleritem-manager/controller
actionedit/action
visiblefalse/visible
/edit
Is it good
i'd just like to add, you need to uncomment the line in http.conf to include
httpd-vhosts.conf.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/add-new-virtual-host-in-zend-server-tp2217695p2218375.html
Sent from the Zend Framework mailing list archive at
Hello
I'm wondering about the best practice for populating forms with model data.
I've been creating my forms with an optional array parameter in the
constructor for the model to be passed in to the form class. If the model is
present, the form is loaded with the models data. This is done from
You might want to set a legend for the display group of elements:
$form-addDisplayGroup(array('inputID1', 'inputID2', 'inputID3'),
'displayGroupName',
Hi,
I have the following (standard) directory structure:
site/application (contains models, forms, view directories etc)
site/library
site/library/Zend
site/library/MyLib
..configured in my application.ini as:
includePaths.library = APPLICATION_PATH /../library
autoloaderNamespaces[] = MyLib_
After reading the api it said that the submenu method is simply a proxy the
renderMenu method with certain variables set. For some reason the api does
not allow you to set properties on the call to the submenu method, which i
would have thought would be forwarded to the renderMenu method. This
Hello
i have an xml config file that defines the navigational elements to be
created using zend_navigation.
This has worked fine up until now, where i need to add a submenu to the
submenu, so the submenu is two levels deep.
Currently, it will only render the first submenu level.
Xml section
Thanks for the explanation :)
--
View this message in context:
http://n4.nabble.com/Using-url-view-helper-with-named-custom-route-exception-id-not-specified-tp1678215p1678916.html
Sent from the Zend Framework mailing list archive at Nabble.com.
This may sound a bit simples (chkk) but i can't figure out where (using the
conventional zend directory structure) i should place my subclass of zend
view, and what prefix it should have? I'm also assuming i'd need to set
something in the bootstrap for the viewrenderer to always load my instance
Sounds promising!
--
View this message in context:
http://n4.nabble.com/Would-anyone-want-Zend-VersionControl-Subversion-tp1598693p1678016.html
Sent from the Zend Framework mailing list archive at Nabble.com.
If you need to access another resource in the bootstrap, you first ensure
that the method loading the required resource has been run, then simply
fetch it:
$this-bootstrap('cachemanager');
$cache = $this-getResource('cachemanager');
--
View this message in context:
Hi,
Well i ended up writing a simple view helper that i have been using in my
views like:
?php if($this-canRoleViewActionLink('/articles/edit')): ?
td
?php echo $this-
Hi
I have set up a site using zend_nav from an xml config file. In the admin
area is a table of articles, with links to edit or delete each article.
Although zend_nav will not display items that have a role greater than the
logged in users role on the main menu, i was wondering if it's possbile
Great point, thanks :)
--
View this message in context:
http://n4.nabble.com/should-directory-structure-indicate-model-relationship-tp1579414p1580035.html
Sent from the Zend Framework mailing list archive at Nabble.com.
Hi, got a bit of a best practice question here.
I have a vacancy model which represents jobs being advertised on the site.
When a user applies to a vacancy an application model is created for each
application to the job. Therefore a 1:M relationship between vacancies and
applications.
Should i
Do you have a link to that tutorial Jurian.
Thanks.
--
View this message in context:
http://n4.nabble.com/how-to-implement-WYSIWYG-editor-on-zend-framework-tp1569326p1574916.html
Sent from the Zend Framework mailing list archive at Nabble.com.
Hi, i have the following simple class that just adds some extra text to the
label:
class My_Model_Menu_Page extends Zend_Navigation_Page_Mvc
{
public function getLabel(){
return 0 . $this-getOrder() . . $this-_label;
}
thanks matthew, that worked perfectly. I had a feeling it was namespace
oriented. Is there any way to achieve that via the bootstrap - as i now have
one namespace in the bootstrap.php (_initAutoload method) and one in the
application.ini?
--
View this message in context:
Thanks for the reply.
Had a look at a simple project created with Zend_Tool. Seems to be very
similar to what i have, except i have an extra library of code created under
application:
application/library/Zend
application/library/MyRepo
I have this in the application.ini already:
heya guys, been attempting to migrate a zf app to use zend bootstrap but am
hitting some walls, and would appreciate some pointers.
In my index.php i have the following:
$appRootDir = dirname(dirname(__FILE__));
set_include_path(implode(PATH_SEPARATOR, array(
Hello
I have a subscription area of a site where users sign up to notified of new
content. I have developed a simple system using zend_mail, but have 2
questions:
1.) Is the best way of sending a single email to every subscriber to add
their address to the BCC list? Are there any foreseeable
Thanks for the reply, but could you elaborate a bit more- what do you mean by
consume?
Diego Potapczuk wrote:
You could consume the subscription Service that notify the subscribers in
the newsController::approveAction.
::: Diego Potapczuk
On Tue, Dec 1, 2009 at 8:31 PM, tonystamp
I have an action in the administration section of a site, where an article is
basically approved and is published to the site
(newsController::approveAction). I also have a list of email subscribers,
and was wondering if there is any way of observing the
newsController::approveAction so that
=.
Regards, Jurian
--
Jurian Sluiman
CTO Soflomo V.O.F.
http://soflomo.com
On Friday 27 Nov 2009 21:45:45 tonystamp wrote:
Hello
I am using a layout for about 30 pages, but one page which has a google
map
embedded in it requires that i add two events to the body tag of the
document
58 matches
Mail list logo