WHen I do this in my boot-strapper:
Zend_Loader::loadClass('Zend_View');
$view = new Zend_View();
$view->setScriptPath('../application/views');
Zend_Registry::set('view',$view);
and this in my default index controller:
$view
Zend_Registry::set('config',$config);
Zend_Registry::get('config');
http://framework.zend.com/manual/en/zend.registry.html
Also if you're just using that config in a controller you may like to
use...
$controller->setParam( 'config', $config )
...and retrieve that in the controllers with som
Can someone give me an example of how I use the zend registry. I upgraded to
ZF 0.9 and my zend registry is not working.
here is the code in my bootstrap file:
function bootstrap(){
include "Zend/Loader.php";
Zend_Loader::loadClass('Zend_Controller_Front');
I'm not sure if this is a related issue or a different one, but using the
following code I cannot catch the failing exception
try {
$db = Zend_Db::factory($config->db->adaptor, array('host' => 'localhost',
'username' =>'noexistant', 'password' => 'failme', 'dbname' => 'random'));
} catch (
thanks!
i got it working now
Waldemar Schott wrote:
>
> You can use this:
> if (is_null($row->primary_key))
> {
> // row doesn't exist
> }
>
> But a method exist()/valid() in Zend_Db_Table_Row_Abstract will be useful.
>
>
> xagrez schrieb:
>> Same issue for me
>>
>> the issue is that,
Actually, add getHeader to this list too, and also create isGet (or isQuery) to
complement isPost
Kevin
- Original Message -
From: Kevin McArthur
To: fw-general@lists.zend.com
Sent: Sunday, March 18, 2007 5:46 PM
Subject: [fw-general] Cleanup Zend_Request
Going through Ze
Going through Zend_Request, I'd like to suggest a quick change to deprecate
getParams.
All the other methods work on a null $key parameter to return the entire arary.
getPost, getQuery, getCookie etc, all work the same way. Can we clean up
getParam(s) for 1.0 to follow this common syntax?
Kev
I'm using version 0.8.0, the url isn't live right now, but it's any
controller that i try to access... i think it has to do with the setBaseUrl.
Do you know what to set it to on Grid Server?
--
View this message in context:
http://www.nabble.com/Media-Temple-Grid-Server-tf3423022s16154.html#a954
Hi,
Urm, I'm new, so I hope this is the right place to mention this.
The Zend_Mime_Decode class doesn't currently have a method for decoding an
entire message, as received in its raw form from a mail server. From what I
can tell (there is no documentation for Zend_Mime_Decode yet) you have to do
On 3/18/07, fendtele83 <[EMAIL PROTECTED]> wrote:
I'm trying to setup the zend framework on the media temple grid server but
I'm having a problem. I keep getting the following error message
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception'
with message 'Invalid controller s
I am having some issues with 0.9.0 and a Zend_Table class, where the table
is outside the default database supplied by the adapter.
before I was [in the constructor of this class]
protected function _setup() {
$this->_name='bug.issue_tracker';
$this->_primary='issue_id';
Hi Adam,
ZF has now two components called Zend_Filter_* and Zend_Validate_* for
this. But IMO it's quite harder compared too Zend_Filter_Input. Maybe
there will be something similar to Zend_Filter_Input after the 1.0
Release. Furthermore the class Zend is deprecated.
Adam Balgach schrieb:
> All,
Bill once said that until 1.0, everything could be changed. If you use ZF for
your real product, it is better to do the final check after 1.0
Adam Balgach <[EMAIL PROTECTED]> wrote: so this functionality has gone away for
good ?
On 3/18/07, Jason Qi <[EMAIL PROTECTED]> wrote: Please to see Rob'
You can use this:
if (is_null($row->primary_key))
{
// row doesn't exist
}
But a method exist()/valid() in Zend_Db_Table_Row_Abstract will be useful.
xagrez schrieb:
> Same issue for me
>
> the issue is that, whether if a row is fetched in the fetchRow, it will
> still return an object.
>
so this functionality has gone away for good ?
On 3/18/07, Jason Qi <[EMAIL PROTECTED]> wrote:
Please to see Rob's Goodbye Zend.php
http://akrabat.com/
Hope it helps
Jason.
*Adam Balgach <[EMAIL PROTECTED]>* wrote:
All,
How does the functionality change from .8 -> .9 for Zend_Filter_Inpu
Please to see Rob's Goodbye Zend.php
http://akrabat.com/
Hope it helps
Jason.
Adam Balgach <[EMAIL PROTECTED]> wrote: All,
How does the functionality change from .8 -> .9 for Zend_Filter_Input...
I was using something like:
Zend::register('post', new Zend_Filter_Input($_POST, false));
Zend:
All,
How does the functionality change from .8 -> .9 for Zend_Filter_Input...
I was using something like:
Zend::register('post', new Zend_Filter_Input($_POST, false));
Zend::register('get', new Zend_Filter_Input($_GET, false));
but i see this class has gone away...
I'm trying to setup the zend framework on the media temple grid server but
I'm having a problem. I keep getting the following error message
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with
message 'Invalid controller specified (index)' in
/home/2241/domains/anacapribea
Same issue for me
the issue is that, whether if a row is fetched in the fetchRow, it will
still return an object.
There must be a way to access functions in that object to know if a row(s)
is fetched.
Shahar Evron wrote:
>
> Hi,
>
> This might be a report, but I didn't find anything in the
Excuse for the hasty message,
Has not been removed ZF 0.8 and has simply written down ZF 0.9
In also has received not clear mistakes.
Thanks for the reference:)
--
View this message in context:
http://www.nabble.com/error-Zend_Controller_Router_StaticRoute-tf3422078s16154.html#a9538209
Sent from
Hello,
As the Zend Framework is reaching its beta stage, I wonder if something
has been decided regarding the ZF way to handle forms.
I have seen a proposal with many comments but it seems paused if not dead.
In short, what is the ZF way to handle HTML forms ?
Regards.
Jean-Marc
hi,I want to use Zend_Json to decode a section of JSON string,but Zend_Json
throw Exception, the messages is 'Illegal escape sequence'
the JSON source:http://del.icio.us/feeds/json/gonefish?raw
The reason resembles is 'ยป' This character.
Roman1975 schreef:
Fatal error: Class Zend_Controller_Router_StaticRoute contains 1 abstract
method and must therefore be declared abstract or implement the remaining
methods (Zend_Controller_Router_Route_Interface::getInstance) in
C:\home\t\texrdcom\libnewcms\library\Zend\Controller\Router\Stati
Fatal error: Class Zend_Controller_Router_StaticRoute contains 1 abstract
method and must therefore be declared abstract or implement the remaining
methods (Zend_Controller_Router_Route_Interface::getInstance) in
C:\home\t\texrdcom\libnewcms\library\Zend\Controller\Router\StaticRoute.php
on line 1
24 matches
Mail list logo