[fw-general] zfmodules

2014-07-14 Thread tonystamp
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. --

[fw-general] zf2 - populating fieldset/collection

2013-09-02 Thread tonystamp
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 (){

[fw-general] Redirecting all requests to one route

2013-08-07 Thread tonystamp
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

[fw-general] using config array with closure to build where clauses

2013-07-07 Thread tonystamp
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){

[fw-general] zf2 - FlashMessenger not rendering messages

2013-06-24 Thread tonystamp
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

[fw-general] Re: zf2 - FlashMessenger not rendering messages

2013-06-24 Thread tonystamp
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.

[fw-general] Re: zf2 - one/many-to-many relationships

2013-05-21 Thread tonystamp
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

[fw-general] Re: zf2 - one/many-to-many relationships

2013-05-21 Thread tonystamp
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

[fw-general] Re: zf2 - one/many-to-many relationships

2013-05-19 Thread tonystamp
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

[fw-general] Re: zf2 - one/many-to-many relationships

2013-05-17 Thread tonystamp
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:

[fw-general] Re: zf2 - one/many-to-many relationships

2013-05-11 Thread tonystamp
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

[fw-general] zf2 - one/many-to-many relationships

2013-05-03 Thread tonystamp
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

[fw-general] unit testing db - exception- PHPUnit_Extensions_Database_Dataset_DefaultTableIterator

2012-10-29 Thread tonystamp
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

[fw-general] Re: Zend Framework Quickstart - not finding layout

2012-05-09 Thread tonystamp
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

[fw-general] Re: Zend Framework Quickstart - not finding layout

2012-05-09 Thread tonystamp
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:

[fw-general] Zend Framework Quickstart - not finding layout

2012-05-08 Thread tonystamp
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

[fw-general] Re: CacheManager resource for static page caching - protect cache?

2011-05-16 Thread tonystamp
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

[fw-general] Re: CacheManager resource for static page caching - protect cache?

2011-05-15 Thread tonystamp
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

[fw-general] CacheManager resource for static page caching - protect cache?

2011-05-13 Thread tonystamp
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

[fw-general] Validating file upload with Zend_Validate_Db_NoRecordExists

2011-05-06 Thread tonystamp
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' =

[fw-general] Displaying data in table with select element in each row - how?

2011-04-18 Thread tonystamp
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

[fw-general] Fatal error: getDom on a non-object (zend gdata youtube component)

2011-03-20 Thread tonystamp
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.

[fw-general] Re: Testing ZF models with PHPUnit

2011-03-12 Thread tonystamp
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:

[fw-general] Testing ZF models with PHPUnit

2011-03-11 Thread tonystamp
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

[fw-general] Zend_Gdata_YouTube_VideoEntry - iframe link?

2011-03-08 Thread tonystamp
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:

[fw-general] Service Layer and form validation/view interaction

2011-03-06 Thread tonystamp
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

[fw-general] Comparing the difference between two timestamps using Zend_Date

2011-03-02 Thread tonystamp
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

[fw-general] Creating edit/delete forms when displaying tabular data - structure in controller?

2011-03-02 Thread tonystamp
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

[fw-general] Re: Creating edit/delete forms when displaying tabular data - structure in controller?

2011-03-02 Thread tonystamp
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

[fw-general] Creating tables in template using livedocx

2010-08-02 Thread tonystamp
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

[fw-general] Re: Zend_Navigation - submenu item pointing to other menu renders both submenus

2010-07-26 Thread tonystamp
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

[fw-general] strange form behaviour when using recpatcha and submitting via ajax

2010-06-23 Thread tonystamp
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

[fw-general] Changing layout/navigation for one method in controller

2010-06-01 Thread tonystamp
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

[fw-general] Zend_Navigation submenu only renders if link is defined in config

2010-05-19 Thread tonystamp
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) {

[fw-general] Re: Zend_Navigation submenu only renders if link is defined in config

2010-05-19 Thread tonystamp
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

[fw-general] Re: add new virtual host in zend server

2010-05-16 Thread tonystamp
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

[fw-general] populating form from model

2010-05-16 Thread tonystamp
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

[fw-general] Re: Display Group -- Help

2010-04-27 Thread tonystamp
You might want to set a legend for the display group of elements: $form-addDisplayGroup(array('inputID1', 'inputID2', 'inputID3'), 'displayGroupName',

[fw-general] Autloading classes from within library path - not found

2010-04-23 Thread tonystamp
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_

[fw-general] Re: Rendering nested submenu items from XML file

2010-04-08 Thread tonystamp
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

[fw-general] Rendering nested submenu items from XML file

2010-04-07 Thread tonystamp
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

[fw-general] Re: Using url view helper with named custom route - exception id not specified

2010-03-23 Thread tonystamp
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.

[fw-general] Where to place zend view subclass

2010-03-23 Thread tonystamp
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

[fw-general] Re: Would anyone want Zend_VersionControl_Subversion?

2010-03-22 Thread tonystamp
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.

[fw-general] Re: Getting resources in bootstrap

2010-03-22 Thread tonystamp
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:

[fw-general] Re: Zend_Nav / acl for individual links

2010-03-21 Thread tonystamp
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-

[fw-general] Zend_Nav / acl for individual links

2010-03-15 Thread tonystamp
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

[fw-general] Re: should directory structure indicate model relationship?

2010-03-08 Thread tonystamp
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.

[fw-general] should directory structure indicate model relationship?

2010-03-05 Thread tonystamp
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

[fw-general] Re: how to implement WYSIWYG editor on zend framework

2010-03-02 Thread tonystamp
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.

[fw-general] custom zend_navigation page not showing url

2010-02-25 Thread tonystamp
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; }

[fw-general] Re: bootstrap include path confusion

2010-02-15 Thread tonystamp
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:

[fw-general] Re: bootstrap include path confusion

2010-02-12 Thread tonystamp
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:

[fw-general] bootstrap include path confusion

2010-02-09 Thread tonystamp
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(

[fw-general] sending mail to multiple recipients return code for bad addresses

2009-12-15 Thread tonystamp
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

Re: [fw-general] observe controller action

2009-12-02 Thread tonystamp
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

[fw-general] observe controller action

2009-12-01 Thread 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

Re: [fw-general] Adding onload event to body on one page only

2009-11-27 Thread tonystamp
=. 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