zend-framework

Zend Framework appendFile not working after jQuery include

I'm setting a local path for jQuery in my layout. Then adding another js file using appendFile, but it's not adding the file I'm appending. in layout: $jquery=$this->jQuery(); $jquery->enable(); // enable jQuery Core Library $jquery->setLocalPath($this->baseUrl().'/js/jquery-1.3.2.min.js'); echo $jquery; echo $this->headScript(); In ...

zend framework project shows blank page without any errors

hello all i created a simple project with zf and it works fine, but when i copy it to other pc it just show a blank page without any page or errors ? my zf version is 1.9 and in other pc zf version 1.9 too what do you do about this problem? ...

How to know that a php project is using Zend framework?

I am writing a piece of small software to go through the folders and files of all the php projects that are passed in and detect if any of them is actually also a Zend project. Is there any particular file that I can immediately read and tell that the current project is a Zend project? or is there any convenient way to tell? ...

Zend Framework Modules can't find/load Models..

For some frustrating reason, I configured some Modules, which seemed to work fine, However I cannot load a Modules Models. If I move the Models to the Default they load, but I just can't get the Framework to find them locally.. Example: My Modules Directory is: application\modules\books\models\books.php (books is my Model) class Appl...

Best way to sort MySql results based on two columns and show results using pagination?

I want to sort results set first based on one column and then based on second column. I know how to do it on server side. And then I want to show these results with pagination feature. Question: would it be better to do it on client side via ajax in jQuery? I'm using Zend Framework. Would Zend_Paginator module be useful in this scenario...

trying to show a variable in my layout

hi i have a simple question where is my code wrong ? in index controller and index action i put $this->view->username="user1"; and when i try in my layout i use echo $this->username; i got fllowing error or null value Notice: Trying to get property of non-object in D:\Zend\Apache2\htdocs\test\application\layouts\layout.phtml...

Is .zfproject.xml a must in a Zend Framework project?

Is .zfproject.xml a must in a Zend Framework project? What does it do? Is it's location absolute? ...

Modular Zend Framework with a base of partials

Hello, Currently I'm finding I have to keep duplicating partials for different modules. I would like to have a case directory for all partials to be accessed. Does anyone have a good way of doing this? Thanks ...

what plugin execute at first on zend framework?

hello i registered 2 plugin in my project on zend framework the first one in application.ini this is for change layout resources.frontController.plugins.LayoutSet="App_Plugins_LayoutSet" and second in the registred in the bootstrap $fc= Zend_Controller_Front::getInstance(); $fc->registerPlugin(new App_Plugins_AccessCh...

Best place to check user authenticity in a back end module where all pages are only available to members?

I've a backend module which could only be accessed by authorized members. So I need to check authenticity for all actions and for all controllers. Currently I'm doing it inside preDispatch() functions inside controller classes. So it takes care of all the actions inside that controller. But still I've to do it for all controllers. Is the...

Get all model details in zend.

Hi, I have one doubt in zend framework. I need all model details from project which i have done in zend framework. Is there any possibility to get all model details in zend framework. Please help me.. Thanks and regards, Prasanth P ...

Zend Dd Rowset getting parent row

I am wondering about using the abstraction in Zend Db RowSet instead of joins, is it possible for instance I am able to get some info from parent table as in here /** * Get default photo info (path , description) */ public function getDefaultPhotoInfo($userdId){ $select = $this->select($this) ->where('id=?', $userdId...

What is the difference between redirect and forward in Zend framework

hello all What is the difference between redirect and forward in Zend framework? when we should use redircet and when should we use forward? ...

PHPUnit and autoloaders: Determining whether code is running in test-scope?

Premise I know that writing code to act differently when a test is run is hilariously bad practise, but I may've actually come across a scenario in which it may be necessary. Specifically, I'm trying to test a very specific wrapper for HTML Purifier in the Zend framework - a View Helper, to be exact. The HTML Purifier autoloader is nec...

How do I pass parameters using redirector helper in Zend Framework?

Hi, Is it possible to pass parameters ($_POST or $_GET) with redirectory helper in Zend Framework? The following code redirect to index action of current controller, but I would like to pass some parameters to it as well. $this->_helper->redirector("index"); Zend Documenataion does not say anything about it. ...

Problem getting Params in injected controller Zend Framework

I have a layout 'profile' <div> <div> $this->action(action1, controller1, module1)<div> <div> $this->layout()->content </div> <div> $this->action(someotheraction, soController,soModule ); </div And the problem starts when I want to get the $request->Params() from the action1 , controller1 module1 , it is empty. I looked a...

Zend DB returning NULL value

I have the following query that extends from Zend_DB_Table_Abstract $select = $this->select() ->from('expense_details', array('SUM(expense_details_amount) AS total')) ->where('YEAR(expense_details_date) = ?', '2010') ->where('MONTH(expense_details_date) = ?', '01') ->where('expens...

Different Soap Envelopes - One Works, The Other Fails

I'm making an identical SOAP Request, one using the Zend Framework and the other not. The Zend one is not working and the only difference seems to be the envelope namespace. How is the envelope set and why would one of them fail? Zend Soap Call <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://wsapi...

How can I customise Zend_Form regex error messages?

I have the following code: $postcode = $form->createElement('text', 'postcode'); $postcode->setLabel('Post code:'); $postcode->addValidator('regex', false, array('/^[a-z]{1,3}[0-9]{1,3} ?[0-9]{1,3}[a-z]{1,3}$/i')); $postcode->addFilters(array('StringToUpper')); $postcode->setRequired(true); It creates an in...

Zend framework predispatch check action layout isEnabled

I create a plugin for my header, footer actionStack. I try to find a way to check if the action layout is $this->_helper->layout->disableLayout(). This is my plugin: class Default_Plugin_RenderPosition extends Zend_Controller_Plugin_Abstract { public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request) { ...