I'm trying to match URLs without a trailing slash to one router and want those with the trailing slash behave the normal way. I've tried:
$route = new Zend_Controller_Router_Route(
':redirectid',
array(
'redirectid' => false,
'controller' => 'redirect',
'action' => 'redirect'
),
array('redire...
Dear All,
this is a rephrasing of a question I posted yesterday. I got an answer but an incomplete one. I studied a bit and can now reformulate the question in a clear, simple way.
I create a project with Zend Framework. I get inside and I create a controller. When I try to access thr view of this new controller, it does not work. I g...
I wouldn't use most of the classes from Zend Framework, that's why I'm looking for the thinnest possible ZF configuration.
Is there a better way of finding what I really need other than deleting the whole library/Zend folder, then putting back files based on the error messages that I receive?
...
My question needs a bit of setup, so please bear with me:
I became a convert to using View Helpers for getting data from a model rather than sprinkling it all over the controllers (hat tip to Eric Clemmons). It's much more reusable and flexible there. I just love it!
What I usually do, is lay out the template in the index.phtml, and th...
I'm trying to setup Zend Framework and Doctrine.
There is this previous discussion with ZF 1.8
http://stackoverflow.com/questions/973259/integrate-doctrine-with-zend-framework-1-8-app
That discussion doesn't take into account the AutoLoader / Bootstrap System.
If I generate an application skeleton with ./zh.sh how would I go about ...
I have this query:
SELECT g.title, g.asin, g.platform_id, r.rank
FROM games g
INNER JOIN ranks r ON ( g.id = r.game_id )
ORDER BY r.rank DESC
LIMIT 5`
Now, this is my JOIN using Zend_Db_Select but it gives me array error
$query = $this->select();
$query->from(array('g' => 'games'), array());
$query->j...
Hello everybody,
Below is a working example of my OpenId implementation. I use hyves.nl as the OpenId provider but this also works with me.yahoo.com and probably other OpenId providers as well (but not Google).
So far so good. But now I want to fetch the nickname and/or fullname from my hyves profile. But when I set nickname and/or ful...
Hi friends, should make a dynamic menu.
I have to do with Zend_Navigator, but I can not find good examples on the web.
Could you give me one?
...
Hi,
I have a controller that passes input from a form into a model class to perform validation.
If the validation is successful I want to allow the flow to continue and render the default view associated with the controller.
My issue is that if validation is not successful then I want the model to pass back validation error messages an...
Hi there,
While working on the login part of an application, I find myself running into an issue:
My model is based on Active Record, by extending Zend_Db_Table_Row objects. Whenever I have to deal with a user, I'd want to do this through the User object (being an extended table row). However, Zend_Auth_Adapter_DbTable::getResultRowO...
I have a problem with a query that works in phpmyadmin but not with Zend_db. You can read about the query in http://stackoverflow.com/questions/1268376/sql-statement-with-several-joins
I have these tables
Post
ID
entry
Category
ID
name
CategoryBinding
ID
postID
categoryID
And this is my php code:
clas...
Dear All,
I am moving my first steps with the Zend Framework. I have it on my Linux partition and it works fine. Now, I want to use it on Vista. I have downloaded and installed Zend Server CE. Seems to work.
However, when I try to edit some file inside my Apache htdocs directory, surprise: I have no permissions! I have found out that...
Hello,
I just started my adventure with zend framework 1.9.1 but I encountered few issues. I would like to remove default routes to avoid displaying the same content on different URLs - to achive it I wrote custom function in bootstraper
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initM...
Hello,
I have a MySql table whose primary key is a 64bit BigInt
I'm using Zend_Db (Zend Framework 1.8.4) to insert a new row, then call lastInsertId() to retreive the new row's id, what I get back is a super large number such as 18446744072633694008, and this number changes from time to time, but always this large. the auto increment ...
Hi All. I am creating a web site using php, mysql and zend framework.
When I try to run any sql query, page generation jumps to around 0.5 seconds. That's too high. If i turn of sql, page generation is 0.001.
The amount of queries I run, doesn't really affect the page generation time (1-10 queries tested). Stays at 0.5 seconds
I can't f...
Looking for some advice \ improvements on the structure of my application
user logs in and is presented with a welcome message and a menu of options
each option points to the same controller e.g OptionController but with different actions
/option/abc
/option/def
OptionController.php
{
abcAction()
defAction()
}
the reason why I have...
I'm currently building a web application (utilizing Zend Framework) and have gotten some of the basic HTTP status codes down, such as:
404 on missing controller/action
500 on server exception
3xx returned by Apache
At the moment I have just implemented some basic ACL checking that the user is authorized to access a certain resource. ...
I always come to the same problem when implementing new data object that some web site will use. It seem to me naturaly to fill the object ...
object: news
news subobjects: mediaItems, user, category
I usualy implement lazy loading of associated objects (lists of objects) and also have a static method to fill the news object data, med...
I am currently working on a pretty large application which contains a lot of forms.
Up to this moment, I have always been writing my forms by hand and writing my own validation logic, but I have decided it was about time I started using Zend_Form and it's built-in validation routines.
However, I keep stumbling upon more and more proble...
An action within a controller generates the next id from the database and displays it on screen as reference. How can I prevent the action being called again if the user clicks refresh.
...