I use the Zend_Loader_Autoloader to load classes. My namespace is "Foo".
According to the docs (http://is.gd/v5zW) I should provide an
underscore after the namespace:
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('F
Ralph Schindler-2 wrote:
>
> Yes, my plan for this week is to get out both module support as well as
> custom profile support. I will drop a note to the list when its ready
> to test from trunk/
>
Will be right here waiting for you :)
Thanks.
--
regards
takeshin
--
View this message in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> 1. What OS you are using during development? Windows? Mac? Linux?
- - Windows XP Prof & Fedora 10
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on localhost or remote?
- - local
> 3. What tool or I
anyone?
On Fri 01/05/09 5:48 AM , Brad Kowalczyk
wrote:
Hi,
just trying to use the Zend_Mail_Protocol_Smtp_Auth_Login class directly
to test user supplied SMTP login details in an installer I am creating for
an app.
It keeps failing the auth() call as there is data still in the stream
fro
i want to decorate my form in a table something like
http://www.nabble.com/How-render-Zend_Form-to-html-table--td15299082.html
except in the following format
++--+---+
| label |label | label |
++--+---+
|element| element | element |
ardx wrote:
>
>
>
> ardx wrote:
>>
>> It seems as though entering routes using application.ini turns off
>> default routes. Is that right?
>>
> Sorry, ignore that.
>
> The problem I'm experiencing is not with the routing per se, it is with
> the ability of some part of Zend_Navigation to
This is probably something you want to ask the #php chat room on the
freenode IRC. This list is specfically for Zend Framework help.
-ralph
salmarayan wrote:
Hi..
I'm creating a tool that calculates the simple moving average for stocks
the Application is simple
The user chooses a stock and t
Yes, my plan for this week is to get out both module support as well as
custom profile support. I will drop a note to the list when its ready
to test from trunk/
-ralph
admirau wrote:
I'm creating projects using Zend_Tool provided with ZF 1.8.
How change default view suffix to .xhtml instea
-- Kendall Bennett wrote
(on Sunday, 03 May 2009, 04:51 PM -0700):
> I found the same thing. I think it is superfluous.
It is, and it as simply there for purposes of example. Better places
exist for setting the include_path: php.ini, the virtual host, or
.htaccess (in order of preference). Regar
I'm not sure if there's a way to setup an admin module directly thru
application.ini I was trying o make my bootstrap an *almost* complete stub
taking advantage of application.ini there's a lot to be said but anyway
that's off topic in my boot strap I just added
$front->addControllerDirectory(A
I found the same thing. I think it is superfluous. You can remove either the
entry from the application.ini file, or the one from the index.php file. I left
mind in the index.php file because I also set up the path to my global Zend
Framework library in there as well, rather than setting it up i
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
It seems like it helped to add the Member.php file to the models directory,
but I still can't find a single call to a new Member. I'll have to dig my
way through the book to see if that will reveal anything.
And oh, I've made an echo inside the Member class' construct, but it doesn't
show up. So
tfk wrote:
>
> Do you have a class called Member? And the autoloader is trying to
> load it and can't find it?
>
I've had absolutely no idea what Member.php was, until I wrote this answer!
I've searched for it in my code, but couldn't find any reference what so
ever...
Then I thought, it migh
Kendall Bennett wrote:
I think you need to set the namespace to 'Default', not ''?
Matthew suggested this in an earlier thread:
$loader = new Zend_Application_Module_Autoloader(array(
'basePath' => APPLICATION_PATH,
'namespace' => '', // no resource namespace
));
I think this lets t
On Sun, May 3, 2009 at 10:16 PM, lund.mikkel wrote:
>
> I have some big problems with sessions. I've tried to make a login form, but
> failed a lot of times now - always because of the same error! I've boiled it
> down to be "Zend_Auth::getInstance()->hasIdentity()" that gives my problems.
> The e
I am still struggling to figure out how to correctly configure everything in ZF
1.8.0 to set up a structure similar to the following:
/application
/configs
/controllers
/layouts
/models
/views
/modules
/admin
/controllers
/layouts
I think you need to set the namespace to 'Default', not ''?
Regards,
Kendall Bennett, CEO
A Main Hobbies
424 Otterson Drive, Suite 160
Chico, CA 95928
1-800-705-2215 (Toll-Free)
1-530-894-0797 (Int'l & Local)
1-530-894-9049 (Fax)
http://www.amainhobbies.com
From
Hi all,
I have been following devzone article by MWO'P, the reference guide, and
thread by JDeBord subject:
"Zend_Loader_Autoloader match Zend_Loader functionality"
...and still failing to convert old style Loader to new Autoloader.
My file layout is the recommended one and includes this tr
ardx wrote:
>
> It seems as though entering routes using application.ini turns off default
> routes. Is that right?
>
Sorry, ignore that.
The problem I'm experiencing is not with the routing per se, it is with the
ability of some part of Zend_Navigation to properly generate a url for a
rout
It seems as though entering routes using application.ini turns off default
routes. Is that right?
--
View this message in context:
http://www.nabble.com/Routes---application.ini---default-routes-tp23359752p23359752.html
Sent from the Zend Framework mailing list archive at Nabble.com.
I have some big problems with sessions. I've tried to make a login form, but
failed a lot of times now - always because of the same error! I've boiled it
down to be "Zend_Auth::getInstance()->hasIdentity()" that gives my problems.
The error message states following:
Error: Zend_Session::start()
Hi!
Below is fragment of my bootstrap file
in which I enable gzip compression for all pages.
It works fine unless I start caching pages via Zend_Cache_Frontend_Page.
How should I enable gzip compression for cached pages too?
/**
* Send response to the browser
* @access public stat
-- J DeBord wrote
(on Sunday, 03 May 2009, 09:23 PM +0200):
> On Sun, May 3, 2009 at 5:14 PM, Matthew Weier O'Phinney
> wrote:
>
> -- J DeBord wrote
> (on Sunday, 03 May 2009, 04:49 PM +0200):
> > Adding namespaces to the new Autoloader works great as long as they are
> in the
>
On Sun, May 3, 2009 at 5:14 PM, Matthew Weier O'Phinney wrote:
> -- J DeBord wrote
> (on Sunday, 03 May 2009, 04:49 PM +0200):
> > Adding namespaces to the new Autoloader works great as long as they are
> in the
> > include path. For example, a namespace 'App_' which refers to classes in
> the
>
howard chen wrote:
Please feel free to answer:
1. What OS you are using during development? Windows? Mac? Linux?
Windows locally with Apache 1.3; FreeBSD development server with Apache 1.3
2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhos
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bruno Friedmann wrotes:
>> 1. What OS you are using during development? Windows? Mac? Linux?
> openSUSE Linux 11.1 (32bits due to multimédia and proprietary software
: Zend studio, Adobe AIR
32bit software runs fine on a 64bit system, thanks to ia32 l
1. What OS you are using during development? Windows? Mac? Linux?
1. Mac with xampp installed.
2. Do you edit source code on localhost or remote? i.e. is your testing
environment reside on localhost or remote?
1. Development --> Localhost (xampp)
3. What tool or IDE you are
The isValid function also takes an optional 'context' parameter which is an
array of all the values submitted.
public function isValid($value, $context = null)
{
if(($context['box1'] + $context['box2'] + $context['box3']) > $someValue)
{
// error
}
}
Any mention of this seems to have vanished
howard chen wrote:
> Please feel free to answer:
>
> 1. What OS you are using during development? Windows? Mac? Linux?
openSUSE Linux 11.1 (32bits due to multimédia and proprietary software : Zend
studio, Adobe AIR
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing envir
howard chen wrote:
Please feel free to answer:
1. What OS you are using during development? Windows? Mac? Linux?
Mac OS 10.5, + Win XP at work, Debian
2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhost or remote?
Editing mainly on localho
On 2 May 2009, at 18:14, howard chen wrote:
Please feel free to answer:
1. What OS you are using during development? Windows? Mac? Linux?
Mac OS X
2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhost or remote?
Development on localhost
Kendall Bennett wrote:
Sure, but I still fail to see how Zend_Registry makes development any
faster? It is just a glorified version of the $GLOBALS super global,
and if
you look at the meat of it, it is syntactically similar to using the
$GLOBALS super global.
How do you extend $GLOBALS? Ah
Hi,
I'm trying to achieve the following and having real difficulty in seeing how
it should work:
1) have a global layout using Zend_Layout which renders some
common-to-all-actions stuff - a header, a menu, a footer. The 'main action'
is then rendered to layout()->content.
2) have the 'main act
-- J DeBord wrote
(on Sunday, 03 May 2009, 04:49 PM +0200):
> Adding namespaces to the new Autoloader works great as long as they are in the
> include path. For example, a namespace 'App_' which refers to classes in the
> 'App' directory that sits next to the Zend (framework) directory.
>
> Quest
Yo,
till schrieb:
> 1. What OS you are using during development? Windows? Mac? Linux?
Win and Lin
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on localhost or remote?
local (XAMPP and LAMP)
> 3. What tool or IDE you are using? Ultraedit? Apanta
Matthew and all,
Adding namespaces to the new Autoloader works great as long as they are in
the include path. For example, a namespace 'App_' which refers to classes in
the 'App' directory that sits next to the Zend (framework) directory.
Question:
Is there anyway to autoload the classes inside
i tried
$this->broken->setErrorMessages(array("isEmpty" => "Broken is required",
"notAlpha" => "Not Alpha"));
but i get both errors as long as 1 validator fails. and i dont think its a
good idea to hardcode the "isEmpty" and stuff? i shld use the constants
defined in the class? whats the right w
you are right, the validator is not called.
i added it in my Zend_Form class
$this->broken = new Zend_Form_Element_Text("broken");
$this->broken->addValidator(new Lab_Validator_LessThanBalance());
if i do a
$v = new Lab_Validator_LessThanBalance();
$v->isValid("test");
it ran but i got
Ex
Mike Wright wrote:
J DeBord wrote:
My code:
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace(array('Amazon_', 'Nba_'));
$filesDomain = new Nba_SimpleDb_Domain_Files;
There is a parse error in the class Nba_SimpleDb_
-- iceangel89 wrote
(on Sunday, 03 May 2009, 04:13 AM -0700):
> hmm i just wrote a custom validator ...
>
> followng
> file:///D:/_FRAMEWORKS_/_ZF_TRUNK/documentation/manual/en/html/zend.validate.writing_validators.html
>
> but even if i do just
>
> const ERROR = 'error';
>
> protected $_mess
On Sat, May 2, 2009 at 7:14 PM, howard chen wrote:
> Please feel free to answer:
>
> 1. What OS you are using during development? Windows? Mac? Linux?
Vista, FreeBSD or MacOSX
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on localhost or remote?
On Sun, May 3, 2009 at 2:18 PM, Mr. Eric Eugene Naujock
wrote:
> (...)
> So in summary I would just like to request the documentation be extended
> with version requirements kind of like the dependency requirements listed in
> the docs.
http://framework.zend.com/manual/en/requirements.html
For m
-- howard chen wrote
(on Sunday, 03 May 2009, 01:14 AM +0800):
> Please feel free to answer:
>
> 1. What OS you are using during development? Windows? Mac? Linux?
Linux (ubuntu 8.10 currently).
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on loc
-- iceangel89 wrote
(on Saturday, 02 May 2009, 08:38 PM -0700):
>
> hows the best way to create a datepicker. i know theres dojo but if js is
> disabled that will fail. i think i can use the date validator for dates but
> how can i set the format i want? like -mm-dd which mysql uses?
Use a
-- Kendall Bennett wrote
(on Saturday, 02 May 2009, 01:34 PM -0700):
> Ok, I have been going through the paces learning Zend Framework and the
> pieces involved, and sometime it seems like design patterns are used when
> they end up just creating lots of overhead, for zero gain.
This argument has
-- Kendall Bennett wrote
(on Saturday, 02 May 2009, 03:56 PM -0700):
> Wow. That did not come out formatted correct. Let me re-send this one
> formatted correctly:
>
> I have been stepping through all the Zend Framework code to see how it all
> fits together, and thinking about how it all will af
-- J DeBord wrote
(on Saturday, 02 May 2009, 07:43 PM +0200):
> My code:
>
> require_once 'Zend/Loader/Autoloader.php';
> $autoloader = Zend_Loader_Autoloader::getInstance();
> $autoloader->registerNamespace(array('Amazon_', 'Nba_'));
>
> $filesDomain = new Nba_SimpleDb_Domain_Files;
>
> There
-- Mike Wright wrote
(on Saturday, 02 May 2009, 11:15 AM -0700):
> J DeBord wrote:
>> My code:
>>
>> require_once 'Zend/Loader/Autoloader.php';
>> $autoloader = Zend_Loader_Autoloader::getInstance();
>> $autoloader->registerNamespace(array('Amazon_', 'Nba_'));
>>
>> $filesDomain = new Nba_SimpleDb
I guess thats why I would like to see something in the docs that lists
what the minimum version levels are for the different modules in Zend
framework. So when a new version comes out those of use who are stuck
on shared systems can try to make an educated decision about when to
upgrade or
2009/5/3 Mr. Eric Eugene Naujock :
> OK I have been following this thread for a bit and while and I can see some
> of the arguments made and is some cases may even be valid.
>
> I have been only developing a short while with PHP and I remember seeing
> this design pattern and structure you are prom
2009/5/3 Mr. Eric Eugene Naujock :
> Are you having the same issue that I am?
>
> My hosting provider is a shared provider and to get anything above 5.2.0 is
> not possible without upgrading to a much higher pricing tier. I too remember
> that it used to able a minimum of 5.1.6 to run the framework
Are you having the same issue that I am?
My hosting provider is a shared provider and to get anything above
5.2.0 is not possible without upgrading to a much higher pricing tier.
I too remember that it used to able a minimum of 5.1.6 to run the
framework and then suddenly found out that had
OK I have been following this thread for a bit and while and I can see
some of the arguments made and is some cases may even be valid.
I have been only developing a short while with PHP and I remember
seeing this design pattern and structure you are promoting before. I
believe it was in a l
hmm i just wrote a custom validator ...
followng
file:///D:/_FRAMEWORKS_/_ZF_TRUNK/documentation/manual/en/html/zend.validate.writing_validators.html
but even if i do just
const ERROR = 'error';
protected $_messageTemplates = array(
self::ERROR => "%value% must be less than what has b
2009/5/3 Kendall Bennett :
> Yes, it is true you don't need to use it, and I won't be using it, but I
> still fail to see how using the Zend_Registry class and design pattern makes
> the code any more legible, or elegant for that matter.
First of all, it's about the API. A clean API is vital if yo
Should just be the same as refreshing the other parts of your page, unless
I've misunderstood. The ActionStack helper just calls a normal action, so
you can just use whatever XHR calls you normally use to pull /home/menu
I think I may have missed your point, however!
M
mapes911 wrote:
>
> H
2009/5/2 howard chen :
> Please feel free to answer:
>
> 1. What OS you are using during development? Windows? Mac? Linux?
Mainly Mac OS; Sometimes Win XP on the laptop.
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on localhost or remote?
Local,
iceangel89 wrote:
>
> hows the best way to create a datepicker. i know theres dojo but if js is
> disabled that will fail. i think i can use the date validator for dates
> but how can i set the format i want? like -mm-dd which mysql uses?
>
> the default seems to be -mm-dd but is that
No worries Mike. It's just something new to learn.
I am having another problem though.
I've removed my /models directory from the include path and attempted to
use:
$modelLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Model',
'basePath' => APPLICATION_PATH . '/mo
60 matches
Mail list logo