[fw-general] Cron job using CLI

2007-05-31 Thread pat
Hi All, I would like to write a cron job that accesses one or more of my actionControllers. Is there a tutorial on creating a CLI app suitable for a building a cron job? cheers, pat

Re: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread pat
Hi Shawn, I admit it is annoying, but you can turn it off like so: *$controller->setParam('noViewRenderer', true); * Also this discussion helped with a problem I was trying to solve, namely, I wanted a View_Setup function. I have one(basically) template and I want to skin/theme i

Re: [fw-general] zend_date accepting iso dates

2007-05-31 Thread Thomas Weidner
You forgot to define the input format... $date = new Zend_Date('2007-05-31 04:02:00', Zend_Date::ISO_8601); Zend_Date tries to detect the format from your locale as you have not given a format for your input. But as the given input is not identical with the standard format for your locale so i

Re: [fw-general] money_format with Zend_Locale

2007-05-31 Thread Thomas Weidner
Zend_Locale is not intended to do this job... It provides the needed data but has no knowledge of money itself. Zend_Currency is the class you need. You can find it in the incubator and will be released with 1.1 or 1.2. The API Doc should help you on how it should work. Greetings Thomas I18N Tea

Re: [fw-general] Zend_Controller_Action_Helper_Redirector strange behaviour

2007-05-31 Thread Matthew Weier O'Phinney
-- Marin Krkač <[EMAIL PROTECTED]> wrote (on Thursday, 31 May 2007, 09:16 PM +0200): > Stoyan Kyosev wrote: > > What if I want to redirect to relative URL ? I'm providing > > array('prependBase' => false) as > > > > options to _redirect, but the above statement ignores it and prepends > > the bas

Re: [fw-general] ViewRenderer Problems

2007-05-31 Thread Matthew Weier O'Phinney
-- Matthew Ratzloff <[EMAIL PROTECTED]> wrote (on Thursday, 31 May 2007, 10:50 AM -0700): > Seems like there is a lot of negative phrasing in the front controller > parameters (or: not a lot of non-negative phrasing). Wouldn't it be better > if they were framed as positives with default true val

Re: [fw-general] Zend_Controller_Action_Helper_Redirector strange behaviour

2007-05-31 Thread Marin Krkač
Stoyan Kyosev wrote: What if I want to redirect to relative URL ? I'm providing array('prependBase' => false) as options to _redirect, but the above statement ignores it and prepends the base url. So, my only choice is to redirect with full urls and for what purpose is the 'prependBase' opt

Re: [fw-general] ViewRenderer Problems

2007-05-31 Thread Matthew Ratzloff
Seems like there is a lot of negative phrasing in the front controller parameters (or: not a lot of non-negative phrasing). Wouldn't it be better if they were framed as positives with default true values instead? Something like: $front->setParam('bufferOutput', false); $front->setParam(

Re: [fw-general] noob needs help assigning vars to view

2007-05-31 Thread Matthew Weier O'Phinney
-- till <[EMAIL PROTECTED]> wrote (on Thursday, 31 May 2007, 06:03 PM +0200): > On 5/31/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > > (...) > > No need to grab the view. All you need is this: > > > >public function indexAction() > >{ > >$this->view->books = array('Pride

Re: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shaun Rowe
Shaun Rowe wrote: Shawn McAllister wrote: After all my bitching I got it to work just fine... So slap me with a trout and call me a noob... I apologize for my previously stated idiocracy. -Shawn Todays programme was brought to you today by the letters R. T. F. M. ;) In all seriousness, as t

Re: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shaun Rowe
Shawn McAllister wrote: After all my bitching I got it to work just fine... So slap me with a trout and call me a noob... I apologize for my previously stated idiocracy. -Shawn Todays programme was brought to you today by the letters R. T. F. M. ;) In all seriousness, as there have been a fe

RE: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shawn McAllister
After all my bitching I got it to work just fine... So slap me with a trout and call me a noob... I apologize for my previously stated idiocracy. -Shawn -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 11:52 AM To: fw-general@lists.z

Re: [fw-general] noob needs help assigning vars to view

2007-05-31 Thread Shaun Rowe
till wrote: On 5/31/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: (...) No need to grab the view. All you need is this: public function indexAction() { $this->view->books = array('Pride and Prejudice','Das Kapital','Beyond Good and Evil'); } Since when has $this

Re: [fw-general] noob needs help assigning vars to view

2007-05-31 Thread till
On 5/31/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: (...) No need to grab the view. All you need is this: public function indexAction() { $this->view->books = array('Pride and Prejudice','Das Kapital','Beyond Good and Evil'); } Since when has $this->view been av

Re: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Matthew Weier O'Phinney
-- Shawn McAllister <[EMAIL PROTECTED]> wrote (on Thursday, 31 May 2007, 10:55 AM -0400): > In my opinion... The changes that have been made are idiotic to say the > least... The main motivation for using ZF was that it allowed for a lot > of flexibility... Now you have introduced the very thing I

Re: [fw-general] Zend Debug Dump

2007-05-31 Thread Ian Warner
Cheers Bill that helps Must be an issue with XDebug right? Installing the extension make the Zend exceptions lovely and pretty but then htmlentities the zend var_dump. or Maybe the Zend_Debug needs to check if Xdebug is loaded and not pretify it within the Zend code and let Xdebug handle it?

RE: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shawn McAllister
To those I offended by saying the changes are idiotic... Just thought I would say I am sorry and I really do love you... Now come here and let's rub man parts... ;) Shawn -Original Message- From: Shaun Rowe [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 11:26 AM To: fw-general@li

Re: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shaun Rowe
Shawn McAllister wrote: Honestly, I didn't have a choice in the matter... If I did I probably would have chosen a different framework. I was directed to use it... At this point I will say that I have become accustomed to using it now... And enjoy many of it's great features... My sole point is th

RE: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shawn McAllister
Honestly, I didn't have a choice in the matter... If I did I probably would have chosen a different framework. I was directed to use it... At this point I will say that I have become accustomed to using it now... And enjoy many of it's great features... My sole point is that I don't really see the

Re: [fw-general] ViewRenderer Problems

2007-05-31 Thread Pádraic Brady
Hi Shawn, One day people will do something revolutionary - like reading the manual. I find reading the manual has an annoying habit of answering many of life's questions - like how to disable the ViewRenderer. ;). There's a whole migration document you should read after each version release: M

RE: [fw-general] Zend Debug Dump

2007-05-31 Thread Bill Karwin
Zend_Debug::dump() outputs plain var_dump() output if it detects that you're running in a cli environment based on the PHP_SAPI superglobal. You can also tell it that you're running in a cli environment. You can use this method: Zend_Debug::setSapi('cli'); Zend_Debug::dump($variable); There'

[fw-general] zfdemo tutorial

2007-05-31 Thread Martin Carpentier
Hi, In a recent announcement Gavin Vess stated that he will not be able to contribute to the Zend Framework for the near future. I was wondering if there was any plan to take the great ZF tutorial he put up on the wiki ( http://framework.ze

Re: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shaun Rowe
Shaun Rowe wrote: Shawn McAllister wrote: In my opinion... The changes that have been made are idiotic to say the least... The main motivation for using ZF was that it allowed for a lot of flexibility... Now you have introduced the very thing I hate about frameworks in general... Strict adher

Re: FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shaun Rowe
Shawn McAllister wrote: In my opinion... The changes that have been made are idiotic to say the least... The main motivation for using ZF was that it allowed for a lot of flexibility... Now you have introduced the very thing I hate about frameworks in general... Strict adherence to your view o

FW: [fw-general] ViewRenderer Problems

2007-05-31 Thread Shawn McAllister
In my opinion... The changes that have been made are idiotic to say the least... The main motivation for using ZF was that it allowed for a lot of flexibility... Now you have introduced the very thing I hate about frameworks in general... Strict adherence to your view of development methods and

Re: [fw-general] ViewRenderer

2007-05-31 Thread Ian Warner
Matthew Weier O'Phinney wrote: -- Ian Warner <[EMAIL PROTECTED]> wrote (on Thursday, 31 May 2007, 02:22 PM +0100): Ok to elobarate on this it seems I get this error when: I forward from one module to anothers underconstruction page: // Currently simply forwarding to the Under Constucti

Re: [fw-general] noob needs help assigning vars to view

2007-05-31 Thread David Mintz
Hey! Thank you all. That did the trick. Now that I'm an expert I feel like writing a tutorial as an antidote to the numerous tuts out there that are out of date. (-: David On 5/30/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- David Mintz <[EMAIL PROTECTED]> wrote (on Wednesday,

Re: [fw-general] Zend Debug Dump

2007-05-31 Thread Laurent TAUPIAC
xdebug overload var_dump and will display html dump. print_r is not overload by xdebug. You still can have text dump with var_dump if you unactive html output for xdebug with next command. ini_set('html_errors',0); Ian Warner a écrit : Hi When using Zend_Debug::dump since the upgrade --- or

Re: [fw-general] Zend Debug Dump

2007-05-31 Thread Andries Seutens
Ian Warner schreef: Hi When using Zend_Debug::dump since the upgrade --- or maybe since installing XDEBUG the output now seems to have HTML entties applied so I get: How do I get it back to be a pretty output ? Cheers Ian array 'translate_module' => object(Zend_Translate)[29]

[fw-general] zend_date accepting iso dates

2007-05-31 Thread Eric Coleman
The following doesn't seem to work, though i've seen it mentioned that it -should- be $date = new Zend_Date('2007-05-31 04:02:00'); echo $date; // should be -> May 31, 2007 4:02:00 AM // actual output -> May 31, 2007 12:00:00 AM

[fw-general] Zend Debug Dump

2007-05-31 Thread Ian Warner
Hi When using Zend_Debug::dump since the upgrade --- or maybe since installing XDEBUG the output now seems to have HTML entties applied so I get: How do I get it back to be a pretty output ? Cheers Ian array 'translate_module' => object(Zend_Translate)[29] private '_adapter' =

Re: [fw-general] Multilpe routes per module

2007-05-31 Thread Martel Valgoerad
Jur Jean wrote: I'm probably missing something here - I seem to be the only one who wants more than 1 route for a module. $router->addRoute('projects', new Zend_Controller_Router_Route('/projects/:action/:id', array('module'=>'projects', 'controller'=>'index', 'action'=>'index', 'id'=>''))); $

Re: [fw-general] ViewRenderer

2007-05-31 Thread Matthew Weier O'Phinney
-- Ian Warner <[EMAIL PROTECTED]> wrote (on Thursday, 31 May 2007, 02:22 PM +0100): > Ok to elobarate on this it seems I get this error when: > > I forward from one module to anothers underconstruction page: > > // Currently simply forwarding to the Under Constuction page. > $this

Re: [fw-general] ViewRenderer

2007-05-31 Thread Ian Warner
Ok to elobarate on this it seems I get this error when: I forward from one module to anothers underconstruction page: // Currently simply forwarding to the Under Constuction page. $this->_forward('index', 'construction', 'page'); gives me: Zend_Controller_Dispatcher_Exception:

Re: [fw-general] Inserting dates in Zend_DB

2007-05-31 Thread Tony Harrison
Works fine. Thank you. Darby Felton wrote: > Hi Tony, > > Try using Zend_Db_Expr for your MySQL function calls. This is > documented, but it lacks prominence: > > http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.write > > Example 9.14. Inserting expressions to a table > > > $data

Re: [fw-general] Inserting dates in Zend_DB

2007-05-31 Thread Darby Felton
Hi Tony, Try using Zend_Db_Expr for your MySQL function calls. This is documented, but it lacks prominence: http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.write Example 9.14. Inserting expressions to a table new Zend_Db_Expr('CURDATE()'), 'bug_description' => 'Something w

[fw-general] Problems debuging ZF with eclipse pdt

2007-05-31 Thread chelala
Hi I have problems debuggin ZF sites that use apache's url rewrite. For example I'm using Zend Framework whish redirects all requests to index.php and then loads proper php file and class. ex. http://mydomain.com/myproject/index.php <-- having opened index.php in the project. debugs OK http://

Re: [fw-general] View Logic

2007-05-31 Thread Sam Davey
Okay, scrap that. I've just read '27.3.4. Search Result Sorting' in the manual. I should've complete my research first. I'm still a little confused as to dynamic information. Say the cost information I mentioned earlier changes on a daily or even hourly basis. Is it simply up to me to make s

Re: [fw-general] View Logic

2007-05-31 Thread Sam Davey
Thanks, its a shift from what I'm used to... although I've had enough problems with muddying logic/presentation that I'm determined to change my ways. I have another question and I'm not sure if it might be more suited to a fresh post. I've been really impressed with Zend_Search_Lucene and I ca

Re: [fw-general] Multilpe routes per module

2007-05-31 Thread Cyber
Jur Jean wrote: > > I'm probably missing something here - I seem to be the only one who wants > more than 1 route for a module. > > $router->addRoute('projects', new > Zend_Controller_Router_Route('/projects/:action/:id', > array('module'=>'projects', 'controller'=>'index', 'action'=>'index',

Re: [fw-general] Zend View Abstract Error after updating to 1.0.0RC1

2007-05-31 Thread Matthew Weier O'Phinney
-- KungFuChris <[EMAIL PROTECTED]> wrote (on Thursday, 31 May 2007, 03:59 AM -0700): > I just upgraded to 1.0.0RC1. I use Smarty .. not in the way it is tied to > Zend View in the examples around devzone > > It seems that it always does the default which is look for the default zend > view fil

[fw-general] Zend View Abstract Error after updating to 1.0.0RC1

2007-05-31 Thread KungFuChris
Hi, I just upgraded to 1.0.0RC1. I use Smarty .. not in the way it is tied to Zend View in the examples around devzone It seems that it always does the default which is look for the default zend view files... What's the work around for this? My page is outputted fine using smarty.. but it se

Re: [fw-general] looking for sample sites with code in MVC architecture using Zend Framework

2007-05-31 Thread ikhalid
Thanks but "is there any other website where i can get sample projects other than this one"? ikhalid wrote: > > hi > > if anybody please tell me where can i find "PHP sample sites" build in > Model View Architecture using Zend framework. > > Thanks. > -- View this message in context: ht

[fw-general] Inserting dates in Zend_DB

2007-05-31 Thread Tony Harrison
Hello, how do I insert the current time into a mysql datetime field, using the insert() method? Normally I would use the MySQL now function, but I can't work out how to pass a MySQL function as a field value. Thanks, Tony.

Re: [fw-general] View Logic

2007-05-31 Thread Pádraic Brady
Hi Sam, One way or the other, the View needs all the relevant data to render a page. So it needs to have access to all that relevant data from the Model. I suppose the first step is making sure the Model has sufficient logic to gather only the required data. In a sense this logic represents the

[fw-general] View Logic

2007-05-31 Thread Sam Davey
Like many developers a proportion of my time is spent creating reports based on database data. Sometimes if it is a very simple report which may never be reused I may even simply create a flat php page to get the data out to the user. I do this because I know I can knock it up in about 15 minute

Re: [fw-general] link rot issues

2007-05-31 Thread Pádraic Brady
Hi, First of all never use $_SERVER["PHP_SELF"] unless it's sanitised :). It's actually user input in many cases (esp. with mod_rewrite enabled which is almost a certainty with the ZF) so it's not trustworthy. In Views, there's the Url helper which will construct a valid url for a framework ba

[fw-general] Multilpe routes per module

2007-05-31 Thread Jur Jean
I'm probably missing something here - I seem to be the only one who wants more than 1 route for a module. $router->addRoute('projects', new Zend_Controller_Router_Route('/projects/:action/:id', array('module'=>'projects', 'controller'=>'index', 'action'=>'index', 'id'=>''))); $router->addRoute('