Re: [fw-general] Of 3 methods to centralize code used in all/many controllers which do you use when?

2009-06-16 Thread Cameron
why can't it be all three? seriously though, i'm doing mostly 1, then 3 and 2. On Tue, Jun 16, 2009 at 1:35 PM, joedevon joede...@gmail.com wrote: The following question on Stack Overflow prompted this post:

[fw-general] Zend_Tool: Messes up my controller code?

2009-06-16 Thread wenbert
Hello, I have been creating new actions (with views) using zf.sh and noticed that tabs and newlines are inserted into my existing controller file. In short, it is messing up the formatting. Can anyone confirm this? Is this an existing problem in ZF? Thanks, Wenbert - http://blog.ekini.net

Re: [fw-general] Zend_Db and the now() keyword?

2009-06-16 Thread Håkan Medin
Hi, Try using Zend_Db_Expr: $data = array( 'orders_status' = (int)$orders_status, 'last_modified' = new Zend_Db_Expr('NOW()')); Regards Håkan Medin On Tue, Jun 16, 2009 at 2:46 AM, Kendall Bennett kenda...@amainhobbies.comwrote: Ok, I am struggling to find a solution to this

Re: [fw-general] How to escape forward slash in paginator?

2009-06-16 Thread Deepak
On Tue, Jun 16, 2009 at 12:49 AM, Matthew Ratzloffm...@builtfromsource.com wrote: You can replace it with a substitute token.  There are a variety of perfectly valid ways to go about it. -Matt Ok I read the documentation and now I understand that my problem could be solved with custom filter

[fw-general] re[fw-general] gistering action helper in zf1.8

2009-06-16 Thread jigen7
I really need help in creating my custom action helper i dont know where to start ,where to put the files, how to register it via application.ini as of zf 1.8 so i can call it directly to my controllers. -- View this message in context:

Re: [fw-general] Of 3 methods to centralize code used in all/many controllers which do you use when?

2009-06-16 Thread Dalibor Karlović
On Tuesday 16 June 2009 07:35:11 joedevon wrote: The following question on Stack Overflow prompted this post: http://stackoverflow.com/questions/866367/how-do-i-centralize-code-from-my- init-functions-in-all-controllers/866517 How do I centralize code from my init functions in all

[fw-general] Get request from view

2009-06-16 Thread umpirsky
Hi. Is there some easy way to get request parameters from view script (object)? I like smarty $smarty.post, is there sth like $view-getParam() in zend framework? Regards, Sasa Stamenkovic. -- View this message in context: http://www.nabble.com/Get-request-from-view-tp24049727p24049727.html

Re: [fw-general] Get request from view

2009-06-16 Thread Dalibor Karlović
On Tuesday 16 June 2009 10:22:10 umpirsky wrote: Hi. Is there some easy way to get request parameters from view script (object)? I like smarty $smarty.post, is there sth like $view-getParam() in zend framework? Nope, you should write a view helper which access it (zym has it, IIRC). --

Re: [fw-general] Get request from view

2009-06-16 Thread Sudheer Satyanarayana
umpirsky wrote: Hi. Is there some easy way to get request parameters from view script (object)? I like smarty $smarty.post, is there sth like $view-getParam() in zend framework? You can get the request parameters from the request object. This might help to grab the request object:

[fw-general] Putting Zend Framework application online

2009-06-16 Thread Mantasgl
Hi, I have my Zend Framework application fully working on my PC (localhost). My application directory structure is default: /myapp /application /library /public I have configured my apache virtual hosts, so that it point to public directory: VirtualHost ∗:80 ServerName myapp

[fw-general] Zend Form, JQuery, File_Element and ViewScript decorator.

2009-06-16 Thread Paweł Chuchmała
Hi. Performance of Zend Form with 300 fileds it's very low, so I think to use viewscript decorator. How use it with jquery elements and File element? If i create view scripts like in documentation and apply to alle elements I have warnings: Warning: Cannot render jQuery form element without at

Re: [fw-general] TinyMce editor

2009-06-16 Thread Matt Cockayne
I dont know if you managed to sort this but I have a tutorial on integrating tinymce into a zend framework (1.8) project see http://www.codersarmy.com/zend-tinymce Razorblade wrote: this is not strictly related to Zend Framework, but I need to implement tinyMce inside my ZF app and

Re: [fw-general] Placeholder view helpers in partials don't work for layouts?

2009-06-16 Thread dmitrybelyakov
Hi Deanna, First of all thanks for your reply. Glad i got some response here. Maybe i don't use the paradigm it was intended, so correct me is i am wrong: The Layout is the actually the template of my webpages with a main content area that is controlled by module controllers. Besides the

Re: [fw-general] Putting Zend Framework application online

2009-06-16 Thread Deepak
On Tue, Jun 16, 2009 at 4:43 PM, Mantasglmanta...@gmail.com wrote: Hi, I have my Zend Framework application fully working on my PC (localhost). My application directory structure is default: /myapp /application /library /public I have configured my apache virtual hosts, so

Re: [fw-general] TinyMce editor

2009-06-16 Thread Dalibor Karlović
On Tuesday 16 June 2009 11:18:19 Matt Cockayne wrote: I dont know if you managed to sort this but I have a tutorial on integrating tinymce into a zend framework (1.8) project see http://www.codersarmy.com/zend-tinymce I did almost the exact same thing. IMHO, Zend should include/support a

Re: [fw-general] TinyMce editor

2009-06-16 Thread Matt Cockayne
I know what you mean. The rich text that comes with dojo just isn't up to scratch. I chose Tiny MCE just beacuse I'm familiar with it. But the principle should be the same for any editor. Maybe we should start lobbying to get one included in the library by default. Its pretty much a staple for

RE: [fw-general] TinyMce editor

2009-06-16 Thread Sergio Rinaudo
In the end I choose Markitup! for my application, that I think is hundred times simpler than TinyMce http://markitup.jaysalvat.com/home/ bye Sergio Rinaudo Date: Tue, 16 Jun 2009 03:02:39 -0700 From: matt.cocka...@hotmail.co.uk To: fw-general@lists.zend.com Subject: Re: [fw-general]

Re: [fw-general] TinyMce editor

2009-06-16 Thread Jurian Sluiman
Well MarkItUp is a different editor. While TinyMCE is a wysiwyg editor, MarkItUp implies you have knowledge of the markup language. I can't expect all my visitors know html or the wiki syntax. While MarkItUp has a fast and simple interface, for advanced editing TinyMCE is imho better. Regards,

Re: [fw-general] Zend Form, JQuery, File_Element and ViewScript decorator.

2009-06-16 Thread Thomas Weidner
Read the FAQ: http://framework.zend.com/wiki/display/ZFFAQ/Forms PS: Having 300 elements in a form the usability is also slow... your poor users :-) Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Paweł Chuchmała

Re: [fw-general] TinyMce editor

2009-06-16 Thread Matt Cockayne
I'm inclined to agree with Jurian. Im not familiar with MarkItUp but haveing looked at the website I know that I dont want users to have to need a knowledge of any form of mark up language in order to get the results they want. With that as the premise for using wysiwyg I can think of a lot of

[fw-general] Translating Zend_Form elements

2009-06-16 Thread Stefan Gehrig
Dear all, I know that Zend_Form is able to translate all the strings used in the form - this is even true for select-fields and other multi-options elements. But now I have the problem that I'll have to include a select-field into my Zend_Form which displays a list of names that cannot be and

Re: [fw-general] Putting Zend Framework application online

2009-06-16 Thread Michael Kimsal
Not every hosting company allows for 'remapping' stuff outside of the default configuration. The default Plesk configuration (which many hosts use) disallows a user putting any files output of the 'httpdocs' folder. This was true for plesk as of the 8.6 version - I've not tried the 9 version.

Re: [fw-general] Putting Zend Framework application online

2009-06-16 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In any case, you can just put a .htaccess file in your root directory, rewriting all requests into the public directory. See: http://site.svn.dasprids.de/trunk/.htaccess ... : ___ _ ___ ___ ___ _ ___: : | \

RE: [fw-general] TinyMce editor

2009-06-16 Thread Sergio Rinaudo
The only html capabilities I want to give to my users is bold, underlined, italic and coloured text, and also img tag to add images ( clicking an image from the media library ), and with markitup I can get all of this, as you can see in this example implementation

Re: [fw-general] Placeholder view helpers in partials don't work for layouts?

2009-06-16 Thread Deanna Bonds
dmitrybelyakov wrote: The Layout is the actually the template of my webpages with a main content area that is controlled by module controllers. Besides the main content area it may have some other included areas which may be simple included views, or rather complex like partials or other custom

Re: [fw-general] How to escape forward slash in paginator?

2009-06-16 Thread Matthew Ratzloff
1. Your own library. library/My/Filter/Foo.php2. http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.filters -Matt On Mon, Jun 15, 2009 at 11:35 PM, Deepak d88...@gmail.com wrote: On Tue, Jun 16, 2009 at 12:49 AM, Matthew Ratzloffm...@builtfromsource.com wrote:

Re: [fw-general] Small Change to Zend_Date

2009-06-16 Thread Arthur M. Kang
Thanks for the help Thomas. I will look into the other two formats you have suggested. I made the assumption that Yahoo's RSS feeds would be compliant to the spec. Maybe not... Arthur Thomas Weidner wrote: In this case you should not use RSS but RFC2822 which is not RSS conform but

Re: [fw-general] Placeholder view helpers in partials don't work for layouts?

2009-06-16 Thread dmitrybelyakov
Deanna Bonds-2 wrote: I think what you are looking for is named capture regions. You layout all your static layout in the layout.phtml file (or whatever your name for the layout file is). Then in your views you use named placeholders (capture sections) for the content you want to

Re: [fw-general] View partials packaged with the framework?

2009-06-16 Thread Matthew Weier O'Phinney
-- Matthew Ratzloff m...@builtfromsource.com wrote (on Tuesday, 09 June 2009, 07:57 AM -0700): There was an issue raised requesting that Zend_Paginator output something by default without setting a view partial.  The easiest way to do this is to include a default view partial.  The question is:

Re: [fw-general] Re: where is bootstrap object from within a controller plugin

2009-06-16 Thread Matthew Weier O'Phinney
-- David Mintz vtbludg...@gmail.com wrote (on Thursday, 11 June 2009, 02:30 PM -0400): On Thu, Jun 11, 2009 at 4:40 AM, Jurian Sluiman subscr...@juriansluiman.nl wrote: Op Thursday 11 June 2009 02:23:08 schreef Michael Depetrillo: I figured it out. $front =

[fw-general] Get Curl handle ressource when use Zend_Http_Client with Zend_Http_Client_Adapter_Curl

2009-06-16 Thread MARTIN Nicolas
Hi all, I use Zend_Http_Client with Zend_Http_Client_Adapter_Curl and I would like to get more informations and so use curl_getinfo($ch) [$ch is handle ressource] This handle ressource is the _curl property in Zend_Http_Client_Adapter_Curl. How get it ? For the moment I create my own

Re: [fw-general] View partials packaged with the framework?

2009-06-16 Thread Dalibor Karlović
On Tuesday 16 June 2009 18:17:16 Matthew Weier O'Phinney wrote: -- Matthew Ratzloff m...@builtfromsource.com wrote (on Tuesday, 09 June 2009, 07:57 AM -0700): There was an issue raised requesting that Zend_Paginator output something by default without setting a view partial. The easiest

[fw-general] Use Lucene as a stand alone component

2009-06-16 Thread Sergio Rinaudo
Hi, I need to implement Zend_Lucene in an existing project that is not using Zend Framework. How to do it? Any tutorial on the internet? Thanks Sergio Rinaudo _ Naviga più semplice, più veloce e più sicuro. Scarica Internet

[fw-general] Using a DI Container with Zend_Application

2009-06-16 Thread Benjamin Eberlei
Hello, I have written a blog post on how to integrate the Yadif DI container with Zend_Application (to replace Zend_Registry). It uses Application Resources as instances of the DI container and allows to use them as dependencies for any objects that are instantiated through the container.

[fw-general] Zend_Application_Module_Bootstrap doesn't work with default module

2009-06-16 Thread fab2008
I've read a lot of doc and forum post about autoloading, and after that I've decided to use the approach of autoloading via modules resources (suggested also by this article: http://devzone.zend.com/article/4525-Developing-a-Comprehensive-Autoloader) What I've done is to insert the following

[fw-general] Re: re[fw-general] gistering action helper in zf1.8

2009-06-16 Thread joedevon
jigen7 wrote: I really need help in creating my custom action helper i dont know where to start ,where to put the files, how to register it via application.ini if i put it to a custom folder as of zf 1.8 so i can call it directly to my controllers. In your Bootstrap.php put this:

Re: [fw-general] Autoloader best practices

2009-06-16 Thread fab2008
I figured out how to solve the problem of the library, just insert these lines into application.ini file: includePaths.library = APPLICATION_PATH /var/lib autoloadernamespaces.zenit = Company_ and then putting all common code under a directory called Company in the include path, in my case

[fw-general] How to include the result of a request inside the phtml file ?

2009-06-16 Thread debussy007
Hello, When rendering the phtml file, I would like to get the result of a request and put it in the html : [some html code ...] ?php // put the output of // $this-baseUrl . '/admin/widgets/' . $widget . '/page/' . $page // right here ? [some html code ...] Does anyone

RE: [fw-general] How to include the result of a request inside the phtml file ?

2009-06-16 Thread Sergio Rinaudo
I think an iframe can help, or an ajax call as well... I don't know if there are any other solutions.. Bye Sergio Rinaudo Date: Tue, 16 Jun 2009 14:12:19 -0700 From: debussy...@gmail.com To: fw-general@lists.zend.com Subject: [fw-general] How to include the result of a request inside

Re: [fw-general] Using a DI Container with Zend_Application

2009-06-16 Thread Matthew Weier O'Phinney
-- Benjamin Eberlei kont...@beberlei.de wrote (on Tuesday, 16 June 2009, 09:54 PM +0200): I have written a blog post on how to integrate the Yadif DI container with Zend_Application (to replace Zend_Registry). It uses Application Resources as instances of the DI container and allows to use

Re: [fw-general] How to include the result of a request inside the phtml file ?

2009-06-16 Thread Matthew Weier O'Phinney
-- debussy007 debussy...@gmail.com wrote (on Tuesday, 16 June 2009, 02:12 PM -0700): When rendering the phtml file, I would like to get the result of a request and put it in the html : [some html code ...] ?php // put the output of // $this-baseUrl . '/admin/widgets/' .

Re: [fw-general] Use Lucene as a stand alone component

2009-06-16 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There's no difference in using it without the MVC-part of ZF, as it doesn't use it. You just need Zend_Loader and Zend_Exception in place. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : |

Re: [fw-general] TinyMce editor

2009-06-16 Thread Juan Felipe Alvarez Saldarriaga
Hey, what about FCKEditor ? I love the browse server files feature. On Tue, Jun 16, 2009 at 7:19 AM, Sergio Rinaudokaiohken1...@hotmail.com wrote: The only html capabilities I want to give to my users is bold, underlined, italic and coloured text, and also img tag to add images ( clicking an

Re: [fw-general] Putting Zend Framework application online

2009-06-16 Thread Peter Myllykoski
Hi, My solution to this problem was to use two .htaccess files. In the mydomain folder you put the following: RewriteEngine On RewriteRule ^\.htaccess$ - [F] RewriteCond %{REQUEST_URI} = RewriteRule ^.*$ /public/index.php [NC,L] RewriteCond %{REQUEST_URI} !^/public/.*$ RewriteRule ^(.*)$

Re: [fw-general] Putting Zend Framework application online

2009-06-16 Thread Deepak
On Tue, Jun 16, 2009 at 7:22 PM, Michael Kimsalmgkim...@gmail.com wrote: Not every hosting company allows for 'remapping' stuff outside of the default configuration. I am assuming that the *nix based hosting. In my case I am hosting in bluehost and their public_html folder is where all the html

Re: [fw-general] Putting Zend Framework application online

2009-06-16 Thread Vadim Gabriel
This will work only on Linux hosts where the mod_rewrite is enabled. Wouldn't it be better to add another index.php file inside the root folder that will include the index.php file from the public folder? What happens to members using windows? On Tue, Jun 16, 2009 at 3:07 PM, Ben Scholzen