When i am developing a web application on Zend_framework (php) i have to include images (css files, js files, etc).
The solution for inclusion was to specify the absolute paths each time i needed an image (i was storing in "global like" parameter with my host and concatenated it with the relative path of the image on the host). As i un...
Assuming you're hewing closely to the conventions of a ZendApplication, where should you be setting up a database handler for application developers to access?
I know how to setup a ZendDb adapter. What I want to know is, in the context of the Zend Framework, how should developers be instantiating their DB handlers so they don't have t...
When I installed Xdebug through pecl, it added the following line to my php.ini file.
extension="xdebug.so"
and everything I used worked. Until today.
Today I was having trouble setting up Xdebug for interactive debugging. I couldn't get anythign working until I changed the above to
zend_extension="/usr/local/lib/php/extensions/xd...
I'm trying to get interactive debugging working with a Zend Framework application and Xdebug, using MacGDPp as the client debugger. I'm running to some problems setting breakpoints and was hoping
Someone could solve my specific problem
Someone could give me a high level overview of how this is supposed to work so I can track down the ...
I'm pretty new to Zend.. I'm just wondering how to model my site's layout/structure. My site will have an user profile section, admin section, and the generic the default view of the site.
For the admin and profile, I'll have custom elements in the headers and footers, otherwise I want to default to a generic header/footer.
I want the...
In our application, we have certain scenarios where we'd like to perform a redirect and pass a long string to the next controller/action. I'm familiar with both of these:
$this->_redirect('/controller/action?string=thisistheverylongstring);
But would like to avoid showing the user the string as part of the URL.
Throwing the string in...
I currently have a search form in the search controller, so the only way I can get to it is through /search/. I have to refactor my code so that this search form appears not only in the Search Controller but also globally throughout the site.
( The code isnt exact as I had to retype some of it )
My class that extends Zend_Form is loca...
Hey all, I'm looking to get my Zend certification soon for PHP5. Has anybody that's taken the exam come out of it with good advice? Are there any useless/nonsense/obscure/esoteric topics covered on it?
Thanks
...
Hi friends,
When I decided to start using php framework, I have gone for CodeIgniter because of I didn't have much learning time, I had strict project dead-line. I actually wanted Zend Framework so much. I'm happy with CI so far... But I'm about to start a big hotels directory project like kayak.com . My project will not have so big db ...
I have this sphinx search engine that I use through Zend using sphinxapi.php . It works fantastic. Really really great.
However, there is one problem: It randomly fails.
// Prepare Sphinx search
$sphinxClient = new SphinxClient();
$sphinxClient->SetServer($ip, $port);
$sphinxClient->SetConnectTimeout( 10 );
$sphinxClient-...
Hi All,
I've spent many hours trying to get this to work. And I'm getting quite desperate.
Would be great if someone out there could help me out :)
Currently using Zend Framework 1.9.5, though I have been struggling to get this to work for many versions now.
What I want to do is provide my own routes through an XML config, and make su...
I have a controller for example "Price" also another one "Testprice" both using the same database table and the functionality are same only difference for "Testprice" the table have field test value true and for "Price" test = false . How can i extend the "Price" controller to this "Testprice" :)
...
I have a simple messaging queue setup and running using the Zend_Queue object heirarchy. I'm using a Zend_Queue_Adapter_Db back-end. I'm interested in using this as a job queue, to schedule things for processing at a later time. They're jobs that don't need to happen immediately, but should happen sooner rather than later.
Is there a...
I am in a predicament here. My PHP code used to work but since I upgraded to PHP 5.2.6 I now get:
Warning: domdocument::domdocument() expects parameter 2 to be long, string given in C:\xamps older\xampp167\htdocs\test\myphp\CSR Demo pack\csr\output.php on line 46
Fatal error: Call to undefined method domdocument::loadHTML() in C:\xamps...
How is it possible to set up a shared view script path for partials to create global partials within the Zend Framework?
We know that you can call partials between modules
e.g - echo $this->partial('partial_title','module_name');
but we need to set up a partial folder in the root ( i.e below modules) so that it can be access...
Hello, is there a way to select a folder and somehow expand all the child folders of the selected folder? It would be very useful.
The issue that I imagine is that because in Zend Studio php files are expandable also so they can show their classes namespaces methods and etc if there is a way to expand a folder and all its subfolders it ...
I am trying to build PHP from source per these instructions. The configure works really well, but when I get to the nmake part, things fall apart. I have no idea why I am getting errors about struct's, the lines referenced are functions!
I have put the problematic zend_interfaces.c here.
Zend\zend_interfaces.c(320) : error C2332: 'str...
I'm new to PHP, and was trying to create an Abstract class with a mix of abstract and non-abstract methods, and then extend the class to implement the abstract methods. The following is portions of my two class files:
<?php
require_once 'Zend/Db/Table/Abstract.php';
abstract class ATableModel extends Zend_Db_Table_Abstract {
abstra...
I have been setting my routes in my application.ini file which works for all the ones i have setup. The problem is when there are multiple actions within that controller and i try to use the routes in other actions.
For instance i have created the following in my application.ini for paging and column sorting
resources.router.routes.sea...
I'm trying to create 1 base form in Zend which is a part of many other forms.
Eg: the following 3 elements could be a sub form or a mini form that is a part of a larger form :
-Name
-Age
-Address
I just want to re-use the same form in different places - at times adding elements like 'shipping address' etc
I'm getting stuck at the data s...