Re: [fw-general] Bootstrapping in ZF1.8

2009-04-25 Thread Sebastian Krebs
iceangel89 schrieb: i am using ZF1.8dev from SVN i tried the Preview Release version with http://www.zfforums.com/zend-framework-general-discussions-1/resources-developers-37/bootstrapping-zf-1-8-way-2679.html#post9673 Bootstrapping the ZF1.8 way and it works but it fails with any later versi

Re: [fw-general] Bootstrapping in ZF1.8

2009-04-25 Thread Sebastian Krebs
iceangel89 schrieb: i am using ZF1.8dev from SVN i tried the Preview Release version with http://www.zfforums.com/zend-framework-general-discussions-1/resources-developers-37/bootstrapping-zf-1-8-way-2679.html#post9673 Bootstrapping the ZF1.8 way and it works but it fails with any later versio

Re: [fw-general] Logging issue - need help

2008-03-19 Thread Sebastian Krebs
If you only log from Controller (or something like that) you can also create an ActionHelper, which will lazy-load your Log-object. Maybe You are interested to write an Adapter, which will do that instead. debussy007 schrieb: Hi, I have a plugin called at every request, which is choosing the

Re: [fw-general] Zend_Translate exception

2008-01-10 Thread Sebastian Krebs
Moin. The base idea behind this is, that if you add message-id's to your source and miss to update your message-files, then the message-id is returned. If this message-id is readable, its more comfortable for both developer and user. Also if you want to extend your message you have only to ed

Re: [fw-general] convert array to stdclass

2007-12-13 Thread Sebastian Krebs
http://de3.php.net/manual/en/language.types.object.php#language.types.object.casting $sdtClass = (object) $array; Kexiao Liao schrieb: Is there any method in Zend Framework to convert an array into a stdClass?

Re: [fw-general] Use the controller's $this->_redirect from a model ?

2007-12-02 Thread Sebastian Krebs
A model should *never* redirect as it should only provide the data. Nicolae Namolovan schrieb: I need a basic url redirect, how can I do that with ZF ? I'd prefer without any object creation, any static method ? Looked at the 'Redirector.php', but can't really find any static function for my pur

Re: [fw-general] Use Zend_Cache_Backend_File with subdirectories

2007-11-29 Thread Sebastian Krebs
Hi See "hashed_directory_level" at the link below. I can imagine, that this will resolve your problem without overgive a directory everytime you load or save a cacheset. http://framework.zend.com/manual/en/zend.cache.backends.html#zend.cache.backends.file Ralf Eggert schrieb: Hi, I am not q

Re: [fw-general] Forwarding with POST.

2007-11-21 Thread Sebastian Krebs
Hi If you simply forward (/$this->_forward()/), then all the POST-data remains. A redirect (/$this->_redirect()/ or per redirector-helper) is a new request made by the browser and regulary there is no way to perform such a redirect with POST-data, but i dont see any cause to do this. You are

Re: [fw-general] init on extended objects

2007-11-05 Thread Sebastian Krebs
Gunter Sammet schrieb: Having some issues with inheritance and calling the init function. My controller classes inhert from: AdminController extends SaSo_Controller_Action and SaSo_Controller_Action extends Zend_Controller_Action I added the constructor in both classes (AdminController an

Re: [fw-general] Implementing a Security Access system.

2007-09-20 Thread Sebastian Krebs
Hi. Set /throwExecptions/ to /false/, so Exception will automatically forward to ErrorController/errorAction. There you also can display the Exceptions not caught by the ErrorController. Darby Felton schrieb: Hi Mat, You might try something like the following: $request->setControllerName('

Re: [fw-general] w3c validation?

2007-09-16 Thread Sebastian Krebs
You are looking for something like this? http://de2.php.net/manual/en/ref.tidy.php Waigani schrieb: Hi, Are there any nifty classes to validate xhtml, css etc as w3c standards compliant? A view helper might be good at this. Cheers,

Re: [fw-general] How to generate a good cache identifier based on URL?

2007-08-31 Thread Sebastian Krebs
Peter Van Dijck schrieb: Hi all, I am using a caching identifier based on the URL. But I'm getting strange effects: when accessing a URL I see the cached version of *another* page. This is the code I'm using for the cache identifier. $cache_identifier = ereg_replace("/", "_", $_SERVER['REQUEST_

Re: [fw-general] Installation

2007-07-24 Thread Sebastian Krebs
Hi, You copy the library to a directory of your choice, eg //path/to/htdocs/library/ (has to be readable). Then you set your include-path to //path/to/htdocs/library/. You can do this in your php.ini or directy in your file(s) you want to use components out of the Framework. set_include_

Re: [fw-general] ZF is ubeatable BUT...

2007-07-21 Thread Sebastian Krebs
Hi, You can use /get_declared_classes/ at the end of your script, to find out, which classes exactly are only (for that request), so can can copy all files you need (or delete all files you not need ;)). In Development this seems not very comfortable to me, because integrating new features wi

Re: [fw-general] turn off viewRenderer

2007-07-18 Thread Sebastian Krebs
pat schrieb: To ZF, Did we ever agree on a way to turn off the view renderer so that it is not initialized. I know there was talk about it, but I don't remember the final decision. It is over 800 lines of code. That is a lot of code to init each time if you are not using its features. Ar

Re: [fw-general] How to use _schema from *_Table with SQLite-Adapter?

2007-07-04 Thread Sebastian Krebs
quot;; } Because the database-name stands before the function-call (i dont know why ...) Sebastian Krebs schrieb: I like to use the "ATTACH [DATABASE]"-Command from SQLite, but it seems, that Zend_Db_Table wont use it. I get an error, because PRAGMA table_info doesnt wor

[fw-general] How to use _schema from *_Table with SQLite-Adapter?

2007-07-04 Thread Sebastian Krebs
I like to use the "ATTACH [DATABASE]"-Command from SQLite, but it seems, that Zend_Db_Table wont use it. I get an error, because PRAGMA table_info doesnt work. It seems, that the table_info-function called by Pragma dont allow the database-identifier (.)... Has anybody a solution for this?

[fw-general] viewRender filename-manipulation

2007-06-12 Thread Sebastian Krebs
Hi. Im using filenames like there are used for ZF-Classfiles and even for Controller (eg IndexController) means: Directories and Filenames are all first letter uppercase. But I see, that the viewRenderer himself only take the module-, controller- and action-names like they are, without any po

Re: [fw-general] Header confusion

2007-05-06 Thread Sebastian Krebs
Hi Maybe you use /clearHeaders()/, but its possible (i dont know), that this are headers implicit set by Apache, PHP, Browser or someone else and not by ZF. Maurice Fonk schrieb: Hi there, I'm trying to set a cache control header for my controller's response like this: public function

Re: [fw-general] newbie acl/auth question

2007-05-06 Thread Sebastian Krebs
First i have created resources with Zend_Acl_Resource as a "string-container" $res = new Zend_Acl_Resource ($request-> getControllerName ()); Now Ive implemted the Interface in my abstract Controller // in Controller $acl->add ($this); It depends on what you want to protect, what you

Re: [fw-general] newbie acl/auth question

2007-05-06 Thread Sebastian Krebs
First i have created resources with Zend_Acl_Resource as a "string-container" $res = new Zend_Acl_Resource ($request-> getControllerName ()); Now Ive implemted the Interface in my abstract Controller // in Controller $acl->add ($this); It depends on what you want to protect, what you