Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2008, 06:00 PM
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default How can i read the $_POST and $_GET variables???

Sorry, but my English is not good!

How can i read the $_POST and $_GET variables?
In the controller i can use this code:
$this->_getParam( 'myparams');

But...how does in a Zend_Dd_Table or in another class?

I'm becoming crazy!
Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-04-2008, 06:04 PM
Junior Member
 
Join Date: Mar 2008
Posts: 26
Default

you should not read $_POST and $_GET variables within model.

this should be achieved in controller.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-04-2008, 06:14 PM
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default

I need of the parameter 'page' to be used in $select...->$limitPage($page, 10);
I have the same problem even within a Zend_View_Helper ...

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-04-2008, 06:27 PM
Junior Member
 
Join Date: Mar 2008
Posts: 26
Default

read the parameters in controller, then in some kind of way send it to the model. Maybe, create a method within model which takes page as a param and makes all of the selects including limit.

Quote:
I have the same problem even within a Zend_View_Helper
the same: in controller:
PHP Code:
$this->view->page $page 
and then in view call the helper with $page parameter.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:22 AM.