Hi guys. Something very strange.
WSDL file generates fine. Here is source simple class
class SoapTest
{
/**
* Prapapapapapapap
* @return string Bls bls
*/
public function getList()
{
return "code";
}
}
Code for WSDL, Server, Client
if (isset($_REQUEST['wsdl'])) {
$ad = new Zend_S...
I have a question field with a list of allowed characters : A-Z,0-9,colon (:), question mark (?), comma(,), hyphen(-), apostrophe (').
I have the regex which works fine, in the fashion :
$question->addValidator('regex', true, array(<regular expresstion>))
The default error message is something like ''' does not match against pattern ...
I want to keep only numbers and remove all characters from a variable.
For example:
input: +012-(34).56.(ASD)+:"{}|78*9
output: 0123456789
...
I have a string which contains only numbers. Now I want to remove all leading 0s from that string
For example:
input: 000000001230
output: 1230
input: 01000
output: 1000
Is there any function in PHP/Zend for this?
Thanks
...
I am uploading file(pdf for now) like this: (It is uploading content of file in blob field of mysql)
$organizationModel = new Model_Organization_Object( organizationId );
$myFile = file_get_contents( '../path/to/my/file/filename.ext' );
$organizationModel->setOrganizationProfile( $myFile );
$organizationModel->save();
Now I want to ge...
I want to access the value of a specific variable (in the url) in my view helper. How can I do this?
I'm able to get my controller name with: Zend_Controller_Front::getInstance()->getRequest()->getControllerName(); , but I have no idea for the variable ...
Thanks in advance!
...
I am trying to get twitter updates like this:
try {
$doc = new DOMDocument();
$doc->load('http://twitter.com/statuses/user_timeline/1234567890.rss');
$isOK = true;
} catch( Zend_Exception $e ) {
$isOK = false;
}
If there is not problem with internet connection then $isOK = true; is set. But if there is a problem in loading t...
Hi i am new to php, I currently learning php using eclipse. I know i have to install the zend debugger my php.ini store at c:windows i had added in these line:
[Zend]
zend_extension=c:/php/ext/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
zend_debugger.connector_port=10013
but on command pro...
i only know wordpress and start to seek another alternative framework, zend. i heard hearsay that zend's better from others framework. if you're "a serous coder", or try to act like one, you need to use it on building your web app.
some said zend is better. But it's subjective. It's fast ans secure. But nobody tell me the reason or at ...
Hi everyone,
I'm using greybox and trying the following thing: I want to make a form inside the pop-up so when the users submit's it, the request goes to the main window and the pop-up closes.
I know the way to close the window is by using onclick="parent.parent.GB_hide()", but I really haven't been able to find a way to make the pop-u...
Hello,
I'm using Zend FW and wanted to make a feed reader. I did the following:
$feed = Zend_Feed_Reader::import('feed://blog.lookup.cl/?feed=rss2');
$data = array(
'title' => $feed->getTitle(),
'link' => $feed->getLink(),
'dateModified' => $feed->getDateModified(),
'description' => $...
Hi,
Currently on my application I have a form where I ask the user to upload an image file to be used as a logo. I want to allow the user to reset that to nothing by supplying no file (by just pressing the upload button from the browser).
In this scenario the only thing left is to suspend file validation when no file is included.
Curren...
Hello,
I am trying to understand how to use Zend_DB in my program but I have some problem. The class below (DatabaseService) work when I pass it a simple query. However, if I pass it it query with a join clause my page just hangs and not error is return. I cut and paste the qry in a query browesr and it is valid
Any help would be gre...
Hey I'm wondering when accessing Zend_Registry in an application if you need to include getInstance() and if so, why?
for example
Zend_Registry::getInstance()->get('db');
vs.
Zend_Registry::get('db');
they both seem to work with the later being less verbose.
I vaguely understand that Zend_Registry is a singleton, which I t...
Im using the Zend Lucene however Im have a little trouble. I wish to query the index for the exact tring so page_name IS test123, not any fuzzy match.
Currently I have:
$hits = $index->find('page_name:"test123"');
And advice appreciated, thanks!
...
Im using the Zend Lucene however Im have a little trouble. I wish to query the index for the exact tring so page_name IS test123, not any fuzzy match.
Currently I have:
$hits = $index->find('page_name:"test123"');
And advice appreciated, thanks!
...
i know that in Java you can use their built-in APIs for design pattern.
eg. if you want to use the observer pattern, you just have to extend your Subject class with the Observable class.
is this possible for PHP? are there any libraries for the design patterns ready to use. in this way you don't have to reinvent the wheel and you also ...
Hello,
Does anyone knows how to properly make dependent dropdowns using the Zend Framework?
I've found several ways to do so, but none of them is using the framework features.
Dependent Dropdown: The options shown on the "B" , depends on the option selected on the "A" .
Thanks for your help,
Best regards,
...
I have been battling with .htaccess to get all the requests to use https on my Zend MVC.
What am seeing is that SSL turns "on" and then goes "off" as the page loads.
Below is my .htaccess file.
SetEnv APPLICATION_ENV production
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond...
I have the following Zend_Form_Element:
$imginstructions = "Some description";
$img = $this->createElement('select','img');
$img->setAttrib('class', 'image-select');
$imgdecorator = $img->getDecorator('Description');
$imgdecorator->setOption('escape', false);
$img->setLabel('Image:')
->setRequired(true)
...