zend-framework

Can you recommend a good book on zend framework.

Can anyone recommend a good book on zend framework. I got ZF up and running but I want a more complete reference with maybe something that talks about each module more in depth. Is there such a book. There seems to be real slim pickings on ZF books ...

Using Zend Framework and setting a Zend_Form_Element form field to be required, how do I change the validator used to ensure that the element is not blank

Hi, When using a Zend_Form, the only way to validate that a input is not left blank is to do $element->setRequired(true); If this is not set and the element is blank, it appears to me that validation is not run on the element. If I do use setRequired(), the element is automatically given the standard NotEmpty validator. The thing is...

Failed to load Zend/Loader.php. Trying to work out why?

I have inherited a client site which crashes every 3 or 4 days. It is built using the zend-framework with which I have no knowledge. The following code: <?php // Make sure classes are in the include path. ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . 'lib' . PATH_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'classes')...

Smarty integration into the Code Igniter framework.

A little background: I've been looking at a few php framework recently and it came down to 2 framework. The zend framework or Code Igniter. I prefer CI because if it's simple design. It's very barebone and just kept it simple. But the thing I didn't like is the weak template system. The template system is important for me because I wil...

ASP.NET MVC versus the Zeitgeist

ASP.NET MVC seems to be making a pretty big entrance. Can anyone summarise how its MVC implementation stacks up against popular MVC frameworks for other languages? (I'm thinking specifically of Rails and Zend Framework, though there are obviously lots.) Observations on learning curve, common terminology, ease of use and feelgood facto...

How do I use PHPUnit with Zend Framework?

I would like to know how to write PHPUnit tests with Zend_Test and in general with PHP. ...

Zend Framework or CakePHP?

My group is going to attempt to build a new CMS from scratch, designed to serve the needs of our organization. It should be noted that none of us have any formal programming education, but we've picked up this and that from developing different websites, among others the one our community uses now. We've decided to program the new CMS in...

Zend Framework Select Operator Precedence

Hi everyone, I am trying to use Zend_Db_Select to write a select query that looks somewhat like this: SELECT * FROM bar WHERE a = 1 AND (b = 2 OR b = 3) However, when using a combination of where() and orWhere(), it seems impossible to use condition grouping like the above. Are there any native ways in Zend Framework to achieve the ...

Zend Framework - ErrorHandler does not seem to be working as expected.

This is my first experience using the Zend Framework. I am attempting to follow the Quick Start tutorial. Everything was working as expected until I reached the section on the Error Controller and View. When I navigate to a page that does not exist, instead of receiving the error page I get the Fatal Error screen dump (in all it's glory)...

How can I initialize Zend_Form_Element_Select with a config array?

I tried: $form->addElement( 'select', 'salutation', array( 'required' => true, 'options' => array( 'Mr.' => 'Mr.', 'Mrs.' => 'Mrs.', ...

In need for a site that explains how to use PHPUnit

I am searching for a tutorial (optimally with Zend Framework) on how to use PHPUnit. I have found a couple on google but have not quiet understood it yet. ...

Route-problem regarding Url-encoded Umlauts (using the Zend-framework)

Hi @ll. Today I stumbled about a Problem which seems to be a bug in the Zend-Framework. Given the following route: <test> <route>citytest/:city</route> <defaults> <controller>result</controller> <action>test</action> </defaults> <reqs> <city>.+</city> </reqs> </test> and three Urls: mysite.local/c...

Create cronjob with Zend Framework

I am trying to write a cronjob controller, so I can call one website and have all modules cronjob.php executed. Now my problem is how do I do that? Would curl be an option, so I also can count the errors and successes? [Update] I guess I have not explained it enough. What I want to do is have one file which I can call like from http...

URL segment to action method parameter in Zend Framework

in Kohana/CodeIgniter, I can have url in this form -> http://www.name.tld/controller_name/method_name/parameter_1/parameter_2/parameter_3 ... and read the parameters in my controller as follows class controller_name_controller { public function method_name($param_A, $param_B, $param_C ...) { // ... code } } is th...

How to generate pdf files _with_ utf-8 multibyte characters using Zend Framework

Hello, I've got a "little" problem with Zend Framework Zend_Pdf class. Multibyte characters are stripped from generated pdf files. E.g. when I write aąbcčdeę it becomes abcd with lithuanian letters stripped. I'm not sure if it's particularly Zend_Pdf problem or php in general. Source text is encoded in utf-8, as well as the php source...

I'm confused about something in the Zend Framework.

How do you decide if something goes in the view or the controller? Here are some specific examples: Zend_Captcha: Does the controller generate the captcha and pass it to the view or does the view generate it? Zend_Alc: Does the view decide if a segment of the view should be displayed to the user or do you have multiple views dependin...

Custom Filters/Validators in Zend Framework

I have a Zend Framework application structure as below: /application /library /Zend /Core /Filter /MyFilter.php /Validator /MyValidator.php I would like to put custom filters and validators in their respective folders and have them loaded automatically when used. However, I cannot figure...

MVC data design problem with Zend framework.

If I have a class representing access to one table in my database in a class:table relationship, so I can hide table details in one class. But as any useful application I have to query several tables. How can I accomodate this using the class:table design? ...

Zend Framework fetchAll

Can i override fetchall method in a model? I need to check sth everytime fetchAll is called. The model extends Zend_db_table_abstract ...

Emulate MySQL LIMIT clause in Microsoft SQL Server 2000

When I worked on the Zend Framework's database component, we tried to abstract the functionality of the LIMIT clause supported by MySQL, PostgreSQL, and SQLite. That is, creating a query could be done this way: $select = $db->select(); $select->from('mytable'); $select->order('somecolumn'); $select->limit(10, 20); When the database s...