[fw-general] Anonymous SVN checkout?

2008-11-13 Thread Christian Sanchez
Is it unavailable atm?

I've been trying to access anonymously and it doesn't work

-- 
Christian Sánchez A.


Re: [fw-general] Dojo Form example not working (ex 12.29)

2008-08-15 Thread Christian Sanchez
Well I found out that removing the Tab that has the text objects gets rid of
the problem... I think it has to do with the currency textbox or the date
textbox I can't remember which one was it...

2008/8/15 Nosy <[EMAIL PROTECTED]>

>
> I'm also have these bugs,in ie it's wrong but in ff it's right!
> why?
>
>
> Christian Sanchez wrote:
> >
> > The example works on Mozilla, but on IE shows some kind of warning...
> >
> > line: 21
> > Error: 'undefined' is null or not an object
> >
> > Looking at the source line 21 is the following:
> >
> > dojo.require("dijit.form.DateTextBox");
> >
> > Any recommendations on IE?
> > The Hello World! button example from Dojo seems to work on IE btw...
> >
> > 2008/7/28 Christian Sanchez <[EMAIL PROTECTED]>
> >
> >> Thanks Matthew!! It worked!! Now I'm going to create my own forms :D.
> >> Thanks!
> >> I will give another read to the docs, to let you know if there's
> anything
> >> to fix as well :P
> >>
> >> 2008/7/28 Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> >>
> >> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> >>> (on Sunday, 27 July 2008, 09:41 PM -0500):
> >>> > Ok, let's see, I have the following in my bootstrap:
> >>> >
> >>> > $view = new Zend_View();
> >>> > $view->addHelperPath('Zend/Dojo/View/Helper/',
> >>> 'Zend_Dojo_View_Helper');
> >>> > $view->addHelperPath('Zend/Dojo/View/Helper',
> >>> 'Zend_Dojo_View_Helper');
> >>> //the
> >>> > line added after what you said
> >>> > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
> >>> > $viewRenderer->setView($view);
> >>> > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >>> >
> >>> > After this I have the following in my layout:
> >>>
> >>> BZZZTTT!!! Here's part of your issue. If you echo dojo() before
> >>> everything's been set in it, then you're going to be missing
> statements.
> >>> In this example, you're echoing the form in your _layout_ script,
> >>> _after_ dojo() has already been echoed... which means that any
> >>> dojo.require() and addOnLoad() statements produced by the form will be
> >>> missing.
> >>>
> >>> Render the form _prior_ to echoing the dojo() view helper; you can even
> >>> do this in your layout by capturing the value first:
> >>>
> >>>form->render() ?>
> >>>
> >>> and then simply rendering the captured content later:
> >>>
> >>>
> >>>
> >>> >
> >>> > 
> >>> > placeholder('title'); ?>
> >>> > layout()->content; ?>
> >>> > form(); ?>
> >>> >
> >>> > 
> >>> > 
> >>> > 
> >>> >
> >>> > In the controller these line to add your example form:
> >>> >
> >>> > $form = new MyForm(); // I changed the name of the form to MyForm
> >>> > $this->view->form = $form;
> >>>
> >>> You need to specify a name for the form:
> >>>
> >>>$form = new MyForm(array('name' => 'foo'));
> >>>
> >>> I'll update the docs to indicate this.
> >>>
> >>> > Now I get the following error:
> >>> >
> >>> > Warning: Missing argument 1 for Zend_Dojo_View_Helper_Form::form() in
> >>> W:\usr\
> >>> > local\php\includes\Zend\Dojo\View\Helper\Form.php on line 62
> >>> >
> >>> > Am I doing anything wrong here?
> >>> >
> >>> > 2008/7/26 Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> >>> >
> >>> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> >>> > (on Friday, 25 July 2008, 10:32 PM -0500):
> >>> > > Hey, now I'm reading the docs and implementing the example
> 12.29
> >>> from the
> >>> > docs
> >>> > > (pretty much a copy and paste to see how it works) but I get
> the
> >>> > following
> >>> > > error:
> >>&g

Re: [fw-general] Dojo Form example not working (ex 12.29)

2008-07-29 Thread Christian Sanchez
The example works on Mozilla, but on IE shows some kind of warning...

line: 21
Error: 'undefined' is null or not an object

Looking at the source line 21 is the following:

dojo.require("dijit.form.DateTextBox");

Any recommendations on IE?
The Hello World! button example from Dojo seems to work on IE btw...

2008/7/28 Christian Sanchez <[EMAIL PROTECTED]>

> Thanks Matthew!! It worked!! Now I'm going to create my own forms :D.
> Thanks!
> I will give another read to the docs, to let you know if there's anything
> to fix as well :P
>
> 2008/7/28 Matthew Weier O'Phinney <[EMAIL PROTECTED]>
>
> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
>> (on Sunday, 27 July 2008, 09:41 PM -0500):
>> > Ok, let's see, I have the following in my bootstrap:
>> >
>> > $view = new Zend_View();
>> > $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
>> > $view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
>> //the
>> > line added after what you said
>> > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
>> > $viewRenderer->setView($view);
>> > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
>> >
>> > After this I have the following in my layout:
>>
>> BZZZTTT!!! Here's part of your issue. If you echo dojo() before
>> everything's been set in it, then you're going to be missing statements.
>> In this example, you're echoing the form in your _layout_ script,
>> _after_ dojo() has already been echoed... which means that any
>> dojo.require() and addOnLoad() statements produced by the form will be
>> missing.
>>
>> Render the form _prior_ to echoing the dojo() view helper; you can even
>> do this in your layout by capturing the value first:
>>
>>form->render() ?>
>>
>> and then simply rendering the captured content later:
>>
>>
>>
>> >
>> > 
>> > placeholder('title'); ?>
>> > layout()->content; ?>
>> > form(); ?>
>> >
>> > 
>> > 
>> > 
>> >
>> > In the controller these line to add your example form:
>> >
>> > $form = new MyForm(); // I changed the name of the form to MyForm
>> > $this->view->form = $form;
>>
>> You need to specify a name for the form:
>>
>>$form = new MyForm(array('name' => 'foo'));
>>
>> I'll update the docs to indicate this.
>>
>> > Now I get the following error:
>> >
>> > Warning: Missing argument 1 for Zend_Dojo_View_Helper_Form::form() in
>> W:\usr\
>> > local\php\includes\Zend\Dojo\View\Helper\Form.php on line 62
>> >
>> > Am I doing anything wrong here?
>> >
>> > 2008/7/26 Matthew Weier O'Phinney <[EMAIL PROTECTED]>
>> >
>> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
>> > (on Friday, 25 July 2008, 10:32 PM -0500):
>> > > Hey, now I'm reading the docs and implementing the example 12.29
>> from the
>> > docs
>> > > (pretty much a copy and paste to see how it works) but I get the
>> > following
>> > > error:
>> > >
>> > > Fatal error: Call to a member function accordionContainer() on a
>> > non-object in
>> > > W:\www\dev\prueba\application\default\layouts\main.phtml on line
>> 37
>> > >
>> > > I read this in a previous page:
>> > >
>> > > "In order to utilize these view helpers, you need to register the
>> path to
>> > the
>> > > dojo view helpers with your view object.
>> > >
>> > > Example 12.9. Registering the Dojo View Helper Prefix Path
>> > >
>> > > $view->addPrefixPath('Zend/Dojo/View/Helper',
>> 'Zend_Dojo_View_Helper');
>> >
>> > This is incorrect - it should read:
>> >
>> >$view->addHelperPath('Zend/Dojo/View/Helper',
>> 'Zend_Dojo_View_Helper');
>> >
>> > I'll update the manual -- thanks for the report!
>> >
>> >
>> > > If I add this line directly in the controller for this view only I
>> get
>> > the
>> > > following error:
>> &

Re: [fw-general] Dojo Form example not working (ex 12.29)

2008-07-28 Thread Christian Sanchez
Thanks Matthew!! It worked!! Now I'm going to create my own forms :D.
Thanks!
I will give another read to the docs, to let you know if there's anything to
fix as well :P

2008/7/28 Matthew Weier O'Phinney <[EMAIL PROTECTED]>

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Sunday, 27 July 2008, 09:41 PM -0500):
> > Ok, let's see, I have the following in my bootstrap:
> >
> > $view = new Zend_View();
> > $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
> > $view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
> //the
> > line added after what you said
> > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
> > $viewRenderer->setView($view);
> > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >
> > After this I have the following in my layout:
>
> BZZZTTT!!! Here's part of your issue. If you echo dojo() before
> everything's been set in it, then you're going to be missing statements.
> In this example, you're echoing the form in your _layout_ script,
> _after_ dojo() has already been echoed... which means that any
> dojo.require() and addOnLoad() statements produced by the form will be
> missing.
>
> Render the form _prior_ to echoing the dojo() view helper; you can even
> do this in your layout by capturing the value first:
>
>form->render() ?>
>
> and then simply rendering the captured content later:
>
>
>
> >
> > 
> > placeholder('title'); ?>
> > layout()->content; ?>
> > form(); ?>
> >
> > 
> > 
> > 
> >
> > In the controller these line to add your example form:
> >
> > $form = new MyForm(); // I changed the name of the form to MyForm
> > $this->view->form = $form;
>
> You need to specify a name for the form:
>
>$form = new MyForm(array('name' => 'foo'));
>
> I'll update the docs to indicate this.
>
> > Now I get the following error:
> >
> > Warning: Missing argument 1 for Zend_Dojo_View_Helper_Form::form() in
> W:\usr\
> > local\php\includes\Zend\Dojo\View\Helper\Form.php on line 62
> >
> > Am I doing anything wrong here?
> >
> > 2008/7/26 Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> >
> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> > (on Friday, 25 July 2008, 10:32 PM -0500):
> > > Hey, now I'm reading the docs and implementing the example 12.29
> from the
> > docs
> > > (pretty much a copy and paste to see how it works) but I get the
> > following
> > > error:
> > >
> > > Fatal error: Call to a member function accordionContainer() on a
> > non-object in
> > > W:\www\dev\prueba\application\default\layouts\main.phtml on line 37
> > >
> > > I read this in a previous page:
> > >
> > > "In order to utilize these view helpers, you need to register the
> path to
> > the
> > > dojo view helpers with your view object.
> > >
> > > Example 12.9. Registering the Dojo View Helper Prefix Path
> > >
> > > $view->addPrefixPath('Zend/Dojo/View/Helper',
> 'Zend_Dojo_View_Helper');
> >
> > This is incorrect - it should read:
> >
> >$view->addHelperPath('Zend/Dojo/View/Helper',
> 'Zend_Dojo_View_Helper');
> >
> > I'll update the manual -- thanks for the report!
> >
> >
> > > If I add this line directly in the controller for this view only I
> get
> > the
> > > following error:
> > >
> > > Fatal error: Uncaught exception
> 'Zend_Loader_PluginLoader_Exception' with
> > > message 'Plugin by name AddPrefixPath was not found in the
> registry.' in
> > W:\usr
> > > \local\php\includes\Zend\Loader\PluginLoader.php:372 Stack trace:
> #0 W:\
> > usr\
> > > local\php\includes\Zend\View\Abstract.php(1114):
> > Zend_Loader_PluginLoader->load
> > > ('AddPrefixPath') #1
> W:\usr\local\php\includes\Zend\View\Abstract.php
> > (545):
> > > Zend_View_Abstract->_getPlugin('helper', 'addPrefixPath') #2
> W:\usr\local
> > \php\
> > > includes\Zend\View\Abstract.php(312): Zend_View_Abstract->

Re: [fw-general] Dojo Form example not working (ex 12.29)

2008-07-27 Thread Christian Sanchez
The MyForm class is the Example in the documentation:

12.4.3. Dojo Form Examples

*Example 12.29. Using Zend_Dojo_Form*
I just changed the name from:

class My_Form_Test extends Zend_Dojo_Form

to

class MyForm extends Zend_Dojo_Form

That's why I was wondering where the error is... I just took the code from
the example and that error pops up...
2008/7/27 till <[EMAIL PROTECTED]>

> On Sun, Jul 27, 2008 at 10:41 PM, Christian Sanchez
> <[EMAIL PROTECTED]> wrote:
> > Ok, let's see, I have the following in my bootstrap:
> >
> > $view = new Zend_View();
> > $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
> > $view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
> > //the line added after what you said
> > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
> > $viewRenderer->setView($view);
> > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >
> > After this I have the following in my layout:
> >
> > 
> > placeholder('title'); ?>
> > layout()->content; ?>
> > form(); ?>
> >
> > 
> > 
> > 
> >
> > In the controller these line to add your example form:
> >
> > $form = new MyForm(); // I changed the name of the form to MyForm
> > $this->view->form = $form;
> >
> > Now I get the following error:
> >
> > Warning: Missing argument 1 for Zend_Dojo_View_Helper_Form::form() in
> > W:\usr\local\php\includes\Zend\Dojo\View\Helper\Form.php on line 62
> >
> > Am I doing anything wrong here?
>
> Yes... Use the force, read source.
> public function form($id, $attribs = null, $content = false)
>
> It needs a parameter ID.
>
> Your MyForm class needs to take care of that somewhere. If you want
> help, paste your MyForm class on pastie or similar.
>
> Till
>



-- 
Christian Sánchez A.


Re: [fw-general] Dojo Form example not working (ex 12.29)

2008-07-27 Thread Christian Sanchez
Ok, let's see, I have the following in my bootstrap:

$view = new Zend_View();
$view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
$view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
//the line added after what you said
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
$viewRenderer->setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

After this I have the following in my layout:


placeholder('title'); ?>
layout()->content; ?>
form(); ?>





In the controller these line to add your example form:

$form = new MyForm(); // I changed the name of the form to MyForm
$this->view->form = $form;

Now I get the following error:

*Warning*: Missing argument 1 for Zend_Dojo_View_Helper_Form::form() in *
W:\usr\local\php\includes\Zend\Dojo\View\Helper\Form.php* on line *62

*Am I doing anything wrong here?*
*
2008/7/26 Matthew Weier O'Phinney <[EMAIL PROTECTED]>

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Friday, 25 July 2008, 10:32 PM -0500):
> > Hey, now I'm reading the docs and implementing the example 12.29 from the
> docs
> > (pretty much a copy and paste to see how it works) but I get the
> following
> > error:
> >
> > Fatal error: Call to a member function accordionContainer() on a
> non-object in
> > W:\www\dev\prueba\application\default\layouts\main.phtml on line 37
> >
> > I read this in a previous page:
> >
> > "In order to utilize these view helpers, you need to register the path to
> the
> > dojo view helpers with your view object.
> >
> > Example 12.9. Registering the Dojo View Helper Prefix Path
> >
> > $view->addPrefixPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
>
> This is incorrect - it should read:
>
>$view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
>
> I'll update the manual -- thanks for the report!
>
>
> > If I add this line directly in the controller for this view only I get
> the
> > following error:
> >
> > Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with
> > message 'Plugin by name AddPrefixPath was not found in the registry.' in
> W:\usr
> > \local\php\includes\Zend\Loader\PluginLoader.php:372 Stack trace: #0
> W:\usr\
> > local\php\includes\Zend\View\Abstract.php(1114):
> Zend_Loader_PluginLoader->load
> > ('AddPrefixPath') #1
> W:\usr\local\php\includes\Zend\View\Abstract.php(545):
> > Zend_View_Abstract->_getPlugin('helper', 'addPrefixPath') #2
> W:\usr\local\php\
> > includes\Zend\View\Abstract.php(312): Zend_View_Abstract->getHelper
> > ('addPrefixPath') #3 [internal function]: Zend_View_Abstract->__call
> > ('addPrefixPath', Array) #4
> W:\www\dev\prueba\application\default\controllers\
> > IndexController.php(20): Zend_View->addPrefixPath('Zend/Dojo/View/...',
> > 'Zend_Dojo_View_...') #5
> W:\usr\local\php\includes\Zend\Controller\Action.php
> > (502): IndexController->indexAction() #6 W:\usr\local\php\includes\Zend\
> > Controller\Dispatcher\Standard.php(293): Zend_Controller_Action->dispatch
> > ('indexAction') #7 W:\usr\local\php\includes\Zend\Controller\Front.p in
> W:\usr\
> > local\php\includes\Zend\Loader\PluginLoader.php on line 372
> >
> > Now, I wonder... Where is the mistake?
> >
> > --
> > Christian S nchez A.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>



-- 
Christian Sánchez A.


[fw-general] Dojo Form example not working (ex 12.29)

2008-07-25 Thread Christian Sanchez
Hey, now I'm reading the docs and implementing the example 12.29 from the
docs (pretty much a copy and paste to see how it works) but I get the
following error:

*Fatal error*: Call to a member function accordionContainer() on a
non-object in *W:\www\dev\prueba\application\default\layouts\main.phtml* on
line *37*

I read this in a previous page:

"In order to utilize these view helpers, you need to register the path to
the dojo view helpers with your view object.

*Example 12.9. Registering the Dojo View Helper Prefix Path*

$view->addPrefixPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');

"

If I add this line directly in the controller for this view only I get the
following error:

*Fatal error*: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with
message 'Plugin by name AddPrefixPath was not found in the registry.' in
W:\usr\local\php\includes\Zend\Loader\PluginLoader.php:372 Stack trace: #0
W:\usr\local\php\includes\Zend\View\Abstract.php(1114):
Zend_Loader_PluginLoader->load('AddPrefixPath') #1
W:\usr\local\php\includes\Zend\View\Abstract.php(545):
Zend_View_Abstract->_getPlugin('helper', 'addPrefixPath') #2
W:\usr\local\php\includes\Zend\View\Abstract.php(312):
Zend_View_Abstract->getHelper('addPrefixPath') #3 [internal function]:
Zend_View_Abstract->__call('addPrefixPath', Array) #4
W:\www\dev\prueba\application\default\controllers\IndexController.php(20):
Zend_View->addPrefixPath('Zend/Dojo/View/...', 'Zend_Dojo_View_...') #5
W:\usr\local\php\includes\Zend\Controller\Action.php(502):
IndexController->indexAction() #6
W:\usr\local\php\includes\Zend\Controller\Dispatcher\Standard.php(293):
Zend_Controller_Action->dispatch('indexAction') #7
W:\usr\local\php\includes\Zend\Controller\Front.p in *
W:\usr\local\php\includes\Zend\Loader\PluginLoader.php* on line *372

*Now, I wonder... Where is the mistake?*

*--
Christian Sánchez A.


Re: [fw-general] Zend Framework 1.6 Release Candidate 1 now available!

2008-07-25 Thread Christian Sanchez
Well its weird that I downloaded directly from the SVN and it didn't worked,
then I downloaded a copy of the dojo toolkit from the official page, and
worked. To confirm this I downloaded from the ZF downloads link and it
didn't worked either.

I copied the files from externals/dojo to scripts/dojo and have set the
localpath the same as yours. Isn't the localpath independent of the
location? It should work with whatever path you send as a parameter, of
course being under a public folder (where you don't get an 404 error).

All I wanted to try is the Hello World! example from dojo with your
libraries, maybe if you recreate that with the ZF 1.6 RC1 package download,
you'll see the error. I will confirm though, a firend has another instance
using Dojo with ZF too.

2008/7/25 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Thursday, 24 July 2008, 07:11 PM -0500):
> > Hey I just re-downloaded (if that's a word :P) the package from the page
> you
> > sent but I had some issues with the dojo (externals) version packaged, I
> > suggest you should make a new package because Dojo wasn't working with
> the
> > tests I was making. Had to download a fresh copy from the dojotoolkit
> home
> > page. Firebug was sending some errors about not defined objects...
> > Hope this suggestion could help some people that downloaded this version
> and it
> > wasn't working for them...
>
> I am using the externals as shipped, and having no issues. In my
> project, I have created a symlink to this directory:
>
>% cd /path/to/project/public
>% ln -s /path/to/framework/externals/dojo scripts
>
> The above creates a symlink called 'scripts' that points to
> externals/dojo/ in my framework location. I then have the following in
> my code:
>
>$view->dojo()->setLocalPath('/scripts/dojo/dojo.js');
>
> And that's all there is to it. Everything just works from there.
>
> How were you doing it?
>
> > 2008/7/22 Alexander Veremyev <[EMAIL PROTECTED]>:
> >
> > We couldn't be happier to announce that Zend Framework 1.6 Release
> > Candidate 1 is now available from the Zend Framework download site!
> >
> > http://framework.zend.com/download
> >
> > An overview of new features:
> >
> > * Dojo Integration
> >- JSON-RPC
> >- Dojo Data packing
> >- Dojo View Helper
> >- Dijit integration with Zend_Form & Zend_View
> >- Dojo Library Distribution
> > * SOAP
> >- SOAP Server
> >- SOAP Client
> >- Autodiscovery
> >- WSDL access
> >- WSDL Generation
> > * Preview of Tooling Project in Laborator (see /laboratory folder)
> >- Command Line Interface
> >- Project Asset Management
> > * Unit Testing Harness for Controllers
> > * Lucene 2.3 Index File Format Support
> > * Zend_Session save handler for Database Tables
> > * Paginator Component
> > * Text/Figlet Support
> > * ReCaptcha Service
> > * Zend_Config_Xml Attribute Support
> > * Character Set Option for DB Adapters
> > * Zend File Transfer Component
> > * New Media View Helpers (Flash, Quicktime, Object, and Page)
> > * Support in Zend_Translate for INI File Format
> >
> > This obviously marks a very important step towards a high-quality,
> > highly tested 1.6 GA release. Thanks to everyone who has contributed
> to
> > this release in any way: with patches/check ins,
> > documentation/translations, and bug reports.
> > But our work is not yet over! Let's do our best to bring this release
> to
> > the breaking point to find areas we can improve the release for
> General
> > Availability. Based on your feedback we will determine in the next
> few
> > weeks whether we require additional release candidates, so please
> > provide feedback on our issue tracker (
> http://framework.zend.com/issues)
> > as soon as you can and ask any questions/post your experiences on the
> > appropriate mailing list.
> >
> > Again, the Zend Framework community does NOT recommend this release
> for
> > production use. We do, however, recommend evaluating new features in
> > this release with existing and new applications.
> >
> > Enjoy 1.6RC1, and see you on the issue tracker, wiki, and mailing
> lists!
> >
> > ,Alexander
> >
> >
> >
> >
> >
> > --
> > Christian S nchez A.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>



-- 
Christian Sánchez A.


Re: [fw-general] Trying Dojo Hello World

2008-07-24 Thread Christian Sanchez
It worked matthew the problem was with the Dojo version included in the ZF
1.6 RC1... Thanks for answering, i know it was getting frustrating and
annoying :/
Thanks a lot Matt!!

2008/7/24 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Thursday, 24 July 2008, 04:50 PM -0500):
> > So, you're telling me that I _must_ have the vhosts file configured so
> that any
> > given project is given a full URL i.e.: http://localhost/ (or any other
> vhosts
> > URL I configured?).
>
> No. You just need to provide the path segment of the URL that will
> resolve to dojo.
>
> So, if http://localhost/scripts/dojo/dojo.js resolves, you pass
> '/scripts/dojo/dojo.js' to setLocalPath().
>
>
> > 2008/7/24 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> >
> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> > (on Wednesday, 23 July 2008, 11:30 PM -0500):
> > > 2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> > > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> > > > ?>
> > > >
> > > > 
> > > >
> > > > 
> > > >  > > > echo $this->headTitle();
> > > > echo $this->headMeta();
> > > > echo $this->headLink();
> > > > echo $this->headStyle();
> > > > ?>
> > > > dojo()->isEnabled()):
> > >
> > > You don't need to do the conditional here -- just echo the
> helper. If
> > > it's not enabled, nothing will be rendered.
> > >
> > > Ok, I just commented that line.
> > >
> > >
> > > One technique I've used is to do the setup below:
> > >
> > >
> > >
> > > >
> $this->dojo()->setLocalPath('/scripts/dojo_f/dojo/
> > dojo.js')
> > > >   ->addStyleSheetModule('dijit.themes.tundra');
> > >
> > > Do you use it like that in your bootstrap?
> > > I suggest that the documentation should include the part of the
> bootstrap
> > that
> > > took me a while to figure out... Setting the view helper like this:
> > >
> > > $view = new Zend_View();
> > > $view->addHelperPath('Zend/Dojo/View/Helper/',
> 'Zend_Dojo_View_Helper');
> > > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
> > > $viewRenderer->setView($view);
> > > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> > >
> > > Is this snippet correct?
> >
> > Yes. An alternative that shortens it up slightly:
> >
> >$viewRenderer =
> Zend_Controller_Action_HelperBroker::getStaticHelper
> > ('ViewRenderer');
> >$viewRenderer->initView();
> >Zend_Dojo::enableView($viewRenderer->view);
> >
> > but that only eliminates two lines. :)
> >
> > > in my bootstrap, and then disable the helper until I explicitly
> > enable
> > > it in a view script. (I should probably put that in the
> manual.)
> > >
> > > >   echo $this->dojo();
> > > >endif;
> > > > ?>
> > > >  > > > echo $this->headScript();
> > > >  ?>
> > > > 
> > > >
> > > > 
> > > > placeholder('title') ?>
> > > > layout()->content ?>
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > >
> > > So, now my question is: is something not working for you here?
> > >
> > >
> > > I just set an explicit localpath:
> > >
> > > $this->dojo()->setLocalPath('
> http://localhost/dev/example/html/scripts/
> > dojo_f/
> > > dojo/dojo.js')
> > >   ->addStyleSheetModule('dijit.themes.tundra');
> > >
&

Re: [fw-general] Zend Framework 1.6 Release Candidate 1 now available!

2008-07-24 Thread Christian Sanchez
Hey I just re-downloaded (if that's a word :P) the package from the page you
sent but I had some issues with the dojo (externals) version packaged, I
suggest you should make a new package because Dojo wasn't working with the
tests I was making. Had to download a fresh copy from the dojotoolkit home
page. Firebug was sending some errors about not defined objects...
Hope this suggestion could help some people that downloaded this version and
it wasn't working for them...

2008/7/22 Alexander Veremyev <[EMAIL PROTECTED]>:

> We couldn't be happier to announce that Zend Framework 1.6 Release
> Candidate 1 is now available from the Zend Framework download site!
>
> http://framework.zend.com/download
>
> An overview of new features:
>
> * Dojo Integration
>- JSON-RPC
>- Dojo Data packing
>- Dojo View Helper
>- Dijit integration with Zend_Form & Zend_View
>- Dojo Library Distribution
> * SOAP
>- SOAP Server
>- SOAP Client
>- Autodiscovery
>- WSDL access
>- WSDL Generation
> * Preview of Tooling Project in Laborator (see /laboratory folder)
>- Command Line Interface
>- Project Asset Management
> * Unit Testing Harness for Controllers
> * Lucene 2.3 Index File Format Support
> * Zend_Session save handler for Database Tables
> * Paginator Component
> * Text/Figlet Support
> * ReCaptcha Service
> * Zend_Config_Xml Attribute Support
> * Character Set Option for DB Adapters
> * Zend File Transfer Component
> * New Media View Helpers (Flash, Quicktime, Object, and Page)
> * Support in Zend_Translate for INI File Format
>
> This obviously marks a very important step towards a high-quality,
> highly tested 1.6 GA release. Thanks to everyone who has contributed to
> this release in any way: with patches/check ins,
> documentation/translations, and bug reports.
> But our work is not yet over! Let's do our best to bring this release to
> the breaking point to find areas we can improve the release for General
> Availability. Based on your feedback we will determine in the next few
> weeks whether we require additional release candidates, so please
> provide feedback on our issue tracker (http://framework.zend.com/issues)
> as soon as you can and ask any questions/post your experiences on the
> appropriate mailing list.
>
> Again, the Zend Framework community does NOT recommend this release for
> production use. We do, however, recommend evaluating new features in
> this release with existing and new applications.
>
> Enjoy 1.6RC1, and see you on the issue tracker, wiki, and mailing lists!
>
> ,Alexander
>
>


-- 
Christian Sánchez A.


Re: [fw-general] Trying Dojo Hello World

2008-07-24 Thread Christian Sanchez
Ok, figured it out... Firebug told me that I was calling an undefined
object... The dojo version I was using It's the one from the 1.6RC1... I
downloaded a fresh copy and it worked fine... The button is now the same
from the dojo docs examples... Thanks for the help Matt

2008/7/24 Christian Sanchez <[EMAIL PROTECTED]>:

> Ok I configured the vhosts and still nothing... The button disappears...
> I attached the applicaion layout i'm using for your consideration.
>
> 2008/7/24 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
>
> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
>> (on Wednesday, 23 July 2008, 11:30 PM -0500):
>> > 2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
>> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
>> > > ?>
>> > >
>> > > 
>> > >
>> > > 
>> > > > > > echo $this->headTitle();
>> > > echo $this->headMeta();
>> > > echo $this->headLink();
>> > > echo $this->headStyle();
>> > > ?>
>> > > dojo()->isEnabled()):
>> >
>> > You don't need to do the conditional here -- just echo the helper.
>> If
>> > it's not enabled, nothing will be rendered.
>> >
>> > Ok, I just commented that line.
>> >
>> >
>> > One technique I've used is to do the setup below:
>> >
>> >
>> >
>> > >
>> $this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js')
>> > >   ->addStyleSheetModule('dijit.themes.tundra');
>> >
>> > Do you use it like that in your bootstrap?
>> > I suggest that the documentation should include the part of the
>> bootstrap that
>> > took me a while to figure out... Setting the view helper like this:
>> >
>> > $view = new Zend_View();
>> > $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
>> > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
>> > $viewRenderer->setView($view);
>> > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
>> >
>> > Is this snippet correct?
>>
>> Yes. An alternative that shortens it up slightly:
>>
>>$viewRenderer =
>> Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
>>$viewRenderer->initView();
>>Zend_Dojo::enableView($viewRenderer->view);
>>
>> but that only eliminates two lines. :)
>>
>> > in my bootstrap, and then disable the helper until I explicitly
>> enable
>> > it in a view script. (I should probably put that in the manual.)
>> >
>> > >   echo $this->dojo();
>> > >endif;
>> > > ?>
>> > > > > > echo $this->headScript();
>> > >  ?>
>> > > 
>> > >
>> > > 
>> > > placeholder('title') ?>
>> > > layout()->content ?>
>> > >
>> > > 
>> > > 
>> > > 
>> > >
>> > > 
>> >
>> > So, now my question is: is something not working for you here?
>> >
>> >
>> > I just set an explicit localpath:
>> >
>> > $this->dojo()->setLocalPath('
>> http://localhost/dev/example/html/scripts/dojo_f/
>> > dojo/dojo.js')
>> >   ->addStyleSheetModule('dijit.themes.tundra');
>> >
>> > but still doesn't work... I'll attach some pics to explain myself a
>> little
>> > better though.
>>
>> Your local path is still incorrect.
>>
>> Let's say you're using the standard application layout, and have dojo
>> under public/scripts/dojo_f:
>>
>>application/
>>controllers/
>>views/
>>library/
>>Zend/
>>public/
>>.htaccess
>>index.php
>> scripts/
>>dojo_f/
>>dojo/
>>dojo.js
>>
>> Your vhost is pointing the DocumentRoot at your public directory. So,
>> you need so specify the local path as sta

Re: [fw-general] Trying Dojo Hello World

2008-07-24 Thread Christian Sanchez
Ok I configured the vhosts and still nothing... The button disappears...
I attached the applicaion layout i'm using for your consideration.

2008/7/24 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Wednesday, 23 July 2008, 11:30 PM -0500):
> > 2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> > > ?>
> > >
> > > 
> > >
> > > 
> > >  > > echo $this->headTitle();
> > > echo $this->headMeta();
> > > echo $this->headLink();
> > > echo $this->headStyle();
> > > ?>
> > > dojo()->isEnabled()):
> >
> > You don't need to do the conditional here -- just echo the helper. If
> > it's not enabled, nothing will be rendered.
> >
> > Ok, I just commented that line.
> >
> >
> > One technique I've used is to do the setup below:
> >
> >
> >
> > >
> $this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js')
> > >   ->addStyleSheetModule('dijit.themes.tundra');
> >
> > Do you use it like that in your bootstrap?
> > I suggest that the documentation should include the part of the bootstrap
> that
> > took me a while to figure out... Setting the view helper like this:
> >
> > $view = new Zend_View();
> > $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
> > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
> > $viewRenderer->setView($view);
> > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >
> > Is this snippet correct?
>
> Yes. An alternative that shortens it up slightly:
>
>$viewRenderer =
> Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
>$viewRenderer->initView();
>Zend_Dojo::enableView($viewRenderer->view);
>
> but that only eliminates two lines. :)
>
> > in my bootstrap, and then disable the helper until I explicitly
> enable
> > it in a view script. (I should probably put that in the manual.)
> >
> > >   echo $this->dojo();
> > >endif;
> > > ?>
> > >  > > echo $this->headScript();
> > >  ?>
> > > 
> > >
> > > 
> > > placeholder('title') ?>
> > > layout()->content ?>
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> >
> > So, now my question is: is something not working for you here?
> >
> >
> > I just set an explicit localpath:
> >
> > $this->dojo()->setLocalPath('
> http://localhost/dev/example/html/scripts/dojo_f/
> > dojo/dojo.js')
> >   ->addStyleSheetModule('dijit.themes.tundra');
> >
> > but still doesn't work... I'll attach some pics to explain myself a
> little
> > better though.
>
> Your local path is still incorrect.
>
> Let's say you're using the standard application layout, and have dojo
> under public/scripts/dojo_f:
>
>application/
>controllers/
>views/
>library/
>Zend/
>public/
>.htaccess
>index.php
> scripts/
>dojo_f/
>dojo/
>dojo.js
>
> Your vhost is pointing the DocumentRoot at your public directory. So,
> you need so specify the local path as starting at that directory:
>
>$this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js');
>
> Basically, the value you give to setLocalPath() should be the value of
> the script's src attribute:
>
>type="text/javascript">
>
> Make sense?
>
>
> > In dojopic1 is the original example from dojo docs without using ZF at
> all. The
> > button is bigger and nicer...
> > Well, dojopic2 is the result with the localpath set like:
> /scripts/dojo_f/dojo/
> > dojo.js You can see the button there (a standard one...), but firebug
> shows
> > that the the dojo.js wasn't found,
>
> This tells me that you probably don't have the path right. What happens
> when you g

Re: [fw-general] Trying Dojo Hello World

2008-07-24 Thread Christian Sanchez
So, you're telling me that I _must_ have the vhosts file configured so that
any given project is given a full URL i.e.: http://localhost/ (or any other
vhosts URL I configured?).

2008/7/24 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Wednesday, 23 July 2008, 11:30 PM -0500):
> > 2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> > > ?>
> > >
> > > 
> > >
> > > 
> > >  > > echo $this->headTitle();
> > > echo $this->headMeta();
> > > echo $this->headLink();
> > > echo $this->headStyle();
> > > ?>
> > > dojo()->isEnabled()):
> >
> > You don't need to do the conditional here -- just echo the helper. If
> > it's not enabled, nothing will be rendered.
> >
> > Ok, I just commented that line.
> >
> >
> > One technique I've used is to do the setup below:
> >
> >
> >
> > >
> $this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js')
> > >   ->addStyleSheetModule('dijit.themes.tundra');
> >
> > Do you use it like that in your bootstrap?
> > I suggest that the documentation should include the part of the bootstrap
> that
> > took me a while to figure out... Setting the view helper like this:
> >
> > $view = new Zend_View();
> > $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
> > $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
> > $viewRenderer->setView($view);
> > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >
> > Is this snippet correct?
>
> Yes. An alternative that shortens it up slightly:
>
>$viewRenderer =
> Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
>$viewRenderer->initView();
>Zend_Dojo::enableView($viewRenderer->view);
>
> but that only eliminates two lines. :)
>
> > in my bootstrap, and then disable the helper until I explicitly
> enable
> > it in a view script. (I should probably put that in the manual.)
> >
> > >   echo $this->dojo();
> > >endif;
> > > ?>
> > >  > > echo $this->headScript();
> > >  ?>
> > > 
> > >
> > > 
> > > placeholder('title') ?>
> > > layout()->content ?>
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> >
> > So, now my question is: is something not working for you here?
> >
> >
> > I just set an explicit localpath:
> >
> > $this->dojo()->setLocalPath('
> http://localhost/dev/example/html/scripts/dojo_f/
> > dojo/dojo.js')
> >   ->addStyleSheetModule('dijit.themes.tundra');
> >
> > but still doesn't work... I'll attach some pics to explain myself a
> little
> > better though.
>
> Your local path is still incorrect.
>
> Let's say you're using the standard application layout, and have dojo
> under public/scripts/dojo_f:
>
>application/
>controllers/
>views/
>library/
>Zend/
>public/
>.htaccess
>index.php
> scripts/
>dojo_f/
>dojo/
>dojo.js
>
> Your vhost is pointing the DocumentRoot at your public directory. So,
> you need so specify the local path as starting at that directory:
>
>$this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js');
>
> Basically, the value you give to setLocalPath() should be the value of
> the script's src attribute:
>
>type="text/javascript">
>
> Make sense?
>
>
> > In dojopic1 is the original example from dojo docs without using ZF at
> all. The
> > button is bigger and nicer...
> > Well, dojopic2 is the result with the localpath set like:
> /scripts/dojo_f/dojo/
> > dojo.js You can see the button there (a standard one...), but firebug
> shows
> > that the the dojo.js wasn't found,
>
> This tells me that you probably don't have the

Re: [fw-general] Trying Dojo Hello World

2008-07-23 Thread Christian Sanchez
Well that is pretty clear in the docs, since you make the statement "it is
important to remember to pass the theme class". Here's my whole layout (I
don't have the button on a form yet, is that necessary now?, because it
wasn't before though):

';
echo $this->docType()
?>




headTitle();
echo $this->headMeta();
echo $this->headLink();
echo $this->headStyle();
?>
dojo()->isEnabled()):
  $this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js')
  ->addStyleSheetModule('dijit.themes.tundra');
  echo $this->dojo();
   endif;
?>
headScript();
 ?>



placeholder('title') ?>
layout()->content ?>








2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Wednesday, 23 July 2008, 01:02 PM -0500):
> > Ok, changing that makes the button appear :-) but not in the tundra theme
> way
> > :-(
>
> Did you place a 'class="tundra"' on a container that has the dijits?
>
> Typically, I place it in my  tag, just to be safe:
>
>
>
> but the only requirement for tundra to be applied is that it is on an
> element that contains dijits:
>
>
>form ?>
>
>
> Try that out.
>
>
> > I have the following code for the button:
> >
> > dojo()->enable()
> >  ->setDjConfigOption('parseOnLoad', true)
> >          ->requireModule('dijit.form.Button');
> >   ?>
> >
> > 
> > Hello World!
> > 
> >alert('You pressed the button');
> > 
> > 
> >
> > 2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> >
> > -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> > (on Wednesday, 23 July 2008, 12:37 PM -0500):
> > > Hi guys!
> > > Well I'm trying to implement the Hello world example with the
> ZF_1.6_RC1,
> > after
> > > an hour of frustration my guess is that, since I'm not using an
> exact
> > address
> > > to send the localpath
> > >
> > > $this->dojo()->setLocalPath('../html/scripts/dojo_f/dojo/dojo.js')
> >
> > LocalPath should be the path relative to the document root -- i.e.,
> the
> > path that would occur in your script's href tag:
> >
> >$this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js');
> >
> > This should appropriately set the rest of it.
> >
> > Let me know your results; regardless, I'll try to make this clearer
> in
> > the manual.
> >
> > >   ->addStyleSheetModule('dijit.themes.tundra');
> > >   echo $this->dojo();
> > >
> > > the error is in the import that tries to get the library from the
> same
> > address:
> > >
> > > @import "../html/scripts/dojo_f/dijit/themes/tundra/tundra.css";
> > >
> > > When it should be:
> > >
> > > @import "
> http://localhost/dev/example/html/scripts/dojo_f/dijit/themes/
> > tundra/
> > > tundra.css";
> > >
> > > Maybe I'm wrong but it still does not work :'-(
> > >
> > > --
> > > Christian S nchez A.
> >
> > --
> > Matthew Weier O'Phinney
> > Software Architect   | [EMAIL PROTECTED]
> > Zend Framework   | http://framework.zend.com/
> >
> >
> >
> >
> > --
> > Christian S nchez A.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>



-- 
Christian Sánchez A.


Re: [fw-general] Trying Dojo Hello World

2008-07-23 Thread Christian Sanchez
Ok, changing that makes the button appear :-) but not in the tundra theme
way :-(

I have the following code for the button:

dojo()->enable()
 ->setDjConfigOption('parseOnLoad', true)
 ->requireModule('dijit.form.Button');
  ?>


Hello World!

   alert('You pressed the button');



2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Wednesday, 23 July 2008, 12:37 PM -0500):
> > Hi guys!
> > Well I'm trying to implement the Hello world example with the ZF_1.6_RC1,
> after
> > an hour of frustration my guess is that, since I'm not using an exact
> address
> > to send the localpath
> >
> > $this->dojo()->setLocalPath('../html/scripts/dojo_f/dojo/dojo.js')
>
> LocalPath should be the path relative to the document root -- i.e., the
> path that would occur in your script's href tag:
>
>$this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js');
>
> This should appropriately set the rest of it.
>
> Let me know your results; regardless, I'll try to make this clearer in
> the manual.
>
> >   ->addStyleSheetModule('dijit.themes.tundra');
> >   echo $this->dojo();
> >
> > the error is in the import that tries to get the library from the same
> address:
> >
> > @import "../html/scripts/dojo_f/dijit/themes/tundra/tundra.css";
> >
> > When it should be:
> >
> > @import "
> http://localhost/dev/example/html/scripts/dojo_f/dijit/themes/tundra/
> > tundra.css";
> >
> > Maybe I'm wrong but it still does not work :'-(
> >
> > --
> > Christian S nchez A.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>



-- 
Christian Sánchez A.


[fw-general] Trying Dojo Hello World

2008-07-23 Thread Christian Sanchez
Hi guys!
Well I'm trying to implement the Hello world example with the ZF_1.6_RC1,
after an hour of frustration my guess is that, since I'm not using an exact
address to send the localpath

$this->dojo()->setLocalPath('../html/scripts/dojo_f/dojo/dojo.js')
  ->addStyleSheetModule('dijit.themes.tundra');
  echo $this->dojo();

the error is in the import that tries to get the library from the same
address:

@import "../html/scripts/dojo_f/dijit/themes/tundra/tundra.css";

When it should be:

@import "
http://localhost/dev/example/html/scripts/dojo_f/dijit/themes/tundra/tundra.css
";

Maybe I'm wrong but it still does not work :'-(

-- 
Christian Sánchez A.


Re: [fw-general] Dojo library Layout

2008-07-18 Thread Christian Sanchez
2008/7/18 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Friday, 18 July 2008, 10:12 AM -0500):
> > I was wondering if there is a best practice for the layout considering
> the
> > usage of the recent Zend_Dojo... I know it must be under the html folder,
> but
> > how do you recommend it should be implemented?
> >
> > >application
> > >html
> > >images
> > >scripts
> > >js
> > >dojo
> > >styles
> > >library
> >
> > Or maybe?
> >
> > >application
> > >html
> > >images
> > >scripts
> > >dojo
> > >styles
> > >library
> >
> > Any suggestions?
>
> Dojo is javascript, so it should be under public/js/
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>

Just to make things clear, you say it should be:

>application
>html
>images
>scripts
>styles
>library
>js
>dojo

-- 
Christian Sánchez A.


[fw-general] Dojo library Layout

2008-07-18 Thread Christian Sanchez
I was wondering if there is a best practice for the layout considering the
usage of the recent Zend_Dojo... I know it must be under the html folder,
but how do you recommend it should be implemented?

>application
>html
>images
>scripts
>js
>dojo
>styles
>library

Or maybe?

>application
>html
>images
>scripts
>dojo
  >styles
 >library

Any suggestions?
-- 
Christian Sánchez A.


[fw-general] Zend_Filter CamelCasetoSeparator

2008-07-13 Thread Christian Sanchez
I'm wondering how does this filter is used, and how it works... I've
searched the manual and the only thing i've found is two links to Zend_Db...

This filter is can be used with forms?

Like this:

$some_text_field = new Zend_Form_Element_Text();
$some_text_field->setLabel('formLabels_NombresUserSis')
->setRequired(true)
->addFilter('StripTags');

-- 
Christian Sánchez A.


Re: [fw-general] Login Form

2008-07-10 Thread Christian Sanchez
Well I have a LoginForm.php and then call it to insert it on the view, so
I'm using:

setName('loginForm');
$this->setAction('/index/login/');
$this->setMethod('post');

Is there a way to use it in this case... The LoginForm.php instead of using
it in the view?

2008/7/10 Rob Allen <[EMAIL PROTECTED]>:

>
> On 11 Jul 2008, at 02:15, Christian Sanchez wrote:
>
> I have created a Login form based on various tutorials including
> Matthew's... But I get this bug I can't quite get how to get around...
>
> I have set the action in the form like this:
> $this->setAction('index/login/');
> But when I'm testing the actual login and after 3 times of getting the
> errors I'm testing for I get the url like this:
> http://localhost/index/login/index/login/index/login
> That means everytime I hit the log in submit button index/login adds to the
> current url, is there a way to set the action to not do this?
>
> Just to keep the URL clean though... But I've been wondering this for weeks
> now :P
>
> --
> Christian Sánchez A.
>
>
>
> Assuming that $form exists in the model, then you can do this:
>
> $url = $this->_helper->url->url(array('controller'=>'index',
> 'action'=>'login'));
> $form->setAction($url);
>
>
> Regards,
>
> Rob...
>



-- 
Christian Sánchez A.


Re: [fw-general] Login Form

2008-07-10 Thread Christian Sanchez
didn't work either :(

2008/7/10 Christoph Dorn <[EMAIL PROTECTED]>:

> Try using:
>
> http://localhost/project/html/"; />
>
> in your HTML page and this:
>
> $this->setAction('index/login/');
>
> for your action.
>
> Christoph
>
>
>
>
> Christian Sanchez wrote:
> > I tried that, but my local URL is not really localhost... it's:
> > http://localhost/project/html/index/login/
> >
> > Is there any way to parse the baseURL to the Action in the form?
> >
> >
> >
> > 2008/7/10 Christoph Dorn <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>>:
> >
> > Try: $this->setAction('/index/login/');
> >
> > You need the extra "/" at the beginning of the relative URL to make
> it
> > relative to your domain and not the current page.
> >
> > Christoph
> >
> >
> >
> > Christian Sanchez wrote:
> > > I have created a Login form based on various tutorials including
> > > Matthew's... But I get this bug I can't quite get how to get
> around...
> > >
> > > I have set the action in the form like this:
> > > $this->setAction('index/login/');
> > > But when I'm testing the actual login and after 3 times of getting
> the
> > > errors I'm testing for I get the url like this:
> > > http://localhost/index/login/index/login/index/login
> > > That means everytime I hit the log in submit button index/login
> > adds to
> > > the current url, is there a way to set the action to not do this?
> > >
> > > Just to keep the URL clean though... But I've been wondering this
> for
> > > weeks now :P
> > >
> > > --
> > > Christian Sánchez A.
> >
> >
> >
> >
> > --
> > Christian Sánchez A.
>
>


-- 
Christian Sánchez A.


[fw-general] Re: Creating some crappy view helper

2008-07-10 Thread Christian Sanchez
Sorry guys, find the fix on the net...

class Zend_View_Helper_LoadMap
{
public $view;

public function setView(Zend_View_Interface $view)
{
$this->view = $view;
}

function loadMap()
{
echo $this->view->render('map.phtml');
}
}

2008/7/10 Christian Sanchez <[EMAIL PROTECTED]>:

> I'm trying to create a view helper to load a GMap in a view when needed
> only, hence the helper... I know it's just a crappy view helper but I don't
> get the hang of this... How can I render a .phtml when I call the helper?
>
> 
> class Zend_View_Helper_LoadMap
> {
> function loadMap()
> {
> echo $this->render('map.phtml');
> }
> }
>
> ?>
>
> --
> Christian Sánchez A.




-- 
Christian Sánchez A.


[fw-general] Creating some crappy view helper

2008-07-10 Thread Christian Sanchez
I'm trying to create a view helper to load a GMap in a view when needed
only, hence the helper... I know it's just a crappy view helper but I don't
get the hang of this... How can I render a .phtml when I call the helper?

render('map.phtml');
}
}

?>

-- 
Christian Sánchez A.


Re: [fw-general] Login Form

2008-07-10 Thread Christian Sanchez
I tried that, but my local URL is not really localhost... it's:
http://localhost/project/html/index/login/

Is there any way to parse the baseURL to the Action in the form?



2008/7/10 Christoph Dorn <[EMAIL PROTECTED]>:

> Try: $this->setAction('/index/login/');
>
> You need the extra "/" at the beginning of the relative URL to make it
> relative to your domain and not the current page.
>
> Christoph
>
>
>
> Christian Sanchez wrote:
> > I have created a Login form based on various tutorials including
> > Matthew's... But I get this bug I can't quite get how to get around...
> >
> > I have set the action in the form like this:
> > $this->setAction('index/login/');
> > But when I'm testing the actual login and after 3 times of getting the
> > errors I'm testing for I get the url like this:
> > http://localhost/index/login/index/login/index/login
> > That means everytime I hit the log in submit button index/login adds to
> > the current url, is there a way to set the action to not do this?
> >
> > Just to keep the URL clean though... But I've been wondering this for
> > weeks now :P
> >
> > --
> > Christian Sánchez A.
>
>


-- 
Christian Sánchez A.


[fw-general] Login Form

2008-07-10 Thread Christian Sanchez
I have created a Login form based on various tutorials including
Matthew's... But I get this bug I can't quite get how to get around...

I have set the action in the form like this:
$this->setAction('index/login/');
But when I'm testing the actual login and after 3 times of getting the
errors I'm testing for I get the url like this:
http://localhost/index/login/index/login/index/login
That means everytime I hit the log in submit button index/login adds to the
current url, is there a way to set the action to not do this?

Just to keep the URL clean though... But I've been wondering this for weeks
now :P

-- 
Christian Sánchez A.


[fw-general] Re: [framework-svn][9999] standard: [EMAIL PROTECTED]: matthew | 2008-07-08 16: 06:29 -0400

2008-07-08 Thread Christian Sanchez
Looking forward to use this :)
Can you send a little glimpse on how to use this elements?
Is it like any other zend_form_element?
I know you're in active development of this elements, but it's just too good
to wait for it :P

2008/7/8 matthew <[EMAIL PROTECTED]>:

>   Revision  Author matthew Date 2008-07-08 13:06:40 -0700 (Tue, 08 Jul
> 2008) Log Message
>
>  [EMAIL PROTECTED]:  matthew | 2008-07-08 16:06:29 -0400
>   * Updated Form dijit helper to conform to standard Form view helper
>   * Added DijitForm form decorator
>
> Modified Paths
>
>-
>
> standard/incubator/library/Zend/Dojo/Form/Decorator/DijitContainer.php<#11b04488bf576ee3_standardincubatorlibraryZendDojoFormDecoratorDijitContainerphp>
>- 
> standard/incubator/library/Zend/Dojo/View/Helper/Form.php<#11b04488bf576ee3_standardincubatorlibraryZendDojoViewHelperFormphp>
>- 
> standard/incubator/tests/Zend/Dojo/View/Helper/FormTest.php<#11b04488bf576ee3_standardincubatortestsZendDojoViewHelperFormTestphp>
>
> Added Paths
>
>- 
> standard/incubator/library/Zend/Dojo/Form/Decorator/DijitForm.php<#11b04488bf576ee3_standardincubatorlibraryZendDojoFormDecoratorDijitFormphp>
>
> Property Changed
>
>- standard/ <#11b04488bf576ee3_standard>
>
>  Diff Property changes: standard
>
> Name: svk:merge   - 
> 33008bc5-088a-4725-8053-8b13bfceb19a:/local/framework/standard:20488   + 
> 33008bc5-088a-4725-8053-8b13bfceb19a:/local/framework/standard:20493
>
>  Modified:
> standard/incubator/library/Zend/Dojo/Form/Decorator/DijitContainer.php (9998
> => )
>
> --- standard/incubator/library/Zend/Dojo/Form/Decorator/DijitContainer.php
> 2008-07-08 19:54:41 UTC (rev 9998)
> +++ standard/incubator/library/Zend/Dojo/Form/Decorator/DijitContainer.php
> 2008-07-08 20:06:40 UTC (rev )@@ -168,7 +168,7 @@ }  /**- * 
> Render a form+ * Render a dijit layout container  *  * Replaces 
> $content entirely from currently set element.  *
>
>  Added: standard/incubator/library/Zend/Dojo/Form/Decorator/DijitForm.php
> (0 => )
>
> --- standard/incubator/library/Zend/Dojo/Form/Decorator/DijitForm.php 
> (rev 0)
> +++ standard/incubator/library/Zend/Dojo/Form/Decorator/DijitForm.php 
> 2008-07-08 20:06:40 UTC (rev )@@ -0,0 +1,60 @@+ +/**
> + * Zend Framework
> + *
> + * LICENSE
> + *
> + * This source file is subject to the new BSD license that is bundled
> + * with this package in the file LICENSE.txt.
> + * It is also available through the world-wide-web at this URL:
> + * http://framework.zend.com/license/new-bsd
> + * If you did not receive a copy of the license and are unable to
> + * obtain it through the world-wide-web, please send an email
> + * to [EMAIL PROTECTED] so we can send you a copy immediately.
> + *
> + * @category   Zend
> + * @packageZend_Form
> + * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. 
> (http://www.zend.com)
> + * @licensehttp://framework.zend.com/license/new-bsd New BSD License
> + */
> +
> +/** Zend_Dojo_Form_Decorator_DijitContainer */
> +require_once 'Zend/Dojo/Form/Decorator/DijitContainer.php';
> +
> +/**
> + * Zend_Dojo_Form_Decorator_DijitForm
> + *
> + * Render a dojo form dijit via a view helper
> + *
> + * Accepts the following options:
> + * - helper:the name of the view helper to use
> + *
> + * @packageZend_Dojo
> + * @subpackage Form_Decorator
> + * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. 
> (http://www.zend.com)
> + * @licensehttp://framework.zend.com/license/new-bsd New BSD License
> + * @version$Id: $
> + */
> +class Zend_Dojo_Form_Decorator_DijitForm extends 
> Zend_Dojo_Form_Decorator_DijitContainer
> +{
> +/**
> + * Render a form
> + *
> + * Replaces $content entirely from currently set element.
> + *
> + * @param  string $content
> + * @return string
> + */
> +public function render($content)
> +{
> +$element = $this->getElement();
> +$view= $form->getView();
> +if (null === $view) {
> +return $content;
> +}
> +
> +$attribs = $this->getOptions();
> +
> +return $view->form($element->getName(), $attribs, $content);
> +}
> +}Property changes on: 
> standard/incubator/library/Zend/Dojo/Form/Decorator/DijitForm.php___Name:
>  svn:keywords   + Id Author Date Rev
>
>  Modified: standard/incubator/library/Zend/Dojo/View/Helper/Form.php (9998
> => )
>
> --- standard/incubator/library/Zend/Dojo/View/Helper/Form.php 2008-07-08 
> 19:54:41 UTC (rev 9998)
> +++ standard/incubator/library/Zend/Dojo/View/Helper/Form.php 2008-07-08 
> 20:06:40 UTC (rev )@@ -50,13 +50,21 @@  * dijit.form.Form  *  
>  * @param  int $id - * @param  string $content
> - * @param  array $attribs HTML attributes+ * @param  null|array 
> $attribs HTML attributes
> + * @param  false|string $con

Re: [fw-general] Fwd: [framework-svn][9961] standard: [EMAIL PROTECTED]: matthew | 2008-07-05 22: 19:48 -0400

2008-07-06 Thread Christian Sanchez
I'm working on a Web-based GIS based on google maps for an ISP, but it could
be applied for lots of stuff as well, I've been thinking of releasing to GPL
later on, but it may be a little trouble since my Uni will be the official
"owner" (that's why I'm going for the ISP application instead of a universal
app).

I'm using your view helper for the forms in the backend, your tutorials are
very helpful but, it's hard to find tutorials for the new stuff like the
dojo view helper. I'm looking forward to those widgets for the forms :).

I'll be sending you the feedback for all your great work on the ZF!

It's kinda hard to learn the ZF, but its totally worth it.

2008/7/6 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Saturday, 05 July 2008, 11:35 PM -0500):
> > Matthew, I'm sorry to insist in this error, but I see you changed the
> line to:
> >
> > $localPath = preg_replace('|[^/]dojo[/]dojo.js[^/]*$|i', '',
> $localPath);
> >
> > When there seems to be no reason to not (^) look for the character (/)
> > or (\) the line should have been:
> >
> >
> > $localPath = preg_replace('|[/]dojo[/]dojo.js[^/]*$|i', '',
> $localPath);
> >
> >
> > I guess my text was a bit misleading because this /\ may look a lot like
> ^.
>
> Too many leaning toothpicks. :) Should be correct in svn now.
>
> > I got to thank u for this helper, is helping a lot on my thesis.
>
> Your thesis? what are you working on?
>
>
> > -- Forwarded message --
> > From: matthew <[EMAIL PROTECTED]>
> > Date: 2008/7/5
> > Subject: [framework-svn][9961] standard: [EMAIL PROTECTED]: matthew |
> 2008-07-05
> > 22: 19:48 -0400
> > To: [EMAIL PROTECTED]
> >
> >
> >
> > Revision
> > 9961
> > Author
> > matthew
> > Date
> > 2008-07-05 19:20:23 -0700 (Sat, 05 Jul 2008)
> >
> > Log Message
> >
> >  [EMAIL PROTECTED]:  matthew | 2008-07-05 22:19:48 -0400
> >   * Updated _getLocalRelativePath() (per report from Christian Sanchez on
> fw-general)
> >
> > Modified Paths
> >
> >   • standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php
> >
> > Property Changed
> >
> >   • standard/
> >
> > Diff
> >
> > Property changes: standard
> >
> > Name: svk:merge
> >- 33008bc5-088a-4725-8053-8b13bfceb19a:/local/framework/standard:20420
> >+ 33008bc5-088a-4725-8053-8b13bfceb19a:/local/framework/standard:20427
> >
> > Modified:
> standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php
> > (9960 => 9961)
> >
> > --- standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php
> 2008-07-05 22:29:14 UTC (rev 9960)
> > +++ standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php
> 2008-07-06 02:20:23 UTC (rev 9961)
> > @@ -490,7 +490,7 @@
> >  {
> >  if (null === $this->_localRelativePath) {
> >  $localPath = $this->getLocalPath();
> > [DEL:-$localPath =
> preg_replace('|dojo[/]dojo.js[^/]*$|i', '', $localPath);
> > :DEL][INS:+$localPath =
> preg_replace('|[^/]dojo[/]dojo.js[^/]*$|i', '', $localPath);
> > :INS] $this->_localRelativePath = $localPath;
> >  }
> >  return $this->_localRelativePath;
> >
> >
> >
> >
> > --
> > Christian S nchez A.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>



-- 
Christian Sánchez A.


[fw-general] Fwd: [framework-svn][9961] standard: [EMAIL PROTECTED]: matthew | 2008-07-05 22: 19:48 -0400

2008-07-05 Thread Christian Sanchez
Matthew, I'm sorry to insist in this error, but I see you changed the line
to:

$localPath = preg_replace('|[^/]dojo[/]dojo.js[^/]*$|i',
'', $localPath);

When there seems to be no reason to not (^) look for the character (/)
or (\) the line should have been:

$localPath = preg_replace('|[/]dojo[/]dojo.js[^/]*$|i',
'', $localPath);

I guess my text was a bit misleading because this /\ may look a lot like ^.
I got to thank u for this helper, is helping a lot on my thesis.

-- Forwarded message --
From: matthew <[EMAIL PROTECTED]>
Date: 2008/7/5
Subject: [framework-svn][9961] standard: [EMAIL PROTECTED]: matthew |
2008-07-05 22: 19:48 -0400
To: [EMAIL PROTECTED]


  Revision 9961 Author matthew Date 2008-07-05 19:20:23 -0700 (Sat, 05 Jul
2008) Log Message

 [EMAIL PROTECTED]:  matthew | 2008-07-05 22:19:48 -0400
  * Updated _getLocalRelativePath() (per report from Christian Sanchez
on fw-general)

Modified Paths

   - 
standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php<#11af62b888b16d1c_standardincubatorlibraryZendDojoViewHelperDojoContainerphp>

Property Changed

   - standard/ <#11af62b888b16d1c_standard>

 Diff Property changes: standard

Name: svk:merge   -
33008bc5-088a-4725-8053-8b13bfceb19a:/local/framework/standard:20420
+ 33008bc5-088a-4725-8053-8b13bfceb19a:/local/framework/standard:20427

 Modified:
standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php (9960 =>
9961)

--- standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php 
2008-07-05
22:29:14 UTC (rev 9960)
+++ standard/incubator/library/Zend/Dojo/View/Helper/Dojo/Container.php 
2008-07-06
02:20:23 UTC (rev 9961)@@ -490,7 +490,7 @@ { if (null ===
$this->_localRelativePath) { $localPath =
$this->getLocalPath();-$localPath =
preg_replace('|dojo[/]dojo.js[^/]*$|i', '', $localPath);+
  $localPath =
preg_replace('|[^/]dojo[/]dojo.js[^/]*$|i', '',
$localPath); $this->_localRelativePath = $localPath;
  } return $this->_localRelativePath;




-- 
Christian Sánchez A.


[fw-general] Dojo View Helper Bug report

2008-07-05 Thread Christian Sanchez
The following line in the Zend/Dojo/Helper/Dojo/Container.php should be
replaced from this:

493: $localPath = preg_replace('|dojo[/]dojo.js[^/]*$|i', '',
$localPath);

to this:

493: $localPath = preg_replace('|[/]dojo[/]dojo.js[^/]*$|i', '',
$localPath);

When checking for the code behind generated for my action y get this line:

/localpath/...//dijit.css

when the line should be:

/localpath/.../dijit.css


-- 
Christian Sánchez A.