Is there a way to get the total number of rows in Zend db select like with using SQL_CALC_FOUND_ROWS in a regular mysql query. I haven't been able to find a similar functionality for this apart from running the same query without the limit clause.
...
Hi,
I need to execute the following mysql query in Zend;I am not an excpert with Zend framework
SELECT `optionride`.`featureoption_id`,
`optionride`.`featureoptionride_id`,`foption`.`featureoptionblock_id`,
`foption`.`labelname`,`optionride`.`value` FROM
`engine4_ride_featureoptionrides` AS `optionride`
LEFT JOIN `engine4_ride_featu...
Hello Experts,
I want to call a method before the execution of every and each controller's method. I don't want to go and call the method in every method. I just want to call it from one place and it will be called before any method of any controller in magento.
And I am sure we can do this but I don't know how it can be accomplished.
...
Hi stackworld,
Well heres my question.
In my project im using a rest service to authenticate clients. That part is ok as I have used a simple authentication by hashing a user id and a password together. After the authentication I want to open to the users few other rest services through the modular scheme in zend framework.
I am curre...
This is possible in Symfony with some routing magic but in Zend I'm not sure how to do this.
I want to make this url
http://example.com/unit/view/id/[15]
look like this instead
http://example.com/unit/[15]/view/[name]
where unit/view is the controller/action and id/15 is parameter key=>value, and [name] is the name of the unit be...
I have this query:
SELECT
groups.name
categories.name,
categories.label
FROM
groups
JOIN
categories
ON
(categories.group1 = groups.id
OR
categories.group2 = groups.id)
AND
groups.label = :section
AND
categories.active = 1
Now, this is my JOIN using Zend_Db_Select but it gives me array error
$select...
Hello I need help with displaying data from 2 table.
So i Have 2 models:
//Klasy.php
class Model_Klasy extends Zend_Db_Table_Abstract
{
protected $_name = 'klasy';
protected $_primary = 'id';
protected $_referenceMap = array(
'Nauczyciele' => array(
'columns' => array('Wychowawca'),
'refTableCla...
I am playing with the build settings in my build.properties file for propel (version 1.5.4) but don't get it right.
Example: Table News should have
class Model_News in ./Model/News.php
class Model_Base_News in ./Model/Base/News.php
My main problems:
propel adds the project name as a folder between Model and News.php like: /Model/p...
Hi,
I have the following problem:
I made a form, wich extends from Zend_Form, where I added a ZendX_JQuery_Form_Element_Datepicker like you can see in this picture:
http://i.imgur.com/uGFpH.png
But when I view that page in the browser, the datepicker seems to work, but the layout is messed up. See this picture:
i.imgur.com/MuFSQ.png
...
Is there way how to get breadcrumbs for specific page by it´s id?
My attempt follows but i get only page label. No breadcrumb path.
$view = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->view;
$page = $view->navigation ()->findBy ('id', 'menuCategory29');
// work fine page label is displayed
echo $page->getTitle(...
I have a Symfony application that uses Doctrine as its ORM. Based on Symfony's "Practical symfony" book, I have Zend Lucene added to my web app.
However, the problem is that there are around 1.1 million rows existing in the database that I want to index for Lucene as well. The only things being indexed are edited rows and the rows have...
I have an access denied page, which should not be shown in menus. However, it's possible for the user to be redirected to the access denied page.
I also have a breadcrumbs section on the page, and if you go to the access denied page, it shows as blank, which is extremely ugly.
I would therefore like to register the page, but not have t...
Does anyone know if it is possible to change the max depth of an XMLRPC response array for a Zend_XmlRpc_Server? I am returning the following without a problem:
$response = array('level1' => array('level2' => array('level3')));
but as soon as I do this it fails:
$response = array('level1' => array('level2' => array('level3' => array(...
Possible Duplicate:
Zend Framework: Controller Plugins vs Action Helpers
I know what the difference is technically, and how to register a front controller plugin/action helper, but it would really help me if someone with more experience in zend framework could explain me the different use cases for the two (examples would be g...
I want to create a textfield element in Zend Form which always type in uppercase whether CapsLock is On or Off.
Thanks
...
I need to POST data from inside a controller to a third party website and make sure they receive my website as the HTTP_REFERER. How can I do this?
...
I have got as far as using ClientLogin to log in to the Google Account, I can retrieve a list of the calendar names for this user (using the example code on the Dev Guide).
This is great. However, when I demand a list of events (again using Google's example code) only the events for the primary calendar are returned.
If it is the case ...
If I remember correctly, parsing .ini files in PHP takes a long time. So, why not cache it (the file won't change during a request)
What is the best way to do this?
Or are there any reasons not to do it?
...
I am using the Zend Framework and using Zend_Http_Client to make a POST request to a third party API.
$client = new Zend_Http_Client('http://api.com');
$client->setParameterPost(array(
'param1' => 'value'
));
$response = $client->request('POST');
echo $response->getBody();
This API returns an XML document as its response.
<?xml...
how do you deal with transactions when you have master and slave db setup? typically i do all the reads from slaves and writes from master but when performing transactions, it seems i need to do reads from master (the one which is performing the transactions) and so i can't have all my transactions all in one place ...
im also using ze...