zend-framework

Modules and Autoloaders

hello all i have 3 modules in my application , like following sturcture application | default |---models |--views |--forms |--controller admin |---models |--views |--forms |--controller cars |---models |--views |--forms |--controller bootstrap.php how could i crea...

Flex Builder 4, ZendAMF and Data Services - Error?

I'm trying to set up my Flex Builder 4 dev environment, up to and including PHP and the ZendFramework on a WAMP stack on my hard drive. Everything goes swimmingly until I try to set up a data service. I point it to the php class file, it populates the various fields in the form so I know it understood it, and I press next. After a littl...

How to automatically set and attribute to controller

Maybe the question is not self-explanatory, so I will explain it through. The deal is: I got the variable $conn in the bootstrap class file. I'd like to make it global for every controller so that I just have to call $this->conn in the controller action scope in order to access the data inside. How would I do it? Thx ...

[Zend Framework] Is there any way to use more than 1 bootstrap class?

It should sound workaround or something like, but I'll tell you what: I chose to have a separated "project" with every library I could use. It's like a global library which I included Zend library, Doctrine ORM, JQuery, Blueprint CSS, etc. Then I set the include path. Nothing wrong. The problem is: I'd like to have also a global bootst...

[Zend Framework] How do I init every parent method before init ?

I have a custom bootstrap class and I'm extending it. class Bootstrap extends MyBootstrap { } MyBootstrap.php class have some _init methods. I need it to load all MyBootstrap methods first. How to? ...

Can't upload to google docs from php 400 error!

Hi guys I'm trying to upload to google docs on a google apps account using the following code - I'm using zend framework: function getGoogleClient($s = '') { $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME; $user = 'aaaaa'; $pass = 'aaaaa'; $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); return $...

ckFinder with zend framework

Does anyone know how to get ckFinder working with zend framework? I am getting a XML request error: OK (500) URL requested: "http://localhost/public/scripts/ckeditor/plugins/ckfinder/core/connector/php/connector.php?command=Init&langCode=en" Server response: Status: 500 Response text: I have tried just setting the CheckAuthenticat...

Inject URL parameters into Zend_Navigation menu

Is anyone using Zend Navigation in conjunction with URLs that require dynamic parameters? Zend_Navigation seems really easy when dealing with static routes, but I can't figure out any way to make it play nice with dynamic URL parameters. A route like: routes.editUser.route = '/users/:id/edit' routes.editUser.defaults.controller = 'use...

How to implement following with Zend navigation?

I have a top navigation and a side one Home | Tours | Booking Tour1 ------ Tour2 ------ Tour3 I show the side menu depending on a active top item. But sometimes when the side menu item is clicked I have to show that items children instead of the sidemenu. When no children exist I just show Children of a top menu depending on the ac...

Module autoloader in ZF

The manual on Zend_Application_Module_Autoloader states the following: When using module bootstraps with Zend_Application, an instance of Zend_Application_Module_Autoloader will be created by default for each discrete module, allowing you to autoload module resources. Source: http://framework.zend.com/manual/zh/zend.loader.au...

Zend_Db: How to connect to a MySQL database over SSH tunnel?

How can I connect to a MySQL database that requires an SSH tunnel using PHP and the Zend Framework? ...

Zend Framework Resources

im a beginner to Zend Framework! i want resources for learning,tutorials and etc. for ZF. is there anybody here to help me? :) ...

Zend Framework Codes

what is below codes for?(in Zend Framework) i mean what is the job of these? $this->view->default $this->view->action ...

Zend_Search_Lucene range query error

I have set up each document with a date field. (keyword) Values stored in it are in this format; 20100511 Each time I try to perform a ranged query, I get the following error: date:[10000000 TO 20000000] At least one range query boundary term must be non-empty term Anyone got a clue? Update I have gotten this to work progra...

How to specify multiple conditions and the type of condition using Zend_Db_Table

I have a function in my model that I need to use multiple conditions when querying. Additionally I would like to also have partial matches. I currently have: public function searchClient($search_term) { $rows = $this->fetchAll( $this->select() ->where('first_name = ?', $search_term) ); return $rows->toArray(); } Wh...

zend_application showing blank page

Hi, I'm using Zend_Application to bootstrap my app. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { public static $frontController = null; public static $registry = null; protected function _initEnvironment() { ini_set('display_errors', true); //date_default_timezone_set('Europe/London'); } protected...

Cannot redeclare class error when generating PHPUnit code coverage report

Starting a project with Zend Framework 1.10 and Doctrine 2 (Beta1). I am using namespaces in my own library code. When generating code coverage reports I get a Fatal Error about Redeclaring a class. To provide more info, I've commented out the xdebug_disable() call in my phpunit executable so you can see the function trace (disabled loc...

[ZF] How to use Zend_Db without SQL Queries?

The last time I worked with Zend_Db I recall I used to write SQL Queries manually. I've been searching for some ORM application, but, since I read something like Zend_Db is also capable of doing so, I started to try it, but I can't find neither a good tutorial explain it or a good documentation. I read something lake Gateway pattern and...

MySQL: How can fetch SUM() of all fields in one Query?

Hi, I just want somthing like this: select SUM(*) from `mytable` group by `year` any suggestion? (I am using Zend Framework; if you have a suggestion using ZF rather than pure query would be great!) Update: I have a mass of columns in table and i do not want to write their name down one by one. No Idea?? ...

Extending / changing how Zend_Search_Lucene searches

Hi, I am currently using Zend_Search_Lucene to index and search a number of documents currently at around a 1000 or so. What I would like to do is change how the engine scores hits on a document, from the current default. Zend_Search_Lucene scores on the frequency of number of hits within a document, so a document that has 10 matches ...