zend-framework

Good portfolio projects

Hi, I am a recent graduate and am looking to start a career in web development. Its kind of a catch 22 at the moment as I have a fair bit of programming experience from university but not really in web development and to get a job in web development a portfolio is typically required. So, I am looking to start a building a few applicati...

Huge mysql table with Zend Framework

I have a mysql table with over 4 million of data; well the problem is that SOME queries WORK and SOME DON'T it depends on the search term, if the search term has a big volume of data in the table than I get the following error: Fatal error: Allowed memory size of 1048576000 bytes exhausted (tried to allocate 75 bytes) in /home/****/pu...

Integrating Magento with a CRM software

Dear people, I am looking for the most suitable and easy to configure solution that would integrate Magento with a CRM. Which CRM is more suitable and compatible with Magento? Thanks in advance, ...

zend-framework doctrine, and mvc pattern: what should connect data between models and forms?

I am learning Zend Framework and Doctrine. I am wondering what is the best practice to connect forms to models and vice versa. In some cases it is handy to load data from model in form class. Lets say a very unique class which use many models. In other cases it is convenient to have methods in model class which prepares data for forms...

Easily reuse views, controller, layout in a command line interface

My Zend application is going to get an command line php script that should email reports. There generation depends on Zend_View, Zend_Layout and is currently already working fine in the web interface. How can I reuse this whole MVC functionality in the command line? Should I add a new controller CommandLineController and call this some...

zend framework error

I started getting the following error today, but don't know why and what caused it. [31-May-2010 03:52:10] PHP Fatal error: Cannot run code from this file in conjunction with non encoded files in ZendFramework-1.10.5/library/Zend/Validate/Hostname/Com.php on line 547 I'm using zend framework version 1.10.5; although version 1.09 also ...

memory leak in Zend_Db_Table_Row?

This is the code I have: <?php $start = memory_get_usage(); $table = new Zend_Db_Table('user'); for ($i = 0; $i < 5; $i++) { $row = $table->createRow(); $row->name = 'Test ' . $i; $row->save(); unset($row); echo (memory_get_usage() - $start) . "\n"; } This is what I see: 90664 93384 96056 98728 101400 Isn't it a memory le...

Default route is matched instead specific route

<routes> <www type="Zend_Controller_Router_Route_Hostname"> <route>www.domain.com</route> <chains> <index type="Zend_Controller_Router_Route"> <route></route> <defaults module="default" controller="index" action="index" /> </index> <community> ...

Zend Framework table Relationships

I have a table with over 4 million rows, I want to split this table in more tables, i.e one table with 50k rows. I also need to perform a search on these tables, whats the best way to do it? with JOIN, or? do you have some better ideas? Best Regards, QUERY $do = $this->select() ->where('branche LIKE ?',''.mys...

Out of memory while iterating through rowset

Hi All, I have a "small" table of 60400 rows with zipcode data, 6mb in total. I want to iterate through them all, update a column value, and then save it. The following is part of my Zipcodes model which extends My_Db_Table that a totalRows function that - you guessed it.. returns the total number of rows in the table (60400 rows) pub...

How to build a widget for my website

Hey guys I'm very new to the whole programming - so far I only have experience with building websites, database etc. I currently have a website where users can share their online purchases. I want to build a widget that other websites can integrate on their site. The widget will show the recent purchases entered on my website and User...

How to Have a Bundled Configurable Product in Magento ??

Hi everybody, I've been searching about this topic on Magento forum and Google but can't find a definite answer for the question. Hope I find it here. Is it possible to have a bundled configurable products in Magento? Take for example I want to sell a set of t-shirt and short on a product page where the customer can choose the number o...

Zend Framework: How to handle exceptions in Ajax requests?

Normally when an exception is thrown, Error controller takes command and displays error page with regular common header and footer. This behavior is not wanted in Ajax request. Because in case of error, whole html page is sent over. And in cases where I'm directly loading the content of http response in a div, this is even more unwanted...

What means Zend_Mime::ENCODING_8BIT when sending mails with Zend_Mail?

In the example for Zend_Mail on http://framework.zend.com/manual/en/zend.mail.attachments.html they use ENCODING_8BIT but searching for what that might be sends me to http://msdn.microsoft.com/en-us/library/ms526992%28EXCHG.10%29.aspx were (and this sounds logical to me) it is explained that 8bit encoding does not make sense for emails. ...

Zend_Services_Twitter, change the API Source name

Hi, I am sending tweets to Twitter via Zend_Service_Twitter. The tweets appear with a note "via API". I want to set the API Source with a different name, is there already a functionality within the Zend Framework to change it? Or do I need to subclass to get this functionality? Thanks! ...

SVN Development and Release Process - Sanity Check

I am creating a process for working with version control and my web based application. This is what I have so far: I am doing main development under branches/development and keep that in sync with my development server for testing. I use svn:externals to bring the Zend Framework into my project. I use the revision number from the tag...

Catching Zend mvc Action o/p

I need to catch the o/p generated by actions based on request params, which needs to be injected in template. Can anybody tell me how it is possible. ...

zend framework controller not found ?

I downloaded the latest version of Zend framework, added a controller and I can not get it to load.. Here is what I did: C:\zend\Apache2\htdocs>zf create project myproject Creating project at C:/zend/Apache2/htdocs/myproject Note: This command created a web project, for more information setting up your V HOST, please see docs/README C:...

ISAPI_Rewrite: Zend PHP Framework project setup

How do I go about getting the isapi_rewrite working on IIS 6.0? My shared hosting account supports ISAPI_Rewrite - I've run the provided tests to confirm. I'm only able to access the index page of my Zend PHP project, but get the 404 error for other actions in my index controller class definition. I've basically placed the code: [ISA...

Zend Navigation add extra id

I made a menu with zend_navigation, using an ini file. That work well. If I look at the code, i see that zend has added a class, to the ul element. With a name that i use in my ini file. But now I want to add also a id to the ul element. How can I do this? protected function _initNavigation() { $this->bootstrap('layout'); $lay...