2008年10月31日星期五

Re: [fw-formats] Unitialized string offset

gherson wrote:
>
> What should my error_reporting() be set to when using ZSL? E_ERROR?
>
Yes. Avoid "Uninitialized string offset: 389 on line 116 in file
C:\xampplite\php\zf\Zend\Search\Lucene\Index\DictionaryLoader.php"-type
(search-stopping) errors in Zend Framework 1.6 by either
1. Adding
$pos = min(strlen($data)-1, $pos); // new
above all instances of
$nbyte = ord($data[$pos++]);
in Zend\Search\Lucene\Index\DictionaryLoader.php (Zend: do this please)

or

2. Quash E_NOTICE errors:
error_reporting(E_ALL ^ E_NOTICE);

fyi,
George

--
View this message in context: http://www.nabble.com/Unitialized-string-offset-tp19414579p20273990.html
Sent from the Zend MFS mailing list archive at Nabble.com.

[fw-mvc] ViewRenderer Script Path BUG

The ViewRenderer currently checks the path stack to see if a path exists prior to adding it.  This is causing a small bug for me.

If module1-controller1-action1 forwards to module2-controller1-action1, which then forwards back to module1-controller1-action1, the view path stack is incorrect.  The path for module1 views is never unshifted back onto the path stack (as it already exists in there), so when rendered, it renders the views from module2.

Current Stack Result:
array(2) {
  [0] => string(76) "/directory/module2/views/scripts/"   [1] => string(76) "/directory/module1/views/scripts/" } 
Expected Stack Result:
array(3) {
  [0] => string(76) "/directory/module1/views/scripts/"   [1] => string(76) "/directory/module2/views/scripts/"   [2] => string(76) "/directory/module1/views/scripts/" } 
Or
array(3) {
  [0] => string(76) "/directory/module1/views/scripts/"   [1] => string(76) "/directory/module2/views/scripts/" } 

What I'm trying to accomplish is actions firing in a specific sequence.  If we are out of sequence, need to forward to the correct action.

Simple fix is to just add paths to the view script stack WITHOUT checking if it first exists.  That is my current temp fix (I just commented out $pathExists = true).

Otherwise, another fix would be, if the path exists, splice it and push it to the top of the stack.

Arthur

Re: [fw-mvc] namefile.json from Zend_Dojo_Data

Matthew Weier O'Phinney-3 wrote:
>
> -- Alessandro Camilli <alex_cam@libero.it> wrote
> (on Friday, 31 October 2008, 07:15 AM -0700):
>> what is the best way to create a new file in the server using dojo_data?
>>
>> Example:
>> $data = new Zend_Dojo_Data();
>> $data->setIdentifier('name');
>> $data->setLabel('label');
>> $data->addItems(array(
>> array('name'=> 'name01', 'label'=>'label01'),
>> array('name'=> 'name02', 'label'=>'label02'),
>> array('name'=> 'name03', 'label'=>'label03'),
>> ));
>>
>> I'd like to create a new file ics.json within $data in the path
>> of the server /public/user/ics.json.
>
> The way I'm reading your request is that you want to dump the results of
> Zend_Dojo_Data to the file 'ics.json'? If so, simply do the following:
>
> file_put_contents('path/to/ics.json', $data->toJson());
>
> --
> Matthew Weier O'Phinney
> Software Architect | matthew@zend.com
> Zend Framework | http://framework.zend.com/
>
>
exactly
thanks
--
View this message in context: http://www.nabble.com/namefile.json-from-Zend_Dojo_Data-tp20266827p20269745.html
Sent from the Zend MVC mailing list archive at Nabble.com.

Re: [fw-mvc] Problems with stacked view script paths?

Maybe the Layout plugin is running after your own? Check the plugin
broker and make sure yours runs after Layout.

Kind Regards,

*Daniel Skinner*

browman wrote:
> I'm having some fun trying to implement a theming mechanism for a site and am
> wondering if anyone can help out.
>
> I've managed to sort out the layouts correctly, but there are a few
> instances where I need to override the default view scripts to present
> content differently for some actions.
>
> Here's the code for the theme plugin which seems to be doing it's stuff
> properly, but for some reason it's just refusing to use the viewscript in
> the theme path? I've tried a static call to the viewrenderer, as well as
> the method shown below both with the same result, it uses the default
> view... anyone got any ideas.
>
> class UP_Plugin_Theme extends Zend_Controller_Plugin_Abstract {
> /**
> * @var UP_Theme
> */
> private $theme;
>
> public function preDispatch($request) {
> $site = Zend_Registry::get('UP_Row_Site');
> $this->theme = UP_Theme::getInstance();
> $this->theme->setTheme($site->theme);
> }
>
> public function postDispatch($request) {
> $layout = Zend_Layout::getMvcInstance();
> $layout->setLayoutPath($this->theme->getLayoutPath());
> $view = $layout->getView();
> $view->addScriptPath($this->theme->getScriptPath());
> }
> }
>
>

[fw-mvc] Problems with stacked view script paths?

I'm having some fun trying to implement a theming mechanism for a site and am
wondering if anyone can help out.

I've managed to sort out the layouts correctly, but there are a few
instances where I need to override the default view scripts to present
content differently for some actions.

Here's the code for the theme plugin which seems to be doing it's stuff
properly, but for some reason it's just refusing to use the viewscript in
the theme path? I've tried a static call to the viewrenderer, as well as
the method shown below both with the same result, it uses the default
view... anyone got any ideas.

class UP_Plugin_Theme extends Zend_Controller_Plugin_Abstract {
/**
* @var UP_Theme
*/
private $theme;

public function preDispatch($request) {
$site = Zend_Registry::get('UP_Row_Site');
$this->theme = UP_Theme::getInstance();
$this->theme->setTheme($site->theme);
}

public function postDispatch($request) {
$layout = Zend_Layout::getMvcInstance();
$layout->setLayoutPath($this->theme->getLayoutPath());
$view = $layout->getView();
$view->addScriptPath($this->theme->getScriptPath());
}
}

--
View this message in context: http://www.nabble.com/Problems-with-stacked-view-script-paths--tp20268104p20268104.html
Sent from the Zend MVC mailing list archive at Nabble.com.

Re: [fw-mvc] namefile.json from Zend_Dojo_Data

-- Alessandro Camilli <alex_cam@libero.it> wrote
(on Friday, 31 October 2008, 07:15 AM -0700):
> what is the best way to create a new file in the server using dojo_data?
>
> Example:
> $data = new Zend_Dojo_Data();
> $data->setIdentifier('name');
> $data->setLabel('label');
> $data->addItems(array(
> array('name'=> 'name01', 'label'=>'label01'),
> array('name'=> 'name02', 'label'=>'label02'),
> array('name'=> 'name03', 'label'=>'label03'),
> ));
>
> I'd like to create a new file ics.json within $data in the path
> of the server /public/user/ics.json.

The way I'm reading your request is that you want to dump the results of
Zend_Dojo_Data to the file 'ics.json'? If so, simply do the following:

file_put_contents('path/to/ics.json', $data->toJson());

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

[fw-mvc] namefile.json from Zend_Dojo_Data

hi
what is the best way to create a new file in the server using dojo_data?

Example:
$data = new Zend_Dojo_Data();
$data->setIdentifier('name');
$data->setLabel('label');
$data->addItems(array(
array('name'=> 'name01', 'label'=>'label01'),
array('name'=> 'name02', 'label'=>'label02'),
array('name'=> 'name03', 'label'=>'label03'),
));

I'd like to create a new file ics.json within $data in the path
of the server /public/user/ics.json.

Thanks
--
View this message in context: http://www.nabble.com/namefile.json-from-Zend_Dojo_Data-tp20266827p20266827.html
Sent from the Zend MVC mailing list archive at Nabble.com.

Re: [fw-db] Parsing through large result sets

Luiz my dear friend...

You just made it to my "Top 1" list!

Thank you very much... It's exactly what I am looking for.

Have a nice weekend...

Best regards,
Jan

On Fri, Oct 31, 2008 at 13:14, Luiz Fernando <kgbfernando@yahoo.com.br> wrote:
Hi,

You can do this:
$sql = "SELECT something FROM random-table-with-an-obscene-large-amount-of-entries";
$res = $db->query($sql);
while ($row = $res->fetch(Zend_Db::FETCH_NUM)) {
// do some with the data returned in $row
}

Regards,
Luiz Fernando





De: janpolsen <janpolsen@gmail.com>
Para: fw-db@lists.zend.com
Enviadas: Sexta-feira, 31 de Outubro de 2008 8:48:49
Assunto: [fw-db] Parsing through large result sets

Oi

Now I have googled through various search queries for the last two hours and I'm about to toss the towel.

I am used to do something like this:
$sql = "SELECT something FROM random-table-with-an-obscene-large-amount-of-entries";
$res = mssql_query($sql);
while ($row = mssql_fetch_array($res)) {
// do some with the data returned in $row
}

Now I have moved over to Zend_Db and want to do the very same thing, but how?
Some places I use a simple straight through approach like:
$sql = "SELECT something FROM random-table-with-a-small-amount-of-data";
$rows = $db->fetchAll($sql);
foreach ($rows AS $row) {
// do some with the data returned in $row
}

However I run into memory problems, if I use that approach with my random-table-with-an-obscene-large-amount-of-entries.

What am I missing here? Isn't it possible to use a while()-structure to loop through a Zend_Db result set? Thanks in advance...

View this message in context: Parsing through large result sets
Sent from the Zend DB mailing list archive at Nabble.com.


Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.

Res: [fw-db] Parsing through large result sets

Hi,

You can do this:
$sql = "SELECT something FROM random-table-with-an-obscene-large-amount-of-entries";
$res = $db->query($sql);
while ($row = $res->fetch(Zend_Db::FETCH_NUM)) {
// do some with the data returned in $row
}

Regards,
Luiz Fernando





De: janpolsen <janpolsen@gmail.com>
Para: fw-db@lists.zend.com
Enviadas: Sexta-feira, 31 de Outubro de 2008 8:48:49
Assunto: [fw-db] Parsing through large result sets

Oi

Now I have googled through various search queries for the last two hours and I'm about to toss the towel.

I am used to do something like this:
$sql = "SELECT something FROM random-table-with-an-obscene-large-amount-of-entries";
$res = mssql_query($sql);
while ($row = mssql_fetch_array($res)) {
// do some with the data returned in $row
}

Now I have moved over to Zend_Db and want to do the very same thing, but how?
Some places I use a simple straight through approach like:
$sql = "SELECT something FROM random-table-with-a-small-amount-of-data";
$rows = $db->fetchAll($sql);
foreach ($rows AS $row) {
// do some with the data returned in $row
}

However I run into memory problems, if I use that approach with my random-table-with-an-obscene-large-amount-of-entries.

What am I missing here? Isn't it possible to use a while()-structure to loop through a Zend_Db result set? Thanks in advance...

View this message in context: Parsing through large result sets
Sent from the Zend DB mailing list archive at Nabble.com.


Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.

[fw-db] Parsing through large result sets

Oi

Now I have googled through various search queries for the last two hours and I'm about to toss the towel.

I am used to do something like this:
$sql = "SELECT something FROM random-table-with-an-obscene-large-amount-of-entries"; $res = mssql_query($sql); while ($row = mssql_fetch_array($res)) {   // do some with the data returned in $row }

Now I have moved over to Zend_Db and want to do the very same thing, but how?
Some places I use a simple straight through approach like:
$sql = "SELECT something FROM random-table-with-a-small-amount-of-data"; $rows = $db->fetchAll($sql); foreach ($rows AS $row) {   // do some with the data returned in $row }

However I run into memory problems, if I use that approach with my random-table-with-an-obscene-large-amount-of-entries.

What am I missing here? Isn't it possible to use a while()-structure to loop through a Zend_Db result set? Thanks in advance...

View this message in context: Parsing through large result sets
Sent from the Zend DB mailing list archive at Nabble.com.

2008年10月30日星期四

[fw-mvc] Zend_Db prepare statements with two references to named parameter

This is really weird:

SELECT * FROM table WHERE col = :bindVal AND col2 = :bindVal

does not work, it appears that Zend_Db has problems with using the same
bind parameter in the same statement more than once!

Is this by design???

Re: [fw-db] Extending Zend_Db_Table_Row with non-column variables?

Thanks for the reply!

However, during some testing in preparation to trying your suggestion,
I discovered my
problem analysis was wrong:

I _can_ add instance variables, and they will not be caught by the
magic methods.
The only requirement is that they are declared in the class, and
accessed in scope.

My previous misunderstanding was probably a due to trying to access
a protected variable from the outside, but misdiagnosed as the magic setter
intervening in a valid reference.

It would still be nice to have a subclass like yours in the library to
derive from,
so you can add fields dynamically like normal in PHP.

But for this project, I am happy just declaring my extra fields as instance
variables in the class def.

-Joachim

Re: [fw-db] Extending Zend_Db_Table_Row with non-column variables?

What you mention is relatevily easy, and is something I do in all my
projects.

What I do is:

1.- Internally, Zend_Db_Table_Row has a "_data" property (and a
_cleanData). All columns/value pairs will be setted to "_data" array.
2.- Extends Zend_Db_Table_Row to create YourOwn_Db_Table_Row class.
3.- Add to this class the "_otherData" property, that will be an array
to hold the variables that doesn´t form part of the columns structure.
4.- Overload the magic metthods "__set", "__get", "__isset" and
"__unset" to work with this 2 arrays as if they were only one:
__get: first will try to return the variable from _data and if it is
not finded will try to get it from _otherData
__set: setting a var to the row will need to check if the "name" of
the var is a column (can do this checking the cols structure of the
table with table->info('cols')); If the var to be setted forms part of
the column structure, then it will goes to _data, everything else will
go to "_otherData" array.
__isset: needs to check in both _data and _otherData to return if a
var is set
__unset: needs to check in both _data and _otherData to unset a var

With this class, you can keep your row data completely clean, but
also, you will be able to assign vars to it without problem.

El 30 Oct 2008, a las 11:26, Joachim Lous escribió:

> Can I add a data to a table row class _without_ it interfering
> with the db-mapping?
>
> I'm finding it extremely useful to map my tables to custom
> Zend_Db_Table subclasses,
> and set them up to return objects of custom of Zend_Db_Table_Row
> subclasses .
>
> I extend the row class with custom methods for inspecting and
> manipulatiing
> them in no-trivial ways, and can still just save them afterwards. So
> far so good.
>
> The problem arises when want to extend the class not just with methods
> but also with variables. Variables that do not match any db column.
> This is
> useful for caching the results of expensive operations, and to be
> able to use
> the same instance as return value for several calls). If I simply
> add a custom
> variable, save will not work, no matter what access policy I put on
> on it.
>
> Is there any way to exempt variables from the automatic db-mapping
> without
> going deep behind the curtain?
> Are there any builtin variables that could be used to 'hang' my
> custom data
> under without disturbing how the rest works?
>
> If not, consider this a feature request.
>
> Some possible designs, in my order of preference:
> 1) A flag that exempts all 'private' and 'protected' fields from
> mapping,
> not just the builtin ones.
>
> 2) A prefix that will exempt any variable names starting with it
>
> 3) An overridable method that clears an attribute name for db-mapping
> (this should probabaly be the underlying mechanism anyway, the
> default
> implementation perhaps being one of the above)
>
> 4) A builtin "extra" protected field that is never included, just
> like the
> other builtins, dedicated to user data.
>

[fw-db] Extending Zend_Db_Table_Row with non-column variables?

Can I add a data to a table row class _without_ it interfering
with the db-mapping?

I'm finding it extremely useful to map my tables to custom
Zend_Db_Table subclasses,
and set them up to return objects of custom of Zend_Db_Table_Row subclasses .

I extend the row class with custom methods for inspecting and manipulatiing
them in no-trivial ways, and can still just save them afterwards. So
far so good.

The problem arises when want to extend the class not just with methods
but also with variables. Variables that do not match any db column. This is
useful for caching the results of expensive operations, and to be able to use
the same instance as return value for several calls). If I simply add a custom
variable, save will not work, no matter what access policy I put on on it.

Is there any way to exempt variables from the automatic db-mapping without
going deep behind the curtain?
Are there any builtin variables that could be used to 'hang' my custom data
under without disturbing how the rest works?

If not, consider this a feature request.

Some possible designs, in my order of preference:
1) A flag that exempts all 'private' and 'protected' fields from mapping,
not just the builtin ones.

2) A prefix that will exempt any variable names starting with it

3) An overridable method that clears an attribute name for db-mapping
(this should probabaly be the underlying mechanism anyway, the default
implementation perhaps being one of the above)

4) A builtin "extra" protected field that is never included, just like the
other builtins, dedicated to user data.

[fw-mvc] how to display validation errors explicitly

In my forms I don't want decorators to display my error messages in view, I want to display them by myself

 

in controller I have

 

        public function registerAction()

        {

            $form = new Zend_Form;

            $form->setAction('user/save')

                 ->setMethod('post');

               

            $user_name = $form->createElement('text','txt_username',array('class'=>'input'));

            $user_name->addValidator('alnum')

                      ->setRequired(true)

                      ->setDecorators(array('ViewHelper'))

                      ->addFilter('StringToLower');

 

            $form->submit->setDecorators(array('ViewHelper'));

            $this->view->form = $form;

            $this->_form = $form;

           

            $request = $this->getRequest();

            if($request->isPost())

            {

                if($form->isValid($request->getPost()))

                {

                   

                }

                else

                {

                                ## here I want to display errors of form ##

                     print_r($form->user_name->getErrors()); //return empty array

                     print_r($form->getErrorMessages()); //return empty array

              

                }

            }

           

        }

 

 

 

regards

 

Arslan Ali

 

2008年10月29日星期三

Re: [fw-mvc] How to disable post when i perform redirecting

-- Hector Virgen <djvirgen@gmail.com> wrote
(on Wednesday, 29 October 2008, 02:52 PM -0700):
> <OT>
>
> When using the strategy pattern for the controller's helper broker, should the
> method be capitalized or lowercase?
>
> $this->_helper->Redirector->goto(action, controller, module);
>
> vs.
>
> $this->_helper->redirector->goto(action, controller, module);
>
> Both versions work, and I've seen both versions in the online documentation.
> Which is "correct", if any? Thanks!

Both are correct, and both work. Internally, the helper broker does a
ucfirst() on it, and then uses that to do a lookup against the various
prefix paths registered.


> </OT>
>
> On Wed, Oct 29, 2008 at 2:48 PM, Goran Juric <goran.juric@nacional.hr> wrote:
>
>
>
> unknownman wrote:
> >
> > but after redirecting when i reload index action in browser , myAction
> > execute too,
> > how can i disable it in redirector
> >
>
> Use $this->_helper->Redirector->goto(action, controller, module);
> --
> View this message in context: http://www.nabble.com/
> How-to-disable-post-when-i-perform-redirecting-tp20236071p20236600.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>
>
>
>
>
> --
> -Hector

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

Re: [fw-mvc] How to disable post when i perform redirecting

<OT>

When using the strategy pattern for the controller's helper broker, should the method be capitalized or lowercase?

$this->_helper->Redirector->goto(action, controller, module);

vs.

$this->_helper->redirector->goto(action, controller, module);

Both versions work, and I've seen both versions in the online documentation. Which is "correct", if any? Thanks!

</OT>

On Wed, Oct 29, 2008 at 2:48 PM, Goran Juric <goran.juric@nacional.hr> wrote:


unknownman wrote:
>
> but after redirecting when i reload index action in browser , myAction
> execute too,
> how can i disable it in redirector
>

Use $this->_helper->Redirector->goto(action, controller, module);
--
View this message in context: http://www.nabble.com/How-to-disable-post-when-i-perform-redirecting-tp20236071p20236600.html
Sent from the Zend MVC mailing list archive at Nabble.com.




--
-Hector

Re: [fw-mvc] How to disable post when i perform redirecting

unknownman wrote:
>
> but after redirecting when i reload index action in browser , myAction
> execute too,
> how can i disable it in redirector
>

Use $this->_helper->Redirector->goto(action, controller, module);
--
View this message in context: http://www.nabble.com/How-to-disable-post-when-i-perform-redirecting-tp20236071p20236600.html
Sent from the Zend MVC mailing list archive at Nabble.com.

RE: [fw-webservices] See the soap message

Well I think because the webservice you're calling encodes the '<' and
'>' chars itself.

The webservice I call doesn't do that, so I guess it depends on the
server...

Here is an example "getlastresponse" of a service I call:

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header
xmlns="**namespace
censured**"><SessionId>12345</SessionId></soap:Header><soap:Body><Securi
ty_AuthenticateReply xmlns="="**namespace
censured**"><processStatus><statusCode>P</statusCode></processStatus></S
ecurity_AuthenticateReply></soap:Body></soap:Envelope>

-----Original Message-----
From: jjsanders [mailto:jigalroecha@gmail.com]
Sent: woensdag 29 oktober 2008 12:59
To: fw-webservices@lists.zend.com
Subject: RE: [fw-webservices] See the soap message


I have found another webservice to test with. And i got a result.
Here is my message:

<?
set_include_path('./library/');
require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();
$wsdl = "http://www.webservicex.com/globalweather.asmx?WSDL";
$client = new Zend_Soap_Client($wsdl);
$client ->setSoapVersion(SOAP_1_1);
$params =array(
'CityName' => 'Antwerp',
'CountryName' => 'Belgium'
);
$client->GetWeather($params);
$bla = $client->getLastResponse();
Zend_Debug::dump($bla, 'bla',true);

?>

The result is:
bla string(1087) "<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetWeatherRespo
nse
xmlns="http://www.webserviceX.NET"><GetWeatherResult>&lt;?xml
version="1.0"
encoding="utf-16"?&gt;
&lt;CurrentWeather&gt;
&lt;Location&gt;Antwerpen / Deurne, Belgium (EBAW) 51-12N 004-28E
14M&lt;/Location&gt;
&lt;Time&gt;Oct 29, 2008 - 06:20 AM EST / 2008.10.29 1120
UTC&lt;/Time&gt;
&lt;Wind&gt; from the E (100 degrees) at 3 MPH (3 KT) (direction
variable):0&lt;/Wind&gt;
&lt;Visibility&gt; 4 mile(s):0&lt;/Visibility&gt;
&lt;SkyConditions&gt; mostly clear&lt;/SkyConditions&gt;
&lt;Temperature&gt; 46 F (8 C)&lt;/Temperature&gt;
&lt;DewPoint&gt; 39 F (4 C)&lt;/DewPoint&gt;
&lt;RelativeHumidity&gt; 75%&lt;/RelativeHumidity&gt;
&lt;Pressure&gt; 29.80 in. Hg (1009 hPa)&lt;/Pressure&gt;
&lt;Status&gt;Success&lt;/Status&gt;
&lt;/CurrentWeather&gt;</GetWeatherResult></GetWeatherResponse></soap:Bo
dy></soap:Envelope>"

My question is why the < and > are escaped.

DerMika wrote:
>
> Hello,
>
> When I go to http://www.ejse.com/WeatherService/Service.asmx and
invoke
> the webservice through the browser, I get the same error. I think you
> need to use a different soap server to test your client ;)
>
> Dieter
>
> -----Original Message-----
> From: jjsanders [mailto:jigalroecha@gmail.com]
> Sent: dinsdag 28 oktober 2008 16:37
> To: fw-webservices@lists.zend.com
> Subject: RE: [fw-webservices] See the soap message
>
>
> I think i still don't understand it.
>
> I tried a testserver:
>
> <?
> set_include_path('./library/');
> require_once('Zend/Loader.php');
> Zend_Loader::registerAutoload();
>
> $wsdl = "http://www.ejse.com/WeatherService/Service.asmx?WSDL";
> $options = array('trace' => true);
>
> $client = new Zend_Soap_Client($wsdl);
> $client ->setEncoding("UTF-8");
> $client ->setSoapVersion(SOAP_1_1);
> $params = array(
> "zipCode" => '1082'
> );
> $client->GetWeatherInfo($params);
> $bla = $client->getLastRequest();
> Zend_Debug::dump($bla, 'bla',true);
>
> ?>
>
> But this gives me the result:
> Fatal error: Uncaught SoapFault exception: [soap:Server] Server was
> unable
> to process request. --> Object reference not set to an instance of an
> object. in /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php:887
> Stack
> trace: #0 [internal function]: SoapClient->__call('GetWeatherInfo',
> Array)
> #1 [internal function]: Zend_Soap_Client_Common->GetWeatherInfo(Array)
> #2
> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php(887):
> call_user_func_array(Array, Array) #3 [internal function]:
> Zend_Soap_Client->__call('GetWeatherInfo', Array) #4
> /usr/local/wwwroot/jigal/wstest.php(15):
> Zend_Soap_Client->GetWeatherInfo(Array) #5 {main} thrown in
> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php on line 887
>
> DerMika wrote:
>>
>> Well, assuming the soap server has a method TestMe (defined in the
> WSDL
>> for example) with a parameter number (which is of type integer) you
do
>> this:
>>
>> $client->TestMe(array($number));
>>
>> $bla = $client->getLastRequest();
>>
>> You can also do this:
>>
>> $client->__call('TestMe', array($number));
>>
>> $bla = $client->getLastRequest();
>>
>>
>>
>> -----Original Message-----
>> From: jjsanders [mailto:jigalroecha@gmail.com]
>> Sent: dinsdag 28 oktober 2008 13:29
>> To: fw-webservices@lists.zend.com
>> Subject: RE: [fw-webservices] See the soap message
>>
>>
>> ok but then I first need to do an request. .. I assume.
>> How do I do that?
>> How do I send out an SoapRequest?
>>
>> This is what I have till now:
>>
>> $options = array('trace' => true);
>>
>> $client = new Zend_Soap_Client($wsdl);
>> $client ->setEncoding("UTF-8");
>> $client ->setSoapVersion(SOAP_1_1);
>>
>> $bla = $client->getLastRequest();
>>
>> Zend_Debug::dump($bla, 'bla',true);
>>
>> beberlei wrote:
>>>
>>>
>>> this is why its called "getLastRequest", you can only use it AFTER
> the
>>> request has been fired. How should it know which soap Action with
>> which
>>> parameters you are calling?
>>>
>>> On Tue, 28 Oct 2008 02:00:24 -0700 (PDT), jjsanders
>>> <jigalroecha@gmail.com>
>>> wrote:
>>>>
>>>> Okaay,
>>>>
>>>> But why then do i get an empty string?
>>>> I just want to see the soap message before it gets sent?
>>>>
>>>> DerMika wrote:
>>>>>
>>>>> Trace is enabled by default in Zend_Soap_Client. You don't have to
>>>>> define it.
>>>>>
>>>>> Just use the getlastresponse and getlastrequest methods, they
> should
>>>>> work.
>>>>>
>>>>> Dieter
>>>>>
>>>>> -----Original Message-----
>>>>> From: jjsanders [mailto:jigalroecha@gmail.com]
>>>>> Sent: dinsdag 28 oktober 2008 9:20
>>>>> To: fw-webservices@lists.zend.com
>>>>> Subject: Re: [fw-webservices] See the soap message
>>>>>
>>>>>
>>>>> When i do $client = new Zend_Soap_Client($wsdl, array('trace' =>
>> true));
>>>>> I get the error message:
>>>>> Fatal error: Uncaught exception 'Zend_Soap_Client_Exception' with
>>>>> message
>>>>> 'Unknown SOAP client option' in
>>>>> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php:223 Stack
>> trace:
>>>>> #0
>>>>> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php(122):
>>>>> Zend_Soap_Client->setOptions(Array) #1
>>>>> /usr/local/wwwroot/jigal/wstest.php(10):
>>>>> Zend_Soap_Client->__construct('http://andijvie...', Array) #2
> {main}
>>>>> thrown
>>>>> in /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php on line
> 223
>>>>>
>>>>> Furthermore:
>>>>>
>>>>> this
>>>>> $client = new Zend_Soap_Client($wsdl, $options);
>>>>> $client ->setEncoding("UTF-8");
>>>>> $client ->setSoapVersion(SOAP_1_1);
>>>>> $bla = $client->getLastRequest();
>>>>> Zend_Debug::dump($bla, 'bla',true);
>>>>>
>>>>> gives me an empty string.
>>>>>
>>>>>
>>>>> beberlei wrote:
>>>>>>
>>>>>> yes, there are possibilities to see both request and response:
>>>>>>
>>>>>> $client = new Zend_Soap_Client($wsdl, array('trace' => true));
>>>>>>
>>>>>> $client->... do stuff;
>>>>>>
>>>>>> and then you can do:
>>>>>>
>>>>>> $client->getLastRequest();
>>>>>> $client->getLastResponse();
>>>>>> $client->getLastRequestHeaders();
>>>>>> $client->getLastResponseHeaders();
>>>>>>
>>>>>> On Monday 27 October 2008 17:45:29 Jigal sanders wrote:
>>>>>>> Hello everyone.
>>>>>>>
>>>>>>> I have the following test stuff for a soap message :
>>>>>>>
>>>>>>> <?
>>>>>>> //if(is_dir('./library/')) echo "ja"; exit;
>>>>>>> set_include_path('./library/');
>>>>>>> require_once('Zend/Loader.php');
>>>>>>> Zend_Loader::registerAutoload();
>>>>>>> $wsdl = "http://buzz.nl/WSCRM/SubscriptionService?wsdl";
>>>>>>> $client = new Zend_Soap_Client($wsdl);
>>>>>>> $client ->setEncoding("UTF-8");
>>>>>>> $client ->setSoapVersion(SOAP_1_1);
>>>>>>>
>>>>>>> Zend_Debug::dump($client, 'bla',true);
>>>>>>>
>>>>>>> ?>
>>>>>>>
>>>>>>> is there a way to see the acutal soap message in xml?
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Benjamin Eberlei
>>>>>> http://www.beberlei.de
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
http://www.nabble.com/See-the-soap-message-tp20191520p20202969.html
>>>>> Sent from the Zend Web Services mailing list archive at
Nabble.com.
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - http://www.avg.com
>>>>> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
>>>>> 27/10/2008 7:57
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/See-the-soap-message-tp20191520p20203472.html
>>>> Sent from the Zend Web Services mailing list archive at Nabble.com.
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/See-the-soap-message-tp20191520p20206306.html
>> Sent from the Zend Web Services mailing list archive at Nabble.com.
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com
>> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
>> 27/10/2008 22:44
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/See-the-soap-message-tp20191520p20209124.html
> Sent from the Zend Web Services mailing list archive at Nabble.com.
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.4/1751 - Release Date:
> 27/10/2008 22:44
>
>

--
View this message in context:
http://www.nabble.com/See-the-soap-message-tp20191520p20225569.html
Sent from the Zend Web Services mailing list archive at Nabble.com.


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.4/1751 - Release Date:
27/10/2008 22:44

[fw-mvc] Re: Zend_Form_Element_file

I saw this question was already answered. My apologies.

On Wed, Oct 29, 2008 at 1:18 PM, Pieter <ptrwrsm@gmail.com> wrote:
> Hi guys,
>
> since I've updated to ZF 1.6.2 I've been having a few problems with
> the zend_form_element_file. I've created a simple test to make sure
> the problem wasn't in any of my other code:
>
> $form = new Zend_Form();
> $form->setAttrib('enctype', 'multipart/form-data');
> $form->setAction('/formtest/index');
> $element = new Zend_Form_Element_File('image');
> $element->setLabel('Image:')
> ->setRequired(true)
> ->setDecorators(array(
> 'ViewHelper',
> array( 'Description', array('tag'=>'p','class'=>'note') ),
> array(array('data' => 'HtmlTag'), array('tag' => 'td', 'class' =>
> 'element')),
> array('Label', array('tag' => 'td')),
> array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
> ))
> ->setDestination('/Users/wp/Sites/knz/tmp/uploads/images/')
> ->addValidator('Count', false, 1)
> ->addValidator('Size', false, 10485760)
> ->addValidator('Extension', false, 'jpg,png,gif');
> $form->addElement($element, 'image');
> $form->addElement('submit', 'submit');
>
> This will give the following error:
> Fatal error: Unsupported operand types in
> /Users/wp/Sites/library/Zend/File/Transfer/Adapter/Abstract.php on
> line 796
>
> When the setDecorators function is removed, the error will disappear
> as well. What am I doing wrong?
>
> Thanks for your help!
>
> Regards,
> Pieter
>

[fw-mvc] Zend_Form_Element_file

Hi guys,

since I've updated to ZF 1.6.2 I've been having a few problems with
the zend_form_element_file. I've created a simple test to make sure
the problem wasn't in any of my other code:

$form = new Zend_Form();
$form->setAttrib('enctype', 'multipart/form-data');
$form->setAction('/formtest/index');
$element = new Zend_Form_Element_File('image');
$element->setLabel('Image:')
->setRequired(true)
->setDecorators(array(
'ViewHelper',
array( 'Description', array('tag'=>'p','class'=>'note') ),
array(array('data' => 'HtmlTag'), array('tag' => 'td', 'class' =>
'element')),
array('Label', array('tag' => 'td')),
array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
))
->setDestination('/Users/wp/Sites/knz/tmp/uploads/images/')
->addValidator('Count', false, 1)
->addValidator('Size', false, 10485760)
->addValidator('Extension', false, 'jpg,png,gif');
$form->addElement($element, 'image');
$form->addElement('submit', 'submit');

This will give the following error:
Fatal error: Unsupported operand types in
/Users/wp/Sites/library/Zend/File/Transfer/Adapter/Abstract.php on
line 796

When the setDecorators function is removed, the error will disappear
as well. What am I doing wrong?

Thanks for your help!

Regards,
Pieter

RE: [fw-webservices] See the soap message

I have found another webservice to test with. And i got a result.
Here is my message:

<?
set_include_path('./library/');
require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();
$wsdl = "http://www.webservicex.com/globalweather.asmx?WSDL";
$client = new Zend_Soap_Client($wsdl);
$client ->setSoapVersion(SOAP_1_1);
$params =array(
'CityName' => 'Antwerp',
'CountryName' => 'Belgium'
);
$client->GetWeather($params);
$bla = $client->getLastResponse();
Zend_Debug::dump($bla, 'bla',true);

?>

The result is:
bla string(1087) "<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetWeatherResponse
xmlns="http://www.webserviceX.NET"><GetWeatherResult>&lt;?xml version="1.0"
encoding="utf-16"?&gt;
&lt;CurrentWeather&gt;
&lt;Location&gt;Antwerpen / Deurne, Belgium (EBAW) 51-12N 004-28E
14M&lt;/Location&gt;
&lt;Time&gt;Oct 29, 2008 - 06:20 AM EST / 2008.10.29 1120 UTC&lt;/Time&gt;
&lt;Wind&gt; from the E (100 degrees) at 3 MPH (3 KT) (direction
variable):0&lt;/Wind&gt;
&lt;Visibility&gt; 4 mile(s):0&lt;/Visibility&gt;
&lt;SkyConditions&gt; mostly clear&lt;/SkyConditions&gt;
&lt;Temperature&gt; 46 F (8 C)&lt;/Temperature&gt;
&lt;DewPoint&gt; 39 F (4 C)&lt;/DewPoint&gt;
&lt;RelativeHumidity&gt; 75%&lt;/RelativeHumidity&gt;
&lt;Pressure&gt; 29.80 in. Hg (1009 hPa)&lt;/Pressure&gt;
&lt;Status&gt;Success&lt;/Status&gt;
&lt;/CurrentWeather&gt;</GetWeatherResult></GetWeatherResponse></soap:Body></soap:Envelope>"

My question is why the < and > are escaped.

DerMika wrote:
>
> Hello,
>
> When I go to http://www.ejse.com/WeatherService/Service.asmx and invoke
> the webservice through the browser, I get the same error. I think you
> need to use a different soap server to test your client ;)
>
> Dieter
>
> -----Original Message-----
> From: jjsanders [mailto:jigalroecha@gmail.com]
> Sent: dinsdag 28 oktober 2008 16:37
> To: fw-webservices@lists.zend.com
> Subject: RE: [fw-webservices] See the soap message
>
>
> I think i still don't understand it.
>
> I tried a testserver:
>
> <?
> set_include_path('./library/');
> require_once('Zend/Loader.php');
> Zend_Loader::registerAutoload();
>
> $wsdl = "http://www.ejse.com/WeatherService/Service.asmx?WSDL";
> $options = array('trace' => true);
>
> $client = new Zend_Soap_Client($wsdl);
> $client ->setEncoding("UTF-8");
> $client ->setSoapVersion(SOAP_1_1);
> $params = array(
> "zipCode" => '1082'
> );
> $client->GetWeatherInfo($params);
> $bla = $client->getLastRequest();
> Zend_Debug::dump($bla, 'bla',true);
>
> ?>
>
> But this gives me the result:
> Fatal error: Uncaught SoapFault exception: [soap:Server] Server was
> unable
> to process request. --> Object reference not set to an instance of an
> object. in /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php:887
> Stack
> trace: #0 [internal function]: SoapClient->__call('GetWeatherInfo',
> Array)
> #1 [internal function]: Zend_Soap_Client_Common->GetWeatherInfo(Array)
> #2
> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php(887):
> call_user_func_array(Array, Array) #3 [internal function]:
> Zend_Soap_Client->__call('GetWeatherInfo', Array) #4
> /usr/local/wwwroot/jigal/wstest.php(15):
> Zend_Soap_Client->GetWeatherInfo(Array) #5 {main} thrown in
> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php on line 887
>
> DerMika wrote:
>>
>> Well, assuming the soap server has a method TestMe (defined in the
> WSDL
>> for example) with a parameter number (which is of type integer) you do
>> this:
>>
>> $client->TestMe(array($number));
>>
>> $bla = $client->getLastRequest();
>>
>> You can also do this:
>>
>> $client->__call('TestMe', array($number));
>>
>> $bla = $client->getLastRequest();
>>
>>
>>
>> -----Original Message-----
>> From: jjsanders [mailto:jigalroecha@gmail.com]
>> Sent: dinsdag 28 oktober 2008 13:29
>> To: fw-webservices@lists.zend.com
>> Subject: RE: [fw-webservices] See the soap message
>>
>>
>> ok but then I first need to do an request. .. I assume.
>> How do I do that?
>> How do I send out an SoapRequest?
>>
>> This is what I have till now:
>>
>> $options = array('trace' => true);
>>
>> $client = new Zend_Soap_Client($wsdl);
>> $client ->setEncoding("UTF-8");
>> $client ->setSoapVersion(SOAP_1_1);
>>
>> $bla = $client->getLastRequest();
>>
>> Zend_Debug::dump($bla, 'bla',true);
>>
>> beberlei wrote:
>>>
>>>
>>> this is why its called "getLastRequest", you can only use it AFTER
> the
>>> request has been fired. How should it know which soap Action with
>> which
>>> parameters you are calling?
>>>
>>> On Tue, 28 Oct 2008 02:00:24 -0700 (PDT), jjsanders
>>> <jigalroecha@gmail.com>
>>> wrote:
>>>>
>>>> Okaay,
>>>>
>>>> But why then do i get an empty string?
>>>> I just want to see the soap message before it gets sent?
>>>>
>>>> DerMika wrote:
>>>>>
>>>>> Trace is enabled by default in Zend_Soap_Client. You don't have to
>>>>> define it.
>>>>>
>>>>> Just use the getlastresponse and getlastrequest methods, they
> should
>>>>> work.
>>>>>
>>>>> Dieter
>>>>>
>>>>> -----Original Message-----
>>>>> From: jjsanders [mailto:jigalroecha@gmail.com]
>>>>> Sent: dinsdag 28 oktober 2008 9:20
>>>>> To: fw-webservices@lists.zend.com
>>>>> Subject: Re: [fw-webservices] See the soap message
>>>>>
>>>>>
>>>>> When i do $client = new Zend_Soap_Client($wsdl, array('trace' =>
>> true));
>>>>> I get the error message:
>>>>> Fatal error: Uncaught exception 'Zend_Soap_Client_Exception' with
>>>>> message
>>>>> 'Unknown SOAP client option' in
>>>>> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php:223 Stack
>> trace:
>>>>> #0
>>>>> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php(122):
>>>>> Zend_Soap_Client->setOptions(Array) #1
>>>>> /usr/local/wwwroot/jigal/wstest.php(10):
>>>>> Zend_Soap_Client->__construct('http://andijvie...', Array) #2
> {main}
>>>>> thrown
>>>>> in /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php on line
> 223
>>>>>
>>>>> Furthermore:
>>>>>
>>>>> this
>>>>> $client = new Zend_Soap_Client($wsdl, $options);
>>>>> $client ->setEncoding("UTF-8");
>>>>> $client ->setSoapVersion(SOAP_1_1);
>>>>> $bla = $client->getLastRequest();
>>>>> Zend_Debug::dump($bla, 'bla',true);
>>>>>
>>>>> gives me an empty string.
>>>>>
>>>>>
>>>>> beberlei wrote:
>>>>>>
>>>>>> yes, there are possibilities to see both request and response:
>>>>>>
>>>>>> $client = new Zend_Soap_Client($wsdl, array('trace' => true));
>>>>>>
>>>>>> $client->... do stuff;
>>>>>>
>>>>>> and then you can do:
>>>>>>
>>>>>> $client->getLastRequest();
>>>>>> $client->getLastResponse();
>>>>>> $client->getLastRequestHeaders();
>>>>>> $client->getLastResponseHeaders();
>>>>>>
>>>>>> On Monday 27 October 2008 17:45:29 Jigal sanders wrote:
>>>>>>> Hello everyone.
>>>>>>>
>>>>>>> I have the following test stuff for a soap message :
>>>>>>>
>>>>>>> <?
>>>>>>> //if(is_dir('./library/')) echo "ja"; exit;
>>>>>>> set_include_path('./library/');
>>>>>>> require_once('Zend/Loader.php');
>>>>>>> Zend_Loader::registerAutoload();
>>>>>>> $wsdl = "http://buzz.nl/WSCRM/SubscriptionService?wsdl";
>>>>>>> $client = new Zend_Soap_Client($wsdl);
>>>>>>> $client ->setEncoding("UTF-8");
>>>>>>> $client ->setSoapVersion(SOAP_1_1);
>>>>>>>
>>>>>>> Zend_Debug::dump($client, 'bla',true);
>>>>>>>
>>>>>>> ?>
>>>>>>>
>>>>>>> is there a way to see the acutal soap message in xml?
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Benjamin Eberlei
>>>>>> http://www.beberlei.de
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/See-the-soap-message-tp20191520p20202969.html
>>>>> Sent from the Zend Web Services mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - http://www.avg.com
>>>>> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
>>>>> 27/10/2008 7:57
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/See-the-soap-message-tp20191520p20203472.html
>>>> Sent from the Zend Web Services mailing list archive at Nabble.com.
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/See-the-soap-message-tp20191520p20206306.html
>> Sent from the Zend Web Services mailing list archive at Nabble.com.
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com
>> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
>> 27/10/2008 22:44
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/See-the-soap-message-tp20191520p20209124.html
> Sent from the Zend Web Services mailing list archive at Nabble.com.
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.4/1751 - Release Date:
> 27/10/2008 22:44
>
>

--
View this message in context: http://www.nabble.com/See-the-soap-message-tp20191520p20225569.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

2008年10月28日星期二

[fw-mvc] vaga para programador php (zend framework)

Empresa : Sétima - Tecnologias da Informação e Comunicação   
A Sétima Tecnologias de informação e comunicação Lda, surgiu de uma necessidade identificada no mercado, de desenvolvimento de software web.

É um projecto que terá como principal intuito, unir a experiência adquirida em dois mercados, representados por duas marcas sobejamente conhecidas na nossa praça:

• EUESTOUAQUI.PT – SERVIÇO NACIONAL DE ALOJAMENTO WEB, que se dedica exclusivamente ao mercado de alojamento Web e serviço de datacenter,
• CRITICALWEB – DESENVOLVIMENTO DE CONTEUDOS MULTIMÉDIA, que se dedica ao desenvolvimento de aplicações multimédia (Cd-rom, Web sites), bem como a criação de imagens corporativas para empresas e outros serviços na área do design.
• SÉTIMA – TECNOLOGIAS DA INFORMAÇÃO E COMUNICAÇÃO, empresa “mãe”, que se dedica ao desenvolvimento de Plataformas Web e Software Web.

Somos uma empresa especializada em Tecnologias de Informação e Comunicação (TIC). Desenvolvemos soluções exclusivamente dedicadas à web.

Composta por uma Equipa multidisciplinar com larga experiência em desenvolvimento de aplicações Web e que faz dos padrões éticos e profissionais o eixo central da sua filosofia de trabalho. O nosso melhor prémio, é o nosso crescimento, que assenta no facto de uma boa parte no nosso profissionalismo e dinamismo. Para a SÉTIMA – TECNOLOGIAS DA INFORMAÇÃO E COMUNICAÇÃO, os funcionários são encarados como colaboradores. Função :

 

Programador web    Tipo : Full Time

 

Data do anúncio : 2008-10-28 Descrição :
A Sétima - Tecnologias da Informação e Comunicação, procura oportunidades de estágio/desempregados e/ou primeiro emprego, para profissionais que tenham conhecimentos voltados na área de web designer (html, flash, java script, ajax), css e ferramentas adobe) e web developers (php e mysql). Perfil :
• Conhecimentos em PHP, e domínio da linguagem numa abordagem orientada para o objecto PHP5;
• Preferência em conhecimentos na framework ZEND;
• Conhecimentos em: Javascript/Ajax, XML e CSS;
• Conhecimentos em: SQL (MySQL e respectivos drives);
• Familiarização com o desenvolvimento em ambientes open source;
• Conhecimentos para lá dos especificados poderão ser valorizados;
• Forte sentido de responsabilidade;
Recém-licenciados - Oferta de Estágio profissional remunerado, sendo a remuneração standard dos mesmos de 2 salários mínimos nacionais podendo ser acrescida de subsidio de refeição e subsidio de alojamento caso o candidato tenha perfil para o programa Inovjovem. Full-time, 9 ou 12 meses de estágio.

• Facilidade de interacção com o cliente e equipa;
• Proactividade e dinamismo;
• Predisposição para aprendizagem contínua;
• Ter disponibilidade imediata e a tempo completo;
• Formação ao nível do 12º ano ou superior.
Oferta :
• Progressão contínua e aprendizagem;
• Integração em projectos inovadores e aliciantes;
• Integração em equipa jovem e dinâmica;
Informação de Contacto :
Sétima - Tecnologias da Informação e Comunicação, Lda.
Edifício IEMINHO
Lugar de casal
4730-575 - Soutelo
Vila Verde (Braga)   Local : Braga

 

Enviem curriculum para: rh@setima.pt

 

 

Saudações Cordiais,

Miguel Vieira

Tecnlogias da informação e Comunicação

+351 93 336 27 07

PCONFIDENTIALITY: This message and any files transmitted with it may contain confidential and/or privileged information and is intended solely for the use of the addressee. If you are not the intended recipient or the person authorised to deliver it to the addressee, you are advised that you have received the message in error. Any use, dissemination, forwarding, printing or copying of this is strictly prohibited. Please notify the sender by return of mail and delete the material. Thank you for your cooperation.

 

Re: [fw-mvc] Multiple upload fields for one form element

No, because files don't have a value. And you don't have an "array" because
all files have the same name. Extending the Multi element would integrate
other problems as file elements behave completly different. We would have to
have the same class two times as we can not extend two classes the same
time. ;-)

If you have had asked if a MultiFile Form-Element would make sense I would
have said it can be discussed.
But for now the file element fit's perfect.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message -----
From: "Cristian Bichis" <contact@zftutorials.com>
To: <fw-mvc@lists.zend.com>
Sent: Tuesday, October 28, 2008 4:53 PM
Subject: Re: [fw-mvc] Multiple upload fields for one form element


> No problem, Thomas... Problem solved ;)
>
> I have one more question.
>
> Isn't somehow normal to have Zend_Form_Element_File derived from
> Zend_Form_Element_Multi than from Zend_Form_Element_Xhtml ?
>
> Since basically the "value" of this form element is an array actually if
> setMultiFile is set to more than 1 ?
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
>
>
>
>> I am building the manual my own...so I always have the latest version :-)
>> It is described in the manual which you can get from trunk.
>>
>> Maybe documentation and implementation have crossed some days... because
>> I was said that setMultiFile is also available in 1.6.2. ;-)
>>
>> Greetings
>> Thomas Weidner, I18N Team Leader, Zend Framework
>> http://www.thomasweidner.com
>>
>> ----- Original Message ----- From: "Cristian Bichis"
>> <contact@zftutorials.com>
>> To: <fw-mvc@lists.zend.com>
>> Sent: Tuesday, October 28, 2008 4:42 PM
>> Subject: Re: [fw-mvc] Multiple upload fields for one form element
>>
>>
>>> You searched for */"setMultiFile"/*.
>>>
>>> No results found.
>>>
>>>
>>> Will check on code directly.
>>>
>>> Thanks
>>>
>>> Cristian
>>>
>>>> Did you read the manual ?
>>>> Look at "setMultiFile()".
>>>>
>>>> Note: Does only work on trunk without problems.
>>>>
>>>> Greetings
>>>> Thomas Weidner, I18N Team Leader, Zend Framework
>>>> http://www.thomasweidner.com
>>>>
>>>> ----- Original Message ----- From: "Cristian Bichis"
>>>> <contact@zftutorials.com>
>>>> To: <fw-mvc@lists.zend.com>
>>>> Sent: Tuesday, October 28, 2008 3:43 PM
>>>> Subject: [fw-mvc] Multiple upload fields for one form element
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> I am encountering a problem when working with Zend_Form_Element_File.
>>>>>
>>>>> My problem would be that for one file form element i need to upload
>>>>> multiple files. Aka: file[] file[] file[]
>>>>>
>>>>> How do i add all those upload fields to form ? By adding multiple
>>>>> fields eahc with same name as file[] ?
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Cristian Bichis
>>>>> www.zftutorials.com | www.zfforums.com | www.zftalk.com |
>>>>> www.zflinks.com
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Cristian Bichis
>>> www.zftutorials.com | www.zfforums.com | www.zftalk.com |
>>> www.zflinks.com
>>>
>>>
>>
>>

Re: [fw-mvc] disable escaping on a Digit.editor elememt

-- Zé Luis <zeluisg@gmail.com> wrote
(on Tuesday, 28 October 2008, 03:56 PM -0000):
> Can someone point me in the right direction on this:
>
> I have a Zend_Dojo_Form with a digit.Editor element in it, I put some links in
> the content of the editor and when I try to save to the database all html
> elements are "escaped".

My guess is that you have magic_quotes_gpc enabled... try turning it
off.

ZF does not escape input using magic quotes, ever.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

[fw-mvc] disable escaping on a Digit.editor elememt

 

Hi !

 

Can someone point me in the right direction on this:

I have a Zend_Dojo_Form with a digit.Editor element in it, I put some links in the content of the editor and when I try to save to the database all html elements are “escaped”.

I have tried the following:

 

$assessment is the editor element.

 

$assessement->setAttrib('escape',false);

 

and

 

 

$decorator = $assessment->getDecorator(‘Description’);

 

$decorator->setOption('escape', false);

 

 

Any help would be appreciated.

 

 

 

Jose

 

Re: [fw-mvc] Multiple upload fields for one form element

No problem, Thomas... Problem solved ;)

I have one more question.

Isn't somehow normal to have Zend_Form_Element_File derived from
Zend_Form_Element_Multi than from Zend_Form_Element_Xhtml ?

Since basically the "value" of this form element is an array actually if
setMultiFile is set to more than 1 ?

--
Best regards,
Cristian Bichis
www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com

> I am building the manual my own...so I always have the latest version :-)
> It is described in the manual which you can get from trunk.
>
> Maybe documentation and implementation have crossed some days...
> because I was said that setMultiFile is also available in 1.6.2. ;-)
>
> Greetings
> Thomas Weidner, I18N Team Leader, Zend Framework
> http://www.thomasweidner.com
>
> ----- Original Message ----- From: "Cristian Bichis"
> <contact@zftutorials.com>
> To: <fw-mvc@lists.zend.com>
> Sent: Tuesday, October 28, 2008 4:42 PM
> Subject: Re: [fw-mvc] Multiple upload fields for one form element
>
>
>> You searched for */"setMultiFile"/*.
>>
>> No results found.
>>
>>
>> Will check on code directly.
>>
>> Thanks
>>
>> Cristian
>>
>>> Did you read the manual ?
>>> Look at "setMultiFile()".
>>>
>>> Note: Does only work on trunk without problems.
>>>
>>> Greetings
>>> Thomas Weidner, I18N Team Leader, Zend Framework
>>> http://www.thomasweidner.com
>>>
>>> ----- Original Message ----- From: "Cristian Bichis"
>>> <contact@zftutorials.com>
>>> To: <fw-mvc@lists.zend.com>
>>> Sent: Tuesday, October 28, 2008 3:43 PM
>>> Subject: [fw-mvc] Multiple upload fields for one form element
>>>
>>>
>>>> Hello,
>>>>
>>>> I am encountering a problem when working with Zend_Form_Element_File.
>>>>
>>>> My problem would be that for one file form element i need to upload
>>>> multiple files. Aka: file[] file[] file[]
>>>>
>>>> How do i add all those upload fields to form ? By adding multiple
>>>> fields eahc with same name as file[] ?
>>>>
>>>> --
>>>> Best regards,
>>>> Cristian Bichis
>>>> www.zftutorials.com | www.zfforums.com | www.zftalk.com |
>>>> www.zflinks.com
>>>
>>>
>>
>>
>> --
>> Best regards,
>> Cristian Bichis
>> www.zftutorials.com | www.zfforums.com | www.zftalk.com |
>> www.zflinks.com
>>
>>
>
>

Re: [fw-mvc] Multiple upload fields for one form element

I am building the manual my own...so I always have the latest version :-)
It is described in the manual which you can get from trunk.

Maybe documentation and implementation have crossed some days... because I
was said that setMultiFile is also available in 1.6.2. ;-)

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message -----
From: "Cristian Bichis" <contact@zftutorials.com>
To: <fw-mvc@lists.zend.com>
Sent: Tuesday, October 28, 2008 4:42 PM
Subject: Re: [fw-mvc] Multiple upload fields for one form element


> You searched for */"setMultiFile"/*.
>
> No results found.
>
>
> Will check on code directly.
>
> Thanks
>
> Cristian
>
>> Did you read the manual ?
>> Look at "setMultiFile()".
>>
>> Note: Does only work on trunk without problems.
>>
>> Greetings
>> Thomas Weidner, I18N Team Leader, Zend Framework
>> http://www.thomasweidner.com
>>
>> ----- Original Message ----- From: "Cristian Bichis"
>> <contact@zftutorials.com>
>> To: <fw-mvc@lists.zend.com>
>> Sent: Tuesday, October 28, 2008 3:43 PM
>> Subject: [fw-mvc] Multiple upload fields for one form element
>>
>>
>>> Hello,
>>>
>>> I am encountering a problem when working with Zend_Form_Element_File.
>>>
>>> My problem would be that for one file form element i need to upload
>>> multiple files. Aka: file[] file[] file[]
>>>
>>> How do i add all those upload fields to form ? By adding multiple
>>> fields eahc with same name as file[] ?
>>>
>>> --
>>> Best regards,
>>> Cristian Bichis
>>> www.zftutorials.com | www.zfforums.com | www.zftalk.com |
>>> www.zflinks.com
>>
>>
>
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
>
>

RE: [fw-webservices] See the soap message

Hello,

When I go to http://www.ejse.com/WeatherService/Service.asmx and invoke
the webservice through the browser, I get the same error. I think you
need to use a different soap server to test your client ;)

Dieter

-----Original Message-----
From: jjsanders [mailto:jigalroecha@gmail.com]
Sent: dinsdag 28 oktober 2008 16:37
To: fw-webservices@lists.zend.com
Subject: RE: [fw-webservices] See the soap message


I think i still don't understand it.

I tried a testserver:

<?
set_include_path('./library/');
require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();

$wsdl = "http://www.ejse.com/WeatherService/Service.asmx?WSDL";
$options = array('trace' => true);

$client = new Zend_Soap_Client($wsdl);
$client ->setEncoding("UTF-8");
$client ->setSoapVersion(SOAP_1_1);
$params = array(
"zipCode" => '1082'
);
$client->GetWeatherInfo($params);
$bla = $client->getLastRequest();
Zend_Debug::dump($bla, 'bla',true);

?>

But this gives me the result:
Fatal error: Uncaught SoapFault exception: [soap:Server] Server was
unable
to process request. --> Object reference not set to an instance of an
object. in /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php:887
Stack
trace: #0 [internal function]: SoapClient->__call('GetWeatherInfo',
Array)
#1 [internal function]: Zend_Soap_Client_Common->GetWeatherInfo(Array)
#2
/usr/local/wwwroot/jigal/library/Zend/Soap/Client.php(887):
call_user_func_array(Array, Array) #3 [internal function]:
Zend_Soap_Client->__call('GetWeatherInfo', Array) #4
/usr/local/wwwroot/jigal/wstest.php(15):
Zend_Soap_Client->GetWeatherInfo(Array) #5 {main} thrown in
/usr/local/wwwroot/jigal/library/Zend/Soap/Client.php on line 887

DerMika wrote:
>
> Well, assuming the soap server has a method TestMe (defined in the
WSDL
> for example) with a parameter number (which is of type integer) you do
> this:
>
> $client->TestMe(array($number));
>
> $bla = $client->getLastRequest();
>
> You can also do this:
>
> $client->__call('TestMe', array($number));
>
> $bla = $client->getLastRequest();
>
>
>
> -----Original Message-----
> From: jjsanders [mailto:jigalroecha@gmail.com]
> Sent: dinsdag 28 oktober 2008 13:29
> To: fw-webservices@lists.zend.com
> Subject: RE: [fw-webservices] See the soap message
>
>
> ok but then I first need to do an request. .. I assume.
> How do I do that?
> How do I send out an SoapRequest?
>
> This is what I have till now:
>
> $options = array('trace' => true);
>
> $client = new Zend_Soap_Client($wsdl);
> $client ->setEncoding("UTF-8");
> $client ->setSoapVersion(SOAP_1_1);
>
> $bla = $client->getLastRequest();
>
> Zend_Debug::dump($bla, 'bla',true);
>
> beberlei wrote:
>>
>>
>> this is why its called "getLastRequest", you can only use it AFTER
the
>> request has been fired. How should it know which soap Action with
> which
>> parameters you are calling?
>>
>> On Tue, 28 Oct 2008 02:00:24 -0700 (PDT), jjsanders
>> <jigalroecha@gmail.com>
>> wrote:
>>>
>>> Okaay,
>>>
>>> But why then do i get an empty string?
>>> I just want to see the soap message before it gets sent?
>>>
>>> DerMika wrote:
>>>>
>>>> Trace is enabled by default in Zend_Soap_Client. You don't have to
>>>> define it.
>>>>
>>>> Just use the getlastresponse and getlastrequest methods, they
should
>>>> work.
>>>>
>>>> Dieter
>>>>
>>>> -----Original Message-----
>>>> From: jjsanders [mailto:jigalroecha@gmail.com]
>>>> Sent: dinsdag 28 oktober 2008 9:20
>>>> To: fw-webservices@lists.zend.com
>>>> Subject: Re: [fw-webservices] See the soap message
>>>>
>>>>
>>>> When i do $client = new Zend_Soap_Client($wsdl, array('trace' =>
> true));
>>>> I get the error message:
>>>> Fatal error: Uncaught exception 'Zend_Soap_Client_Exception' with
>>>> message
>>>> 'Unknown SOAP client option' in
>>>> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php:223 Stack
> trace:
>>>> #0
>>>> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php(122):
>>>> Zend_Soap_Client->setOptions(Array) #1
>>>> /usr/local/wwwroot/jigal/wstest.php(10):
>>>> Zend_Soap_Client->__construct('http://andijvie...', Array) #2
{main}
>>>> thrown
>>>> in /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php on line
223
>>>>
>>>> Furthermore:
>>>>
>>>> this
>>>> $client = new Zend_Soap_Client($wsdl, $options);
>>>> $client ->setEncoding("UTF-8");
>>>> $client ->setSoapVersion(SOAP_1_1);
>>>> $bla = $client->getLastRequest();
>>>> Zend_Debug::dump($bla, 'bla',true);
>>>>
>>>> gives me an empty string.
>>>>
>>>>
>>>> beberlei wrote:
>>>>>
>>>>> yes, there are possibilities to see both request and response:
>>>>>
>>>>> $client = new Zend_Soap_Client($wsdl, array('trace' => true));
>>>>>
>>>>> $client->... do stuff;
>>>>>
>>>>> and then you can do:
>>>>>
>>>>> $client->getLastRequest();
>>>>> $client->getLastResponse();
>>>>> $client->getLastRequestHeaders();
>>>>> $client->getLastResponseHeaders();
>>>>>
>>>>> On Monday 27 October 2008 17:45:29 Jigal sanders wrote:
>>>>>> Hello everyone.
>>>>>>
>>>>>> I have the following test stuff for a soap message :
>>>>>>
>>>>>> <?
>>>>>> //if(is_dir('./library/')) echo "ja"; exit;
>>>>>> set_include_path('./library/');
>>>>>> require_once('Zend/Loader.php');
>>>>>> Zend_Loader::registerAutoload();
>>>>>> $wsdl = "http://buzz.nl/WSCRM/SubscriptionService?wsdl";
>>>>>> $client = new Zend_Soap_Client($wsdl);
>>>>>> $client ->setEncoding("UTF-8");
>>>>>> $client ->setSoapVersion(SOAP_1_1);
>>>>>>
>>>>>> Zend_Debug::dump($client, 'bla',true);
>>>>>>
>>>>>> ?>
>>>>>>
>>>>>> is there a way to see the acutal soap message in xml?
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Benjamin Eberlei
>>>>> http://www.beberlei.de
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/See-the-soap-message-tp20191520p20202969.html
>>>> Sent from the Zend Web Services mailing list archive at Nabble.com.
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - http://www.avg.com
>>>> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
>>>> 27/10/2008 7:57
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/See-the-soap-message-tp20191520p20203472.html
>>> Sent from the Zend Web Services mailing list archive at Nabble.com.
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/See-the-soap-message-tp20191520p20206306.html
> Sent from the Zend Web Services mailing list archive at Nabble.com.
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
> 27/10/2008 22:44
>
>

--
View this message in context:
http://www.nabble.com/See-the-soap-message-tp20191520p20209124.html
Sent from the Zend Web Services mailing list archive at Nabble.com.


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.4/1751 - Release Date:
27/10/2008 22:44

Re: [fw-mvc] Multiple upload fields for one form element

You searched for "setMultiFile".

No results found.


Will check on code directly.

Thanks

Cristian

Did you read the manual ?
Look at "setMultiFile()".

Note: Does only work on trunk without problems.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "Cristian Bichis" <contact@zftutorials.com>
To: <fw-mvc@lists.zend.com>
Sent: Tuesday, October 28, 2008 3:43 PM
Subject: [fw-mvc] Multiple upload fields for one form element


Hello,

I am encountering a problem when working with Zend_Form_Element_File.

My problem would be that for one file form element i need to upload multiple files. Aka: file[] file[] file[]

How do i add all those upload fields to form ? By adding multiple fields eahc with same name as file[] ?

-- 
Best regards,
Cristian Bichis
www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com




--  Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com