Hello..
I am experimenting with Zend_Navigation to build breadcrumb for a web site. I created an XML file which lists the hierarchy of pages. Things are working fine for the most part except for pages that have dynamic parameters.
For example, there is a group page which has the URL " www.../groups/gid/1001". The id 1001 is dynamic so i...
I would like to add the id attribute to a label field in a Zend Form Element, but when setting 'id'=>'namelabel' in the decorator properties, it sets for='namelabel' in the label instead of adding the attribute of id='namelabel'
$name = new Zend_Form_Element_Text('name');
$name->setLabel('Business Name:');
$name->addDecorator('Label',ar...
There are two websites, one live one under development. I am porting a site to Zend Framework (for maintainability/integration purposes).
The original (live) site has seamless page loads - it will load, then update the content on the screen while keeping the background image, navigation etc on the page.
The ported site (development) "f...
I'm starting to learn Zend Framework and it reminds of when I dabbled with Rails a while back. Does knowledge of Rails help with better understanding Zend and the whole controllers, model, views architecture? Zend feels to me like new PHP, Rails-style.
There are a lot of people talking about the steep learning curve, so I was thinking ...
I've been happily integrating Zend Framework and Doctrine for the past week or two. I've just rebuilt the db after updating my docblock annotations and now i get this mysterious error:
Maximum execution time of 30 seconds exceeded in /Doctrine/DBAL/Connection.php on line 567
?!? Any clues?
...
If I want to gather some data from the database and use it in multiple actions of a controller, how would I do this?
Currently I just access the model and retrieve the data separately in each action (yes, I know this is inefficient... it's why I'm asking you all!):
public function indexAction()
{
$model = $this->_getStuffModel();
...
I'm new to zend so I'm not sure what's the best way to organize what I'm trying to do. I direct the user to a series of quizzes.
mysite.com/quiz1
mysite.com/quiz2
mysite.com/quiz3
mysite.com/quiz4
When the user answers the first quiz, he is forwarded to a page that tells him if his answer is correct, and on the same page he can choose ...
I'm using Zend_Auth with setCredentialTreatment to set the hash method and salt. I see all examples doing something like this, where the salt seems to be inserted as a text.
->setCredentialTreatment('SHA1(CONCAT(?,salt))'
but my salt is stored in the database. I could retrieve it first then use it in setCredentialTreatment but is t...
I want to add icons to my application. I've put the icons in public_html/images/icons/ and I want a DRY way to put them in my view-scripts. So I'd preferably not repeat..
<img src="<?php echo $this->baseUrl();?>/images/icons/plus-circle.png"</a>
..for every icon.
I'd prefer a simple object+function call.
What is a best practice for th...
I have to connect to lots of legacy databases and bring back the information for a single integrated page.
Will Zend let me do that "naturally" or is that something that can be done in Zend only as a "hack"?
Am I better off rolling my own for things like this kind of project and leaving frameworks out of the picture?
Thanks.
edit: m...
I'm using Pdo_Mssql adapter against a Sybase database and working around issues encountered. One pesky issue remaining is Zend_Db's instance on quoting BIT field values. When running the following for an insert:
$row = $this->createRow();
...
$row->MyBitField = $data['MyBitField'];
...
$row->save();
FreeTDS log output shows:
dbutil.c:...
Hi! I am learning about Zend Framework, I want to use NetBeans to start, but when I try to do this on NB: Tools -> Options -> PHP -> Zend -> Click on 'Register Provider' the next error appear on output window:
PHP Warning: include_once(NetBeansCommandsProvider.php): failed to open stream: No such file or directory in /usr/share/php/lib...
hi , i'm newbie in zend framework , i use zf command line tool to create new project like this : zf.bat create project zf_cms
after i run this command for first time everything ok and no-error occur but i expect project files exists on c:\program files\zend\apache2\htdocs but there is noting .
after that when i rerun command it says ...
When you log into the Magento Admin Panel, you're only shown menu items that your role allows you to. Where in the Core does Magento check the user's role to determine which Navigation items should be shown? (I'm not interested in the _isAllowed method on Admin controllers, I'm interested in the Navigation rendering).
Also, as along a...
This is my first time using Zend Framework for an application and i don't know if I completely have by head around Models.
I have four tables: shopping_cart, product, product_unit, distributor.
shopping cart has an cart_id, product_id, unit_id and dist_id (shopping cart joins on the other tables with their corresponding id).
Before Zen...
I'm using ZendStudio which creates an MVC structure for projects.
To create a form, I just create a PHP class and extend Zend_Form, but where is the right location to have this form saved.
I've seen someone put it in
application/forms
with
application/models
application/views
application/controllers
Is this a best practice or ...
I'm familiarizing myself with Zend and I'm using Twitter as an example to understand how controllers work.
Twitter has different registration and login pages
https://twitter.com/login
https://twitter.com/signup
Would these be 2 different controllers?
Is there a way to make them 2 actions of the same controller while still have them...
Request:
Please show me a working example of how to retrieve(in an array?) returned rows from a Stored Procedure on a MSSQL server using Zend Framework.
Explanation:
I can't find anything in the ZF docs about how to execute SP on MSSQL servers. I'm aware that it is possible via plain PHP. However, since my project uses ZF, I'd like not ...
I have the following code, which works fine on live site, but not on localhost.
$status = $this->getRequest()->getQuery('status');
I have a URL like this:
http://localhost:888//questions/ask?status=10
I printed the value of status, which is always nil. I am new to Zend framework and could not find a solution to this on net, looks s...
I'm starting to familiarize myself with using the module-based architecture for zend framework projects. My real reason behind being interested in the module architecture is to be able to take a module from one project and just drop it into another project. Maybe I'm not getting it right..
But what I'm noticing right off the bat is that...