Re: [fw-general] uasort, or functions that requiere a callback
Reply myself Place the protected function inside the class, and call: uasort($result, array($this, 'orderArrayNatural')); Thxs anyway j.padron wrote: > > Hi, > > I have a DB model class (extends Zend_Db_Table_Abstract) from where I > return data. In one of the methods I have to uasort(array, callback) > arrays (several merged). The problem is that I don't know where to put and > declare the "function compare" and call it as string like uasort requiere. > > Where must I put this function, inside dir estructure, in order to be > accesible from my model? > > Thanks in advance. > Jorge > -- View this message in context: http://www.nabble.com/uasort%2C-or-functions-that-requiere-a-callback-tp25229618p25230702.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] uasort, or functions that requiere a callback
Hi, I have a DB model class (extends Zend_Db_Table_Abstract) from where I return data. In one of the methods I have to uasort(array, callback) arrays (several merged). The problem is that I don't know where to put and declare the "function compare" and call it as string like uasort requiere. Where must I put this function, inside dir estructure, in order to be accesible from my model? Thanks in advance. Jorge -- View this message in context: http://www.nabble.com/uasort%2C-or-functions-that-requiere-a-callback-tp25229618p25229618.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Problems with searching on-line documentation
Can't describe better... Andrew Ballard-2 wrote: > > I was trying to search the on-line documentation for details about the > isXmlHttpRequest() method. With the language set to English, the > search returned no results. When I set the language to All, I got > twelve results: sections 12.4 and 12.8, each in six different > languages -- including English. I set the language back to just > English and tried searching for the word "View", and it returned four > pages of results, so I know the search works at least some of the > time. > > I found the same when searching for "flashmessenger", but "flash > messenger" returns six results in English. It seems as though when the > language is set to English that the search phrase itself must be one > or more English words; if it contains something like a class, property > or method name, the search returns no results. > > Andrew > > -- View this message in context: http://www.nabble.com/Problems-with-searching-on-line-documentation-tp23947758p24541360.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Where is the api doc link for 1.8.2
Nope... there's no updated API docs for 1.8.2, only for 1.8.1 online, not for download. vince. wrote: > > http://framework.zend.com/download/latest# > > You will find it under Documentation -> Download > > -- View this message in context: http://www.nabble.com/Where-is-the-api-doc-link-for-1.8.2-tp23769246p23778545.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Adding Zend_Application_Module_Bootstrap file causes application to fail
Hi Mon, That's exactly the reason. I debug it with Zend Studio and fall in an infinite bucle. Waiting for the "official" response. Thanks. Mon Zafra wrote: > > I think it's because of this change: > (Zend/Application/Module/Bootstrap.php) > > Index: Bootstrap.php > === > --- Bootstrap.php (revision 15357) > +++ Bootstrap.php (revision 15356) > @@ -51,7 +51,7 @@ > */ > public function __construct($application) > { > -parent::__construct($application); > +$this->setApplication($application); > > $key = strtolower($this->getModuleName()); > if ($application->hasOption($key)) { > > > I can't get PDT's debugger to work, but my guess is that the modules > plugin > pulls all the options from the application bootstrap including the > resources. Since the module bootstrap is a child class of > BootstrapAbstract, > during bootstrap() it executes all the plugins again including the modules > plugin, which runs all the module bootstraps again, which inherits and > executes all plugins again, and so on. > >-- Mon > > > On Sat, May 9, 2009 at 8:05 PM, j.padron wrote: > >> >> Hi, >> >> Same problem here. It's related to >> http://framework.zend.com/issues/browse/ZF-6545 >> http://framework.zend.com/issues/browse/ZF-6545 . There, there is a >> modular >> structure to reproduce the fail. >> >> Thanks >> -- >> View this message in context: >> http://www.nabble.com/Adding-Zend_Application_Module_Bootstrap-file-causes-application-to-fail-tp23457724p23459923.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Adding-Zend_Application_Module_Bootstrap-file-causes-application-to-fail-tp23457724p23460404.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Adding Zend_Application_Module_Bootstrap file causes application to fail
Hi, Same problem here. It's related to http://framework.zend.com/issues/browse/ZF-6545 http://framework.zend.com/issues/browse/ZF-6545 . There, there is a modular structure to reproduce the fail. Thanks -- View this message in context: http://www.nabble.com/Adding-Zend_Application_Module_Bootstrap-file-causes-application-to-fail-tp23457724p23459923.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Application - Modular estructure example (code download)
Hi, I've made a simple (very simple) example with source code download at the end. The post it's in spanish, but code help me to see how modules' autoloader works. http://bit.ly/18OvfW http://bit.ly/18OvfW regards jpadron http://www.konducta.com www.konducta.com -- View this message in context: http://www.nabble.com/Zend_Application---Modular-estructure-example-%28code-download%29-tp23369851p23369851.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] and Zend_application
Hi there, I'm using Zend_Tool to create the base project. I don't understand includePaths.library ini setting, because, previously, in index.php under public folder, we have to ensure library is in include_path, in order to require_once 'Zend/Application.php'; can be found. If we leave both in code, library path is included twice... Thanks -- View this message in context: http://www.nabble.com/and-Zend_application-tp23361127p23361127.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] How to add Translation using Zend_app resource
I've found it: resources.translate.data = APPLICATION_PATH"/lang" resources.translate.adapter = "gettext" resources.translate.locale = "es" resources.translate.options.scan = "directory" j.padron wrote: > > Hi, > > I've got an application using Zend_app working fine, but now I'm adding > Zend_Translate and find no way to configure it. > > Application.ini has this settings: > > resources.translate.data = > APPLICATION_PATH"/lang/es/LC_MESSAGES/translation.mo" > resources.translate.adapter = "gettext" > resources.translate.locale = "es" > > How can I add other languages in ini file (addTranslation)? > > Thank you > > PS: (Documentation for Translate Resource is missing) > > > > -- View this message in context: http://www.nabble.com/How-to-add-Translation-using-Zend_app-resource-tp23341465p23342437.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] How to add Translation using Zend_app resource
Hi, I've got an application using Zend_app working fine, but now I'm adding Zend_Translate and find no way to configure it. Application.ini has this settings: resources.translate.data = APPLICATION_PATH"/lang/es/LC_MESSAGES/translation.mo" resources.translate.adapter = "gettext" resources.translate.locale = "es" How can I add other languages in ini file (addTranslation)? Thank you PS: (Documentation for Translate Resource is missing) -- View this message in context: http://www.nabble.com/How-to-add-Translation-using-Zend_app-resource-tp23341465p23341465.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Application, howto Bootstrap Modules
Hi, I've found this: http://framework.zend.com/issues/browse/ZF-6286 But I don't understand this setting: resources.modules.foo = "Bar" ; to ensure modules resource is loaded Must I create this for each module?, What does "Bar" mean? Thanks -- View this message in context: http://www.nabble.com/Zend_Application%2C-howto-Bootstrap-Modules-tp23089584p23102686.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Application, howto Bootstrap Modules
Hi, I'm trying to use Zend_Application to Autoload resources (forms, etc.), but I can't find any information that works for the simplest modular directory structure: application bootstrap Bootstrap.php config config.ini modules Acceso [...] Bootstrap.php Dashboard [...] Bootstrap.php Documentation says: "If your module has a Bootstrap.php file in its root, and it contains a class named Module_Bootstrap (where "Module" is the module name), then it will use that class to bootstrap the module.", but module2/bootstrap.php do nothing in order to expose resources: Fatal error: Class 'Dashboard_Model_Form_Login' not found in C:\xampp\htdocs\esqueleto\application\modules\dashboard\controllers\IndexController.php on line 14. The dashboard/Bootstrap.php contains: class Dashboard_Bootstrap extends Zend_Application_Module_Bootstrap { public function _initModule() {} public function run(){} } The only module that works correctly is the default module if I have this: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { [...] protected function _initDefaultModuleAutoloader() { $this->_resourceLoader = new Zend_Application_Module_Autoloader( array( 'namespace' => 'Acceso', 'basePath' => APPLICATION_PATH . '/modules/acceso' )); } [...] } And, in the ini file, among other irrelevant settings: bootstrap.path = APPLICATION_PATH"/bootstrap/Bootstrap.php" resources.frontcontroller.moduledirectory = APPLICATION_PATH"/modules" Thanks in advance. -- View this message in context: http://www.nabble.com/Zend_Application%2C-howto-Bootstrap-Modules-tp23089584p23089584.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] UTF-8 from database
Hmm, I've "discover" this (don't tryed yet): http://zfsnippets.com/snippets/view/id/13 http://zfsnippets.com/snippets/view/id/13 really usefull site, very good... -- View this message in context: http://www.nabble.com/UTF-8-from-database-tp22597212p22601038.html Sent from the Zend Framework mailing list archive at Nabble.com.