Hi guys I'm integrating basic email capabilities in my application and I would like to be able to incorporate a decent reply / forward email facility. I have it covered with sending my own uploaded attachments but what about in situations where I recieve a message in my inbox with attachments and wish to forward that same message along w...
I want to start using Zend_Rest_Controller for my app, and have set up the routing like so in my bootstrap:
protected function _initRestfulRoutes()
{
$front = Zend_Controller_Front::getInstance();
$router = $front->getRouter();
// Specifying all controllers as RESTful:
$restRoute = new Zend_Rest_Route($front);
$rout...
I have groupTable(group_id,group_name,group_date,group_parent_id)
in face each group have many group child.
I create groupModel and I want to begin coding is this right code to handle?
protected $_name = 'group';
protected $_dependentTables = array('Model_group');
protected $_referenceMap = array('Model_group' =>
array('col...
Hi guys for some weird reason I'm unable to send email using zend mail :( - I keep getting the following error:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in /home/fltdata/domains/fltdata.com/public_html/admin/g-app/includes/mailer.php on line 77
Below is my code:
if($_POST):
$fields = array('to', 'cc',...
hi,
I am trying to use like in zend
switch($filter2)
{
case 'name':
switch($filter1)
{
case 'start_with':
$search = "\"pd_name like ?\", '$patient_search_name%'";
...
How can I use/setup Tier Pricing with Configurable Products? (Magento 1.4+)
There was an extension to do this but I think it is only for Magento 1.3.
Tried to setup tiers in my Simple Products, but those do not show up, or do not activate when I add to cart from my Config Product page.
Any help is appreciated!
Thanks.
Edit:
In my...
I have recently setup XAMPP 1.7.3 and ZendFramework 1.10.4 on a new computer and many of the commands that I normally use now fail.
Here are the steps I used to setup and test ZF.
First I added the ZF library folder (C:\xampp\php\ZendFramework-1.10.4\library) to the include path in php.ini.
Then I added the ZF bin folder (C:\xampp\php...
All,
I have the following Zend application structure:
helloworld
- application
- configs
- controllers
- models
- layouts
- include
- library
- public
- .htaccess
- index.php
- design
- .htaccess
Currently, if the user visits, http://localhost, my .htaccess files above make sure, the request is route...
All,
I have the following Zend application structure:
helloworld
- application
- configs
- controllers
- models
- layouts
- include
- library
- public
- design
-- css
-- site.css
-- js
-- global.js
-- images
-- siteheader.gif
-- sitefooter.gif
...
I have a plugin in my Zend Framework application that checks login status after every request, and reroutes the user to the login action if their session is invalid or expired. I would like to cache the previous request action so that, after a successful login attempt, I can redirect them back to their previous request.
I have found th...
Hey guys
I'm getting this weird error in my Zend application with this piece of code:
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'www.xyz.com/ab.php');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($curl);
curl_close($curl);
if (!isset($location->country)) {
$location = new Zend_Session_Namespace('lo...
I'm using the Zend Router and so things like (/ and /index.php) or (/about and /index.php/about) ends up as the same here.
However, /index.php/whatever should not exist as it is the exactly same resource as /whatever so it doesn't make a sense the duplication.
How do I avoid this?
Even http://zendframework.com/manual/en/zend.controlle...
I use Zend URL view helper for building my urls. Everythings works exactly as I'd like to, except one thing: The character used for replacing spaces in the url is a plus (+). I'd like it to be a 'min' (-). How can I change this?
Example:
Now: /nl/nieuws/bericht/3/title/nieuwe*+affiches
Wish: /nl/nieuws/bericht/3/title/nieuwe-*affic...
I'm using Zend_Date to manage dates/times in a scheduling app.
The only way I'm able to determine the user's Timezone is via Javascript which only gives a Timezone Offset. Zend_Date only seems to take Timezones in the 'America/New_York' format.
Is there a way to get the users timezone in this format or set the Timezone Offset with Ze...
Hello How can I make hidden multi checkbox in zend form?
...
Hi,
The standard extension for template files in Zend Framework is .phtml... I need to change them to .js in one specific module... can anyone help... I'd ideally like to change this a Controller level...
Many thanks...
...
Hi all,
I am writing a small script to upload and detect MIME type, using Zend Framework. For the design purpose, I can't use Zend_Form but normal instead. And I simply apply from the manual :
$adapter = new Zend_File_Transfer_Adapter_Http();
$files = $adapter->getFileInfo();
$mime = $files->getMimeType();
But the system inform that t...
I'm trying to get the following html out of Zend_Form
<div class="group wat-cf">
<div class="left">
<label class="label right">Username</label>
</div>
<div class="right">
<input type="text" class="text_field">
</div>
</div>
Using the following code:
$username->setAttrib("class", "text_field")
->setDecorators(...
Hi there
I need to create something like this:
select name from table where active = 1 AND (name LIKE 'bla' OR description LIKE 'bla')
The first part is easy:
$sqlcmd = $db->select()
->from("table", "name")
->where("active = ?", 1)
Now comes the tricky part. How can I nest? I know that I can just write
->orWhere("name LIKE ? OR ...
I have read the examples here:
http://framework.zend.com/manual/en/zend.gdata.spreadsheets.html
But those examples assume the spreadsheet to be read needs authentication:
$service = Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME;
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
$spreadsheetService = new Zend_Gdata_S...