You can use SVN to get to them at this url:
http://framework.zend.com/svn/framework/standard/incubator/
The incubator does not get shipped in the release packages, mainly b/c
they are still "incubating". Most of these components are in a state of
flux until they get promoted to trunk, then on
...where can I get the incubator components? I've seen references to
them being includes in all the latest full ZF distributions, but that
doesn't seem to be the case.
Cheers,
-- Steven
--
スティーブン
The URL action helper is much more robust in its functionality than the
view helper.
To get an interface exactly the same as the view helper, use
$this->_helper->url->url(array(), 'routename', false);
Rolando Espinoza La Fuente wrote:
On Tue, Dec 2, 2008 at 3:06 AM, Cameron <[EMAIL PROTECTED]
On Tue, Dec 2, 2008 at 3:06 AM, Cameron <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> The subject line sums it all up. I do some URL generation in the controller
> / model (form submission URLs and so on), and I'd love to be able to use the
> same url View Helper that has proven so wonderful in my View
On Tuesday 02 December 2008 08:06:52 Cameron wrote:
>Hi guys,
>
>The subject line sums it all up. I do some URL generation in the controller
>/ model (form submission URLs and so on), and I'd love to be able to use the
>same url View Helper that has proven so wonderful in my Views. What's the
>tric
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
*MVC police arriving*
Use the url action helper, it works exacly like the url view helper.
Also the view helper may output html-escaped in the future, so you
shouldn't rely on this. And yes, the assembly method may change
completly with 2.0.
$this->_
Themselves wrote:
>
> What's the trick?
>
In your controller -> action:
$tmp = $this->view->url( array( 'controller'=>'moo' ) );
Try that.
This kinda breaks the MVC, so be prepared for the MVC police ;-)
monk.e.boy
--
View this message in context:
http://www.nabble.com/-Dumb-Question--H
I very much doubt that the routers assemble interface will change, if
it does ZF will definitely announce it as a BC breaking change.
2008/12/2 Cameron <[EMAIL PROTECTED]>:
> well i thought about that, and that's a very simple solution (because the
> code in the url helper is very simple), but tha
well i thought about that, and that's a very simple solution (because the
code in the url helper is very simple), but that internal interface might
change in later revisions of the framework, so i thought i'd see about doing
it the "right" way :P
On Tue, Dec 2, 2008 at 5:21 PM, keith Pope <[EMAIL
I would have a look inside the view url helper and maybe create an
action helper that does the same?
2008/12/2 Cameron <[EMAIL PROTECTED]>:
> Hi guys,
>
> The subject line sums it all up. I do some URL generation in the controller
> / model (form submission URLs and so on), and I'd love to be able
Hi guys,
The subject line sums it all up. I do some URL generation in the controller
/ model (form submission URLs and so on), and I'd love to be able to use the
same url View Helper that has proven so wonderful in my Views. What's the
trick? I'm sure it's something simple that I'm not smart enoug
Hi Joseph,
What I usually do is three fold:
1. Add is as the default adapter to Zend_Db_Table for use by all my Zend
based Models. This also acts as a Registry by the way, since you can call
Zend_Db_Table::getDefaultAdapter() anywhere.
2. Add it to a Registry as would be normal practice.
3. Po
I create a $db in my bootstrap and save a reference in Zend_Registry. I use
getDefaultAdapter() whenever possible but I have some models with static
methods, which by definition can't reference $this, so they pull it from the
registry.
On Thu, May 15, 2008 at 11:10 AM, Kevin Hallmark <
[EMAIL PROT
like it might be a good alternative choice.
Kevin Hallmark
PHP Developer
Bonnier Corporation
-Original Message-
From: Jim Scherer [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 15, 2008 10:12 AM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Dumb Question
if you are using Zend_C
if you are using Zend_Controller_Front as I am you can set it as a parameter:
$frontController = Zend_Controller_Front::getInstance();
$frontController->setParam('db', $db)
and then in your controller:
$this->getFrontController()->getParam('db')
So many ways to skin a cat.
Jim
Joseph Crawfo
You can always just set it in Zend_Registry too. In my bootstrap, I save
it to the registry after I make my $db object so that I have access to
it on the off-chance my Controllers need to run a direct DB query.
Chris
Joseph Crawford wrote:
> In my index.php bootstrap file I setup the database con
name;
$this->view->age = $getUser->age;
Etc..
Hope this helps.
- Robert
-Original Message-
From: Joseph Crawford [mailto:[EMAIL PROTECTED]
Sent: 15 May 2008 14:17
To: fw-general@lists.zend.com
Subject: [fw-general] Dumb Question
In my index.php bootstrap file I setup the databa
your controllers.
I'm sure there must be a lighter way to do it without requiring that static
method.
- Daniel Fullarton
-Original Message-
From: Joseph Crawford [mailto:[EMAIL PROTECTED]
Sent: Thu 5/15/2008 11:16 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Dumb Question
In my index.php bootstrap file I setup the database connection into a
variable $db. Now I need to access this in other controllers. This
seems like a dumb question to me but do I need to global $db; before I
can access it in the indexAction method of the controller or is it in
the global
19 matches
Mail list logo