RE: [fw-general] ZendX_JQuery not loaded using Zend_Application

2009-04-16 Thread Bagus Nugroho
Yes, I have :(
But, as I'm said previusly, jquery loaded when this code(refer to ZendX_JQuery 
manual) add the index.phtml script,

ajaxLink("Show me something",
"/index/demo",
     array('update' => '#content')); ?> 
 
===

Thanks, bn


-Original Message-
From: Jay M. Keith [mailto:googla...@gmail.com] 
Sent: Friday, April 17, 2009 11:12 AM
To: Bagus Nugroho
Cc: fw-general
Subject: Re: [fw-general] ZendX_JQuery not loaded using Zend_Application

In your layout (if you're using layouts), do you have something like jQuery() ?> in the head?

Regards,
Jay M. Keith

On Thu, Apr 16, 2009 at 8:36 PM, Bagus Nugroho  wrote:
> Hi All,
> I'm trying using ZendX_JQuery within Zend_Application, which generated 
> by Zend_Tool and edited Bootstrap.php, refer 'storefront' to add 
> ZendX_JQuery as the following :
> Bootstrap.php=
> ==
> //
> protected function _initView()
>     {
>     $viewRenderer =
> Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
>     $viewRenderer->init();
>
>     $this->_view = $viewRenderer->view;
>     $this->_view->setEncoding('UTF-8');
>     $this->_view->doctype('XHTML1_STRICT');
>     $this->_view->headTitle('Development');
>
>     //Load themes
>
> $this->_view->headLink()->appendStylesheet('/themes/base/ui.all.css');
>
>     // Add jQuery
>
> $this->_view->addHelperPath('ZendX/JQuery/View/Helper','ZendX_JQuery_V
> iew_Helper');
>
> $this->_view->jQuery()->setLocalPath('../scripts/jquery-1.3.2.min.js')
> ;
>
> $this->_view->jQuery()->setUiLocalPath('../scripts/jquery.ui/jquery-ui
> .min.js');
>
>     Zend_Layout::startMvc(array('layout' => 'main',
>     'layoutPath' => APPLICATION_PATH . '/layouts/scripts'
>     ));
>     }
> //
> 
>
> why jquery library not loaded when I'm load the page.
>
> But jquery library loaded, when I add the following code on
> scripts(index.phtml)
> index.phtml==
> ajaxLink("Show me something",
> "/index/demo",
>     array('update' => '#content')); ?>  id="content"> 
> 
>
> Is I'm missing something?
>
> Thanks in advance, bn
>
>
>
>
>
>


Re: [fw-general] Zend_Form_Element_File and previewing

2009-04-16 Thread Thomas Weidner
The problem is, that when you want to display a preview image then you need 
to have to image already on the server.


And to have the image you need to have the files uploaded.
Look for example at Ebay and place an article to see how this works.

So you could upload the image, create a preview of them and display that to 
the user.
And when he finished the complete task, presses submit on his form you would 
move the image to it's final destination as it's already on the server.

Otherwise you would have to delete it from the server.

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

- Original Message - 
From: "Justin Hendrickson" 

To: "fw-general" 
Sent: Friday, April 17, 2009 12:36 AM
Subject: [fw-general] Zend_Form_Element_File and previewing



I'm trying to create a Zend_Form that contains a couple of
Zend_Form_Element_File elements, amongst other things. I want to support
previewing the content before submitting, but I'm not sure how to make the
file elements stick from the preview to the submit. Has anyone found a 
good

way of handling this?





[fw-general] ZendX_JQuery not loaded using Zend_Application

2009-04-16 Thread Bagus Nugroho
Hi All,
I'm trying using ZendX_JQuery within Zend_Application, which generated by 
Zend_Tool and edited Bootstrap.php, refer 'storefront' to add ZendX_JQuery as 
the following :
Bootstrap.php===
//
protected function _initView()
{   
$viewRenderer = 
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->init();

$this->_view = $viewRenderer->view;
$this->_view->setEncoding('UTF-8');
$this->_view->doctype('XHTML1_STRICT');
$this->_view->headTitle('Development');

//Load themes
   $this->_view->headLink()->appendStylesheet('/themes/base/ui.all.css');

// Add jQuery

$this->_view->addHelperPath('ZendX/JQuery/View/Helper','ZendX_JQuery_View_Helper');
$this->_view->jQuery()->setLocalPath('../scripts/jquery-1.3.2.min.js');

$this->_view->jQuery()->setUiLocalPath('../scripts/jquery.ui/jquery-ui.min.js');
   
Zend_Layout::startMvc(array('layout' => 'main',
'layoutPath' => APPLICATION_PATH . '/layouts/scripts'
));
}
//

 
why jquery library not loaded when I'm load the page. 
 
But jquery library loaded, when I add the following code on scripts(index.phtml)
index.phtml==
ajaxLink("Show me something",
"/index/demo",
array('update' => '#content')); ?>


 
Is I'm missing something?
 
Thanks in advance, bn

 

 





[fw-general] Zend_Application, howto Bootstrap Modules

2009-04-16 Thread j.padron

Hi,

I'm trying to use Zend_Application to Autoload resources (forms, etc.), but
I can't find any information that works for the simplest modular directory
structure:

application
   bootstrap
  Bootstrap.php
   config
  config.ini
modules
   Acceso
  [...]
  Bootstrap.php
   Dashboard
  [...]
  Bootstrap.php

Documentation says: "If your module has a Bootstrap.php file in its root,
and it contains a class named Module_Bootstrap (where "Module" is the module
name), then it will use that class to bootstrap the module.", but
module2/bootstrap.php do nothing in order to expose resources:

Fatal error: Class 'Dashboard_Model_Form_Login' not found in
C:\xampp\htdocs\esqueleto\application\modules\dashboard\controllers\IndexController.php
on line 14.

The dashboard/Bootstrap.php contains:

class Dashboard_Bootstrap extends Zend_Application_Module_Bootstrap 
{
public function _initModule() {}

public function run(){}
}


The only module that works correctly is the default module if I have this:

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
[...]
protected function _initDefaultModuleAutoloader()
{
$this->_resourceLoader = new Zend_Application_Module_Autoloader(
array(
'namespace' => 'Acceso',
'basePath'  => APPLICATION_PATH . '/modules/acceso'
));
}
[...]
}

And, in the ini file, among other irrelevant settings:

bootstrap.path = APPLICATION_PATH"/bootstrap/Bootstrap.php"
resources.frontcontroller.moduledirectory = APPLICATION_PATH"/modules"

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Zend_Application%2C-howto-Bootstrap-Modules-tp23089584p23089584.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Form_Element_File and previewing

2009-04-16 Thread Justin Hendrickson
I'm trying to create a Zend_Form that contains a couple of
Zend_Form_Element_File elements, amongst other things. I want to support
previewing the content before submitting, but I'm not sure how to make the
file elements stick from the preview to the submit. Has anyone found a good
way of handling this?


Re: [fw-general] Zend Framework team reorganization

2009-04-16 Thread Tony Ford
Just wanted to say Congrats Matthew! The promotion is well deserved.  
Keep up the hard work :)


 - Tony

Re: [fw-general] Saving a new comment by an article

2009-04-16 Thread till
On Thu, Apr 16, 2009 at 9:53 PM, Derk  wrote:
>
> nobody?
>
> Derk wrote:
>>
>> There are two tables involved
>>
>> articles
>> - id
>> - title
>> - text
>>
>> comments
>> - name
>> - comment
>> - article_id
>>
>> Now I have a form by an article, so users can post comments
>>
>> The code is quite simple...
>>
>>     public function showAction() {
>>               $articlesTable = new Articles;
>>               $article = $articlesTable->fetchRow("REPLACE(title, ' ', '-') 
>> = '" .
>> $this->_getParam('article') . "'");
>>
>>               // comments
>>               $this->view->comments = $article->findComments();
>>
>>               // comment form
>>               // create form.
>>
>>               $this->view->form = $form;
>>
>>               if($this->getRequest()->isPost()) {
>>
>>                       if($form->isValid($_POST)) {
>>                               $commentsTable = new Comments();
>>                               $comment = 
>> $commentsTable->createRow($form->getValues());
>>                               $comment->article_id = $article->id;
>>                               $comment->save();
>>                       }
>>               }
>>
>>       }
>>
>> when I post a comment I get: "Cannot refresh row as parent is missing"
>> stack trace:
>> #0 ...\library\Zend\Db\Table\Row\Abstract.php(475):
>> Zend_Db_Table_Row_Abstract->_refresh()
>> 
>>
>> But the comment is saved in the right way..
>>
>> How can I solve this?
>>
>> Thanks for your help
>>
>

I'm guessing the Comments model is missing the primary key.

Till


Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue

2009-04-16 Thread Thomas Weidner

As noted in the FAQ you are calling getValues() on the file element.
As the file itself is the value of the file element within ZF, this means 
that you receive the file by calling getValues().


All the code below getValues() will never get executed as there is no file 
anymore to receive.
And as you have not added a rename filter before that call, the original 
file will be received unrenamed.


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

- Original Message - 
From: "Ehask71" 

To: 
Sent: Thursday, April 16, 2009 9:08 PM
Subject: Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter 
issue





Can anyone see why the Rename is not working with multifile upload??  I 
had

no issues with it 1.7 other than my misunderstanding on syntax. Everything
in the below code works perfectly except the Rename.  So when that fails 
of
course my thumbnail class doesnt fire since it looks for the renamed 
image.


Here is the multiFile
   $element = new Zend_Form_Element_File('file');
   $element->setLabel('Upload Images:')
   ->setDestination(_IMGSOURCE_);
   $element->addValidator('Count',false,array('min'=>1,'max'=>6))
   ->addValidator('Size',false,102400)
   ->addValidator('Extension',false,'jpg,gif,png');
   $element->setMultiFile(6);
   $this->addElement($element,'file');

Now my Controller code:

public function indexAction()
   {
   $form = new App_Form_ModelApp();

if (!$this->getRequest()->isPost()) {
$this->view->Form = $form;
return;
} elseif (!$form->isValid($_POST)) {
$this->view->Form = $form;
return;
}
$values = $form->getValues();

$data = array(
'name' => $values['name'],
!!! APPENDED TO SAVE SOME SPACE !!!
);
try {
$table = new ModelApps();
$table->insert($data);
$this->sendMail($data);
$mid = $table->getAdapter()->lastInsertId();

$upload = new Zend_File_Transfer_Adapter_Http();
$upload->setDestination(_IMGSOURCE_);
//$files = $upload->getFileInfo();
$i=0;
foreach ($upload->getFileInfo() AS $info) {
if($info['name'] != ''){
$ext = pathinfo($info['name']);
$filename =
'image_'.$mid.'_'.$i.'_'.date('Ymdhs').'.'.$ext['extension'];
$upload->addFilter('Rename', array('target' => _IMGSOURCE_.$filename,
'overwrite' => true));

if(!$upload->receive($info['name'])){
$this->view->messages = $upload->getMessages();
}
$i++;

// Add Photo to Db
$photo = new ModelPhotos();
$data = array(
'modelid' => $mid,
'name' => $filename,
'desc' => '',
'url' => '',
'dateAdded' => new Zend_Db_Expr('NOW()')
);
try {
$photo->insert($data);
$pid = $photo->getAdapter()->lastInsertId();
$resized = new App_Thumbnail(_IMGSOURCE_.$filename);
$resized->resize( 600, 800);
$resized->save(_IMGSOURCE_.$filename,80);
$resized->watermark(_IMGSOURCE_.$filename);
$photo->_createThumbnail(_IMGSOURCE_.$filename,
_THUMBSOURCE_.$filename, 100, 150, $q = 80);

}
catch (Exception $e)
{
$logger = Zend_Registry::get('logger');
$logger->warn("Image Insert Error - ". $e->getMessage());
$this->flash('There was a problem. Please Try
Again!','/modelapplication/error');
}

}
}
}
catch (Exception $e)
{
$logger = Zend_Registry::get('logger');
$logger->warn("Model App Insert Error - ". $e->getMessage());
$this->flash('There was a problem. Please Try
Again!','/modelapplication/error');
}
$this->flash('Thank You For Your
Submission','/modelapplication/success');

   }

--
View this message in context: 
http://www.nabble.com/Zend_File_Transfer_Adapter_Http%28%29-Rename-Filter-issue-tp21823191p23084437.html
Sent from the Zend Framework mailing list archive at Nabble.com. 




Re: [fw-general] Saving a new comment by an article

2009-04-16 Thread Derk

nobody?

Derk wrote:
> 
> There are two tables involved
> 
> articles
> - id
> - title
> - text
> 
> comments
> - name
> - comment
> - article_id
> 
> Now I have a form by an article, so users can post comments
> 
> The code is quite simple...
> 
> public function showAction() {
>   $articlesTable = new Articles;
>   $article = $articlesTable->fetchRow("REPLACE(title, ' ', '-') = 
> '" .
> $this->_getParam('article') . "'");
> 
>   // comments
>   $this->view->comments = $article->findComments();
>   
>   // comment form
>   // create form.
>
>   $this->view->form = $form;
>   
>   if($this->getRequest()->isPost()) {
>   
>   if($form->isValid($_POST)) {
>   $commentsTable = new Comments();
>   $comment = 
> $commentsTable->createRow($form->getValues());
>   $comment->article_id = $article->id;
>   $comment->save();
>   }
>   }
>   
>   }
> 
> when I post a comment I get: "Cannot refresh row as parent is missing"
> stack trace:
> #0 ...\library\Zend\Db\Table\Row\Abstract.php(475):
> Zend_Db_Table_Row_Abstract->_refresh()
> 
> 
> But the comment is saved in the right way..
> 
> How can I solve this?
> 
> Thanks for your help
> 

-- 
View this message in context: 
http://www.nabble.com/Saving-a-new-comment-by-an-article-tp21873432p23085180.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue

2009-04-16 Thread Ehask71

Can anyone see why the Rename is not working with multifile upload??  I had
no issues with it 1.7 other than my misunderstanding on syntax. Everything
in the below code works perfectly except the Rename.  So when that fails of
course my thumbnail class doesnt fire since it looks for the renamed image.   

Here is the multiFile
$element = new Zend_Form_Element_File('file');
$element->setLabel('Upload Images:')
->setDestination(_IMGSOURCE_);
$element->addValidator('Count',false,array('min'=>1,'max'=>6))
->addValidator('Size',false,102400)
->addValidator('Extension',false,'jpg,gif,png');
$element->setMultiFile(6);
$this->addElement($element,'file');

Now my Controller code:

public function indexAction()
{
$form = new App_Form_ModelApp();

if (!$this->getRequest()->isPost()) {
$this->view->Form = $form;
return;
} elseif (!$form->isValid($_POST)) {
$this->view->Form = $form;
return;
}
$values = $form->getValues();   

$data = array(
'name' => $values['name'],
!!! APPENDED TO SAVE SOME SPACE !!!
);
try {
$table = new ModelApps();
$table->insert($data);
$this->sendMail($data);
$mid = $table->getAdapter()->lastInsertId();

$upload = new Zend_File_Transfer_Adapter_Http();
$upload->setDestination(_IMGSOURCE_);
//$files = $upload->getFileInfo();
$i=0;
foreach ($upload->getFileInfo() AS $info) {
if($info['name'] != ''){
$ext = pathinfo($info['name']);
$filename =
'image_'.$mid.'_'.$i.'_'.date('Ymdhs').'.'.$ext['extension'];
$upload->addFilter('Rename', 
array('target' => _IMGSOURCE_.$filename,
'overwrite' => true));


if(!$upload->receive($info['name'])){
$this->view->messages = 
$upload->getMessages(); 
}
$i++;

// Add Photo to Db
$photo = new ModelPhotos();
$data = array(
'modelid' => $mid,
'name' => $filename,
'desc' => '',
'url' => '',
'dateAdded' => new 
Zend_Db_Expr('NOW()')
);
try {
$photo->insert($data);
$pid = 
$photo->getAdapter()->lastInsertId();
$resized = new 
App_Thumbnail(_IMGSOURCE_.$filename);
$resized->resize( 600, 
800);

$resized->save(_IMGSOURCE_.$filename,80);

$resized->watermark(_IMGSOURCE_.$filename);

$photo->_createThumbnail(_IMGSOURCE_.$filename,
_THUMBSOURCE_.$filename, 100, 150, $q = 80);

}
catch (Exception $e)
{
$logger = 
Zend_Registry::get('logger');
$logger->warn("Image 
Insert Error - ". $e->getMessage());
$this->flash('There was 
a problem. Please Try
Again!','/modelapplication/error');
}

}
}
}
catch (Exception $e)
{

Re: [fw-general] Zend_Build_Phing

2009-04-16 Thread Daniel Latter

Hi,

Nice idea, would like to help also anyway I can!

On Apr 16, 2009, at 18:39, Christoph Dorn  
 wrote:





Where can I find the code ? will be fun help on this :).

There is no code yet. I hope to have a basic setup working next  
week. I'll bump this thread when you can look at it and get involved.


Thanks for the interest!

Christoph



On Thu, Apr 16, 2009 at 12:09 PM, Christoph Dorn
 wrote:

I am looking into implementing a component to use Phing from  
within a ZF

app. This is specifically interesting for Zend_Tool.

Has anyone done any work on this? Anyone interested in using it,  
testing or

helping out?

Christoph








Re: [fw-general] PEAR Channel Server

2009-04-16 Thread till
On Thu, Apr 16, 2009 at 7:37 PM, Christoph Dorn
 wrote:
>
>> There is actually a PHP53 only implementation which i think the PEAR group
>> is moving towards, and its pretty much in line with what you are describing.
>
> I need a < 5.3 version as I don't think 5.3 will be widely used for a while.
>
>> Its called SimpleChannelServer and is being worked on by brett bieber of
>> pear (aka Saltybeagle)
>> http://saltybeagle.com/?section=article&id=124
>
> Hmm. Maybe I can port it to PHP 5.2

I'd welcome this effort. :-) If you need help, let me know.

>> I think its prob best that PHP core & infrastruture components be handled
>> by them, but we need to see what their roadmap looks like.
>
> I agree, but in the past there has never been a solid channel server and I
> think I read somewhere that SimpleChannelServer will be the only one
> provided going forward.
>
> The channel server can be used for a lot more than just distributing PEAR
> packages. Maybe we can abstract it and provide a framework to build a
> package distribution systems. This is going to fit well with a project I am
> working on and I could lead this effort.
>
> Do you know Brett? Do you think we can have a discussion with him about this
> so we can decide on a go-forward. I don't want to duplicate any effort.

I've CC'ed Brett an this email. I'm sure he's all open to feedback and so on.

Till


Re: [fw-general] Zend_Build_Phing

2009-04-16 Thread Christoph Dorn



Where can I find the code ? will be fun help on this :).
  
There is no code yet. I hope to have a basic setup working next week. 
I'll bump this thread when you can look at it and get involved.


Thanks for the interest!

Christoph



On Thu, Apr 16, 2009 at 12:09 PM, Christoph Dorn
 wrote:
  

I am looking into implementing a component to use Phing from within a ZF
app. This is specifically interesting for Zend_Tool.

Has anyone done any work on this? Anyone interested in using it, testing or
helping out?

Christoph




  




Re: [fw-general] PEAR Channel Server

2009-04-16 Thread Christoph Dorn


There is actually a PHP53 only implementation which i think the PEAR 
group is moving towards, and its pretty much in line with what you are 
describing.

I need a < 5.3 version as I don't think 5.3 will be widely used for a while.

Its called SimpleChannelServer and is being worked on by brett bieber 
of pear (aka Saltybeagle)

http://saltybeagle.com/?section=article&id=124

Hmm. Maybe I can port it to PHP 5.2

I think its prob best that PHP core & infrastruture components be 
handled by them, but we need to see what their roadmap looks like.
I agree, but in the past there has never been a solid channel server and 
I think I read somewhere that SimpleChannelServer will be the only one 
provided going forward.


The channel server can be used for a lot more than just distributing 
PEAR packages. Maybe we can abstract it and provide a framework to build 
a package distribution systems. This is going to fit well with a project 
I am working on and I could lead this effort.


Do you know Brett? Do you think we can have a discussion with him about 
this so we can decide on a go-forward. I don't want to duplicate any effort.


Thanks
Christoph




Re: [fw-general] Zend_Build_Phing

2009-04-16 Thread Juan Felipe Alvarez Saldarriaga
Hey,

Where can I find the code ? will be fun help on this :).

On Thu, Apr 16, 2009 at 12:09 PM, Christoph Dorn
 wrote:
> I am looking into implementing a component to use Phing from within a ZF
> app. This is specifically interesting for Zend_Tool.
>
> Has anyone done any work on this? Anyone interested in using it, testing or
> helping out?
>
> Christoph
>


Re: [fw-general] PEAR Channel Server

2009-04-16 Thread Ralph Schindler
I started to work on that, but realized how expansive the spec was and 
decided to use Chiara.


There is actually a PHP53 only implementation which i think the PEAR 
group is moving towards, and its pretty much in line with what you are 
describing.


Its called SimpleChannelServer and is being worked on by brett bieber of 
pear (aka Saltybeagle)


http://saltybeagle.com/?section=article&id=124

I think its prob best that PHP core & infrastruture components be 
handled by them, but we need to see what their roadmap looks like.


-ralph



Christoph Dorn wrote:
I am looking for a clean OO implementation of a PEAR Channel server that 
I can extend. Is anyone aware of a library that is actively maintained?


If there are no real options out there I am thinking about writing a ZF 
component for it. How about Zend_Pear_Server?


Anyone interested in using it, testing or helping out? I have a 
semi-working lib I wrote a while back that we can port and enhace (it 
implements all the different XML responses required).


Christoph




[fw-general] Zend_Build_Phing

2009-04-16 Thread Christoph Dorn
I am looking into implementing a component to use Phing from within a ZF 
app. This is specifically interesting for Zend_Tool.


Has anyone done any work on this? Anyone interested in using it, testing 
or helping out?


Christoph


[fw-general] PEAR Channel Server

2009-04-16 Thread Christoph Dorn
I am looking for a clean OO implementation of a PEAR Channel server that 
I can extend. Is anyone aware of a library that is actively maintained?


If there are no real options out there I am thinking about writing a ZF 
component for it. How about Zend_Pear_Server?


Anyone interested in using it, testing or helping out? I have a 
semi-working lib I wrote a while back that we can port and enhace (it 
implements all the different XML responses required).


Christoph



Re: [fw-general] Re: lame question

2009-04-16 Thread András Csányi
2009/4/16 Matthew Weier O'Phinney :
> -- till  wrote
> (on Thursday, 16 April 2009, 05:55 PM +0200):
>> On Thu, Apr 16, 2009 at 5:54 PM, András Csányi  wrote:
>> > 2009/4/16 András Csányi :
>> >> Hi all!
>> >>
>> >> I would like do an application what is call url like this
>> >> http://localhost/module/action/variable1/variable1_value/variable2/variable2_value
>> >
>> > Sorry! The point is missing! :$
>> >
>> > So, if I call this url (upper) in the actionAction() method of the
>> > ModuleController class I can get the variable1_value and
>> > variable2_value. But I don't remember how.
>> >
>> > Thank you!
>>
>> $this->_request->getParam('variable1'); etc. ?
>
> Or, easier: $this->_getParam('variable1');

Thanks both of you! :)

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell


Re: [fw-general] Re: lame question

2009-04-16 Thread Matthew Weier O'Phinney
-- till  wrote
(on Thursday, 16 April 2009, 05:55 PM +0200):
> On Thu, Apr 16, 2009 at 5:54 PM, András Csányi  wrote:
> > 2009/4/16 András Csányi :
> >> Hi all!
> >>
> >> I would like do an application what is call url like this
> >> http://localhost/module/action/variable1/variable1_value/variable2/variable2_value
> >
> > Sorry! The point is missing! :$
> >
> > So, if I call this url (upper) in the actionAction() method of the
> > ModuleController class I can get the variable1_value and
> > variable2_value. But I don't remember how.
> >
> > Thank you!
> 
> $this->_request->getParam('variable1'); etc. ?

Or, easier: $this->_getParam('variable1');

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


Re: [fw-general] Re: lame question

2009-04-16 Thread till
On Thu, Apr 16, 2009 at 5:54 PM, András Csányi  wrote:
> 2009/4/16 András Csányi :
>> Hi all!
>>
>> I would like do an application what is call url like this
>> http://localhost/module/action/variable1/variable1_value/variable2/variable2_value
>
> Sorry! The point is missing! :$
>
> So, if I call this url (upper) in the actionAction() method of the
> ModuleController class I can get the variable1_value and
> variable2_value. But I don't remember how.
>
> Thank you!

$this->_request->getParam('variable1'); etc. ?

Till


[fw-general] Re: lame question

2009-04-16 Thread András Csányi
2009/4/16 András Csányi :
> Hi all!
>
> I would like do an application what is call url like this
> http://localhost/module/action/variable1/variable1_value/variable2/variable2_value

Sorry! The point is missing! :$

So, if I call this url (upper) in the actionAction() method of the
ModuleController class I can get the variable1_value and
variable2_value. But I don't remember how.

Thank you!

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell


[fw-general] lame question

2009-04-16 Thread András Csányi
Hi all!

I would like do an application what is call url like this
http://localhost/module/action/variable1/variable1_value/variable2/variable2_value

I did use zend framework almoust one year ago because I worked on
another - non web-based - projects.
I remember I could do this (upper) but I have been reading the
documentation since 2 hours but I'm not find the solution for this. :(

Please help me! How can I do this or which part of doc need me?

Thanks for your help!

András

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell


Re: [fw-general] Zend Framework team reorganization

2009-04-16 Thread chrisweb

Thank you Wil Sinclair for the hard work you have put in Zend Framework, one
year ago we switching almost all our websites (+-50) to Zend Framework, we
love Zend Framework, especially Zend_Cache Zend_Lucene and Zend_Form which
are really great because their use is very easy but the possibilities are
almost endless. We which you lots of joy in your new position at Zend
Technologies.

Congratulations! Matthew Weier O'Phinney, we "know" you, because every time
we search for something about Zend Framework we find a post coming from you.
It seems like your everywhere ;) in the mailinglist, on your blog ... Your
blog is really great, its a good source for Zend Framework help and news. We
hope you will still have to answer questions in mailinglists or write in
your blog. Thx also for all these Dojo helpers, building websites which
complex javascript is now possible in few hours.

Welcome Zeev Suraski, i don't know if the fact that the team now reports to
you will change something in how Zend Framework is build, but knowing that
you supervise Zend Framework shows us that Zend is aware that Zend Framework
is very important for PHP's future and that it won't disappear from one day
to another.

We just finished reviewing the new components Zend_Application and
Zend_Navigation, their are both usefull new components that we will
implement in our projects as soon as possible.

One thing we miss a lot is a Zend_Form_Element_File for FTP transfers.
-- 
View this message in context: 
http://www.nabble.com/Zend-Framework-team-reorganization-tp23043726p23078589.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] integer null record problem

2009-04-16 Thread Thomas VEQUAUD
Your welcome, it's always a pleasure to help ;)

On Sun, Apr 12, 2009 at 10:19 PM, helderfelipe wrote:

>
> $qry->cod_ibge = (int)$formData['cod_ibge'];
>
> thanks, it works!
> --
> View this message in context:
> http://www.nabble.com/integer-null-record-problem-tp22948674p23014476.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Thomas VEQUAUD  http://thomas.vequaud.free.fr/
Expert EPITECH en Ingénierie Informatique
Tél : +33(0)6.50.39.28.10  Fax: +33(0)9.58.46.10.07


Re: [fw-general] Getting dates from given week.

2009-04-16 Thread PHPScriptor



超哥 wrote:
> 
> anybody, please visit my phpcoding site
> 
> phpcoding: http://www.phpcoding.cn
> 
> thanks
> 
> 

very interesting site... if you can read Chinees. What we don't.

-
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/Getting-dates-from-given-week.-tp22988727p23074178.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Getting dates from given week.

2009-04-16 Thread 超哥
anybody, please visit my phpcoding site

phpcoding: http://www.phpcoding.cn

thanks

2009/4/16 PHPScriptor 

>
>
> thomasW wrote:
> >
> > Your code seems a little bit complicated, isn't it ? :-)
> >
>
> I don't even know how that works, and I programmed it :confused:
>
> -
> visit my website at  http://www.phpscriptor.com/
> http://www.phpscriptor.com/
> --
> View this message in context:
> http://www.nabble.com/Getting-dates-from-given-week.-tp22988727p23073232.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 

百事可乐


Re: [fw-general] Getting dates from given week.

2009-04-16 Thread PHPScriptor


thomasW wrote:
> 
> Your code seems a little bit complicated, isn't it ? :-)
> 

I don't even know how that works, and I programmed it :confused:

-
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/Getting-dates-from-given-week.-tp22988727p23073232.html
Sent from the Zend Framework mailing list archive at Nabble.com.