Say I have a products table that stores off the shelf products that are not customizable and have static pricing. I also have 1 product in this same table that is customizable and it's price and all sorts of characteristics vary based on the configuration. The final price for this customizable product is based on an equation, not a sum...
I have a simple ajaxLink to a controller. It works without the params, but when I add a param I get an error: Warning: Missing argument 1 for Ez_ContactsController::testyAction()
The params are required and I see them in the jquery that ZF creates. here is the JS that gets generated (/ez is my module):
$(document).ready(function() {
...
Hi guys, I'm using the Zend framework here - I've noticed that for some reason the information is automatically escaped when it goes into the database - it doesn't do so on my localhost but it escapes automatically on my host. And when data is retrieved its not unescaped so something like 'Chris O'Donnel' goes in as Christ O\' Donnel and...
I've been working with Zend Framework (using Doctrine as the ORM) for quite a while now, and done a few projects with it.
In a few upcoming projects I am requiring the need for widgets similar to how Wordpress does them. You have a post/page, which could look like:
Subscribe to my newsletter:
[subscribe/]
View my events
[events limit=...
I have here a medium sized intranet site which is written entirely in Zend FW. The database for the intranet is located on another server. Now I need to extend the intranet with some new functionality. In order to do this I need to connect to another database on the same server (and same DBMS).
The question is now: What is the best way ...
I'd like to have my controller - i.e. Page_IndexController - extend a base controller.
For example;
class Page_IndexController extends Content_IndexController {
}
However, it seems the autoloader doesn't pick up the fact it's a controller class at any point - I get the error Fatal error: Class 'Content_IndexController' not found
Fir...
I need to have a place to put some common functions that various view scripts will use such as creating some html by passing it a variable. I know about using helpers, but I want to be able to put many functions inside it not just one helper for each function.
Is it a plugin that I need to create?
thanks
...
Hi,
I have a project in which I use more than one adapter.
So In ma models i created an abstract model
abstract My_Config1_Model extends Zend_Db_Table_Abstract
{
public function init()
{
$db = Zend_Registry::get('dbcon')->getDb(Kiga_Data_Database::MASTER);
$this->setDefaultAdapter($db);
}
}
and then I inherit...
Hi
I am new to zend framework and wigets. can anybody post the code on "how to write a simple login widget.
Thanks inadvance.
...
How can I add a form to my layout.phtml?
I would like to be able to have a search form and a login form that persists through every form on my site.
...
Here's the setup, I have a Lucene Index and it works well with the 2,000 documents I have indexed. I have been using Luke (Lucene Index Toolbox, v.0.9.2) to debug queries, and am using ZF 1.9.
The layout for my Lucene Index is as follows:
I = Indexed
T = Tokenized
S = Stored
Fields:
author - ITS
category - ITS
publication - ITS
public...
Just migrated my PHP web app to another server with a new db and now I'm trying to migrate Lucine's Index to new server. Is it even possible to move my index to another server? and can we access the search index (that is stored on one server say server A) from another server (say server B)? If yes then where can I can info about that?
T...
Is there a way to have models for each module? I have 3 modules, one is a "contacts" module.
I created a model for it in modules/contacts/models/Codes.php
Codes Controller
class Contacts_CodesController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
$this->view->mes...
I want to use Zend Paginator in my project with a raw sql query(not Dbselect).
I can't use Dbselect, because I have several subqueries in the main sql query.
From the manual I found that the only way is to use pagination on resulting array like this
$paginator = Zend_Paginator::factory($array);
but I have a lot of records in the quer...
Sorry this is a pretty long question, but i want to have some disucssions here.
i am new to zend and try to avoid using modules as I think the view aspect of zend is pretty flexible and module will add extra directory and confusion. However i am wondering one thing. The app i am building is pretty big it actually has the modules concep...
Hi All
I am trying to use the Zend Framework without using the MVC structure, specifically the Db_Table classes.
I have created a couple of classes representing my database tables i.e
class DBTables_Templates extends Zend_Db_Table_Abstract
{
protected $_name = "templates";
}
When I try to instantiate this class (it is included...
Hello Everyone.
I try to create a zf project but the project appears in my php dir.
I use zf version 1.9.2
I have the zf.bat and zf.php copied to:
k:\xampp\php\zf.php and k:\xampp\php\zf.bat
I use windows xp.
But it creates the project in my php dir in stead of in my webroot.
Any idea's?
...
Hi,
just a simple question..
Is there any good practices to validate an HTML embed code?
fyi, I am using Zend Framework and prototype+scriptaculous right now..
it would be great if someone could give a clue around that environment.
Thank you! ^^
...
Hey all,
I am wanting to do stuff with the Google Data API, the contacts specifically. The easist method i have found so far is using Zend. The problem I am having is adding the Zend framework. Does anyone know how to do this with WordPress?
Thanks
...
Hi.
I'm trying to implement OpenID. I've cut my code right back to try and get OpenID to work (as a consumer) but the login() methof just keeps failing! Here's the code:
require 'Zend/Http/Client.php';
require 'Zend/OpenId/Consumer.php';
$client = new Zend_Http_Client(null, array(
'adapter' => 'Zend_Http_Client_Adapter_Curl',
)...