zend-framework

Zend Framework url setting for Https

Hi, I have Zend Framework application and i use SSL certificate in login and signup page. I don't need "https" login and signup page other than all url. But url helper set "https" to all url at signup or login page. How to disable "https" for others url? Sorry my bad english. ...

Get post data, Zend Framework

Hi, I want to fetch posted data. put I am using no form. the data is postet by a jquery script with method post and I would like to fetch it. I know how to fetch parameters $id = $this->getRequest ()->getParam ( 'id', null ); and form values: $message = $form->getValue ( 'message' ); however I want to access post data and not para...

Example of Command pattern in context of a non-AJAX website

I have seen numerous examples of the Command pattern But they all tend to be in the context of a desk-top application. i.e "Command decouples the object that invokes the operation from the one that knows how to perform it" In the context of a pure HTML (but Zend Framework MVC driven) website, I am thinking of a user 'clicking a link' ...

Sharing Zend Helpers (view or action) Between Modules

Assuming you're trying to keep yourself as close as possible to the Zend Framework view of the universe, how should view and action helpers from one module be shared with another module? Let's say I have an with two modules. Module "A" has a view helper named Output. class Modulea_Zend_View_Helper_Ouput extends Zend_View_Helper_Abstra...

Whats the difference between __construct() and init()

Hi All, I was wondering what is the difference between __construct() and init() functions in a PHP application, more particularly in a Zend Framework application. ...

Zend with Symfony

There seems to have been previous attempts to integrate Zend with Symfony in the same project. I hear it can be done and has been done, but aside from a slide show linked below, the actual video accompanying the slide show is not freely available. So does anyone know of good resources that explain such integration well? blogs, videos, ...

zend framework 2 underscore private

Will Zend Framework 2 continue to place underscores in front of private members and methods of classes? e.g: class blah { private $_name; private function _doSomethingToName() { } } I see that they are still there in the dev release of ZF2. ...

How should I organize source control for framework-based projects?

I'm struggling trying to sort out what the best-practice is for putting a project under source control when the project is written against a framework. In my situation I will be using Mercurial for source control. Most PHP frameworks have an 'application' folder where I'm supposed to put my code that interacts with the framework. So i...

css path not working in zend

hello every one i created a controller and actions in zend. if i type "http://localhost/cms/public/controller" then the css file is loaded correctly but if i type "http://localhost/cms/public/controller/action" then headlink appears like href='http://localhost/cms/public/controller/css/style.css" and it does not work. Please help ...

How to choose an ORM

The framework I'm starting to learn supports 2 ORMs out of the box. I don't think it matters for the purposes of this question to say which 2 ORMs. My question is more general than this. How do you in general decide which ORM to go with? I haven't used an ORM before, but I'm guessing there's a list of must-haves that any decent ORM must ...

issue in Zend_Frame_ Select box validation in ajax call

hi i have created a country select box as $country= new Zend_Form_Element_Select('country'); in my user registration form .. While selecting an country an ajax call is send and getting the state list by creating another select box $state= new Zend_Form_Element_Select('state'); in another action say stateAction() Problem is that whe...

zend framework deployment in server

I have a server, where I have uploaded my work in zend framework(in a subdomain). the folder name is 'visit'. So, When I go to: http://mysitename.com/visit, it shows a directory structure: Parent Directory application/ docs/ library/ nbproject/ public/ tests/ But when I go to: http://mysitename.com/visit/public, i get the index page ...

zend session expires when refreshed many times

Zend Gurus: I have a problem that my session expires if I refresh a page many times quickly .. ? I log into my site, after I'm logged in, I just press F5 many times quickly, and my session expires. I'm no expert, but it's troubling to me. Should I just abandon Zend Session(s) ?? Any ideas.. ? Thank you everyone, -P This is how I ch...

Zend Framework Twitter Service Requires Authentication for UserTimeline?

Hello, I am using the Zend_Service_Twitter class to retrieve my userTimeline, however since August, I am no longer able to use Basic Authentication. This is perfectly fine, since userTimeline does not require authentication at all. Strange enough, Zend_Service_Twitter thinks userTimeline requires full authentication (using oAuth tokens...

Error while joining tables with Zend_Db

Why am I getting this: An error occurred Application error Exception information: Message: Select query cannot join with another table while trying to join two tables? I have this line code inside my model which extends Zend_Db_Table_Abstract public function getProjects() { $select = $this->select() ->from(array('...

How to define relationships in Zend Framework

I have two simple tables: Projects and SubProjects which I'd like to print every subproject with the respective project in a table. So I wrote this: class Admin_Model_Projects extends Zend_Db_Table_Abstract { protected $_name = 'main_projects'; protected $_primary = 'mai_id'; protected $_sequence = true; protected $_dep...

What is a good book to buy on php cms development?

Hello, I would like to build a cms with php using zend framework. I have been disappointed in the past when purchasing programming books only for the author to say, "well this example would not really work well in production." I would like to know if anyone has a recommendation for a book on building a production level cms using php. I...

How do i access the array from Layout to Controller in Zend framework

Say for example in mydefaultlayout.phtml i have an array declared in this way $pages['words'] = array( 'APPLE', 'BALL', 'CAT', 'DOG', 'HELL', 'INK', 'PINK'); $pages['letters'] = array( 'A', 'B', 'C', 'D', 'H', 'I', 'K'); Mydefaultlayout.phtml has been my default layout in the entire application so it is available to every controller ...

Doctrine YAML generates Datetime instead of Timestamp

Category: columns: id: type: integer(11) primary: true autoincrement: true unsigned: true name: type: string(255) notnull: true actAs: Timestampable: created: name: created_at type: timestamp format: Y-m-d H:i:s updated: name: updated_at type: timestamp for...

Zend Framework - Update a Database row with WHERE and AND

To use where in a MySQL table row update in Zend Framework I have something like: public function updateBySiteId(array $data, $id) { $table = $this->gettable(); $where = $table->getAdapter()->quoteInto('site_id = ?', $id); return $table->update($data, $where); } and this, I expect, gives me something like...