zend-framework

View overloading in Zend Framework

Let's say I have 2 controllers, content and news: class ContentController extends Zend_Controller_Action { } and class NewsController extends ContentController { } If there are no views found for the news controller, I want Zend to use the scripts path of its parent controller. How can I achieve this without having to route to its p...

Zend_form rendering problem

Hi, I need a zend_form which will contain mostly checkboxes. I need to group them and also display a title for each group. e.g. Heading 1 Label1 Check1 Label2 Check2 Label3 Check3 Heading 2 Label4 Check4 Label5 Check5 Label6 Check6 First I don't know how to display the title ("headings")! Is there a way that you can add a label ...

How to check if a controller exists using Zend Framework

Hi all, I'm writing a plugin for my Zend Framework app and want to do a quick check to see if a controller exists. Can anyone point me in the right direction? ...

zend relationships with select

I am new to zend. I have been asked to redevelop a website that was once written in plain PHP and put it into the zend framework. I am having a lot of trouble with database relationships, I cant seem to get my head round defining and querying relationships. I would like to find a Category. From that Category I would like to be able to ...

Calculation error - need help!

Hello, I need to ask someone for a big favor. What you see in the code below are my calculations for train movement for a train game I am writing. There is a problem with the calculations, but I just can't seem to find it. The problem seems to be located in this code: if($trainRow['direction'] == '-') { $trackUnitCount = ...

Zend Framework: Implement Zend_Acl_Resources

how should i implement Zend_Acl_Resources? do i have something like: $acl->isAllowed() in controller actions? i somehow think there maybe a better way ... but cant think of it. ...

How to quickly obtain PHP localised ordinals using Zend_Locale

Hi, I need to localise ordinal values i.e 1st, 2nd, 3rd etc.. into various european languages There doesn't seem to be an option for doing this with Zend_Locale. Anyone know of a way of doing this in 5.2.x without the intl pecl extension? To be clear, 5.3 is not an option and installing an additional extension may not be either. Anyone...

Magento tutorial create a module for the backand (admin page)

Does anyone know a good tutorial for this subject. I want to create a module (extension) with more than one page. The extension must contain one overview page and a form to create a item. ...

ISAPI ZEND url rewrite adding extra "/index.php/" into url

We recently reinstalled our web site on our server, the sys admin says it is an exact rebuild, and it indeed looks to me that it is, but there is something different going on. I did not originally develop the site, and those who did are no longer available. urls for the admin site are now //admin.site.com/index.php/schedules and used...

How would I structure this in Zend Framework?

I'm coming from CodeIgniter, and the terminology overlap between it and other MVC frameworks (particularly Zend) is giving me a mental block of some kind. I want my users to visit http://mysite.com/do/this. I understand that "do" is the Controller, and "this" is a function (well, method) within that Controller. My site will have commo...

Zend Framework - Dynamically adding "code modules" or classes

I'm building a Zend-based Web app that will permit third-party extensions. Essentially, this application's database will have a generic "content store." Extensions are added to render different pieces of content in different ways. Think of a rich mail store: When the user asks for a "Calendar" item, I instantiate a Calendar class (or s...

Zend Framework: Autoloading Modules

in Zend Framework Quickstart, protected function _initAutoload() { $autoloader = new Zend_Application_Module_Autoloader(array( 'namespace' => 'Default_', 'basePath' => dirname(__FILE__), )); return $autoloader; } i thought if the namespace was 'Default', i dont need to specify it? eg. their class also ha...

How to change the controller class name in Zend Framework

For example, we have index controller: class IndexController{ ... How to make e.g. class Index_Controller{ ... work? ...

Zend_Auth: not working, getDbSelect() is empty

my authentication fails and when i try to getDbSelect() i get nothing ... what did i do wrong? class AuthController extends Zend_Controller_Action { protected $auth; public function init() { $db = $this->getInvokeArg("bootstrap")->getResource("db"); $this->auth = new Zend_Auth_Adapter_DbTable($db, 'users',...

Zend framework installation

Hai, After inclunde the library in php.ini .I try to create a project in dos window by typing like C:\wamp\www\Zend\bin>zf.bat create project quickstart i got a error message:" '"php.exe"' is not recognized as an internal or external command, operable program or batch file." this is the error message please help me??how it was occ...

Zend_Db_Table_Abstract and Default Scope

Is there a way to add a default scope to a Zend_Db_Table_Abstract based model. I want to be able to query a model with some conditions taken as default. e.g. deleted = false order name asc ...

Zend_Db _Table_Abstract and Left Joins

Is there a way to do a left join within a Zend_Db_Table_Abstract based model. I would like to retrieve a record with a left join to another table so that I am able to query all the fields as if they were the same table. Any examples would be useful Thanks guys ...

Zend_Layout doesn't appear to be encoding content as UTF-8

I am using the MVC functionality in the Zend Framework 1.9, and it appears that Zend_Layout is not encoding the view content using UTF-8, despite this being set in the heading. The layout script is shown below. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <...

Zend Framework 1.9: How to use Autoloading without MVC

how do i auto load zend framework classes when i am not using the MVC framework? ...

How to flush output in ZF

I have a controller that, among other things, sends emails. I need to echo a message to the user before the email sending starts (otherwise it looks like the screen is stuck). So, how do I echo a message which is set in the start of a controller, before I reach the end of the controller, or, should I think in another direction all toget...