On 3/1/07, Christopher Thompson <[EMAIL PROTECTED]> wrote:
I just did a quick survey to see what in Zend.php is used within the
framework. I note that Zend_Cache chose not to use Zend::loadClass. And
the controller code, which was the original user of this code, should
probably have its own spec
I just did a quick survey to see what in Zend.php is used within the
framework. I note that Zend_Cache chose not to use Zend::loadClass. And
the controller code, which was the original user of this code, should
probably have its own special purpose loader. In general, nothing in
Zend.php is rea
btw.: I am not using autoload.
"although that would add one line of code (require) to a ZF bootstrap for
those not using autoload."
Is the use of autoload really the core issue here? I kept trying to
understand the comments about needing additional require statement if the
Zend class was split.
"although that would add one line of code (require) to a ZF bootstrap for
those not using autoload."
Is the use of autoload really the core issue here? I kept trying to
understand the comments about needing additional require statement if the
Zend class was split. Are there really people using
Is there anyone who already implemented a Zend_XmlRpc_Server in
combination with a Controller? I want to use a XmlrpcController
(~Zend_Controller_Action) and Zend_XmlRpc_Server but I don´t know how to
combine these two things.
-- Jan
Hello everyone, this is first time posting, so I hope I am doing this
correctly :)
I have been using Zend Framework since 0.15 and am very familiar with
the code base and API usage. I welcomed the changes of 0.80 in regards
to Zend_DB; however, I have run into a problem when joining tables
across
Ok, so after listening to what a lot of people have said here, and gettin
some feedback from other php devs.
Here's what I've come up with.
[bootstrap]
$zl = new Zend_Locale();
$lang = in_array($zl->getLanguage(), array('en','fr')) ? $zl->getLanguage()
: 'en';
$router = new Zend_Controller_
Hi all,
i'm trying to update my web-application developed with the Zend Framework
0.6 to 0.8.
I have successfully changed my code following the migration guide:
http://framework.zend.com/manual/en/zend.controller.migration.html#zend.controller.migration.fromzerosix
http://framework.zend.com/manua
Matthew Ratzloff wrote:
The existing one [Zend_Registry] works perfectly well.
It uses __set() and __get(), and implements ArrayObject.
Thank you :) .. there was an amazing amount of debate over this for months,
before the current solution became accepted. I vastly prefer the new
Zend_Registr
Hi Adam,
If you are already using SVN to manage your application source code, you
might also consider the use of svn:externals:
http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html
You can set the revision to which the externals definition applies,
helping you to easily manage fram
Thomas Weidner wrote:
> And I do not think that you want to have a subdir for all 32 locales within
> the english language.
You're right, that really wouldn't be nice :) The point is to map a
language requested by the user to the appropriate language directory.
Philippe Le Van wrote:
> Traduction
Yes, that's the convention we've been using for tag names. We may also
have "rc1", "rc2", etc. as a suffix to the tags when we get there.
The 'trunk' URL is not a nightly build - it's the HEAD of the svn tree,
and so there is no QC or protection against breakage. Use that only if
you want to
Greetings all,
i am trying to write Zend into our deployment scripts for both production
and development, and just wanted to be sure that I am using the correct
subversion repositories for them [this is mainly a doublecheck]
Releases (where current R.X.x is 0.8.0)
http://framework.zend.com/svn/
Andi,
I am glad you and Bill are considering alternate solutions, but I honestly
find the "multiple classes in one file" method to be more confusing than
the current state of affairs. Premature optimization.
> We still believe having all the core functionality in one file is
> beneficial. While
Who said, there is no language within the URL ???
I just said that it should not resist within module / controller / action...
Just configure your webserver the right way
de.mypage.com/module/controller/action
en.mypage.com/module/controller/action
Any robot will search this...
It works on all
Hi,
If there is no language in the URL, a search engine can't crowl
all the versions of the website.
That's why I used the solution #1 in http://www.euromapping.com
Traductions are made in smarty configurations files and a custom
translation system for technical messages (like "wrong email" for
It turned out I didn't have the class correct in the
IndexController.php, I should have been able to figure that out from the
errors. I just had IndexController instead of Lead_IndexController.
Thanks for the help!!
On Wed, 2007-02-28 at 10:58 -0500, Matthew Weier O'Phinney wrote:
> -- Phillip
Got some weird results when trying to add documents to an index.
Have a table with 200 000 records.
I query the database and loop through the records and tries to add docs to
the index using these lines:
$doc = new Zend_Search_Lucene_Document();
$doc->addField(Zend_Search_Lucene_Field::Keyword('
Hey Ralf (Andi et al.),
You have been putting together some points that I've been trying to
make but have come short due to lack of patience in developing the ideas
more fully. I think we are on the same page.
Yes, I too think making a Zend.php class that has multiple layers of
unrelated f
-- Phillip B. Roberts <[EMAIL PROTECTED]> wrote
(on Wednesday, 28 February 2007, 09:51 AM -0500):
> I apologize if I am hitting the wrong list.
>
> I am trying to use modules with Zend Framework 0.8.0 but having a multitude
> of
> problems. Was hoping ANYONE could offer some help.
>
> Right now
Phillip,
Check that you have file IndexController.php in
/home/roopgroup/application/Lead/controllers
and that the name of the class in it is Lead_IndexController.
Sincerely,
--
Alexander
http://www.alexatnet.com/
On 2/28/07, Phillip B. Roberts <[EMAIL PROTECTED]> wrote:
I apologize if I a
I apologize if I am hitting the wrong list.
I am trying to use modules with Zend Framework 0.8.0 but having a
multitude of problems. Was hoping ANYONE could offer some help.
Right now, if I go to the address www.theroopgroup.com I can get to the
default module fine (which is currently just a r
> Ok, and Zend_Acl_Adapter would be in Acl/Adapter/Adapter.php or in
Acl/Adapter.php? If the former - how it's not directory per file? If the
latter, why
> Zend_Acl gets subdirectory and Zend_Acl_Adapter not and how one is to
know that by the name?
Got the idea u are asking about Zend class lo
Stanislav Malyshev wrote:
The problem is that in Zend/ directory there are a lot of php files:
Ok, there is. Why it is a problem though?
couse it is not strict package separation
It would be much better to move them to:
Acl/Acl.php
Ok, and Zend_Acl_Adapter would be in Acl/Adapter/Adapter.p
I'm getting the same type of errors:
Got some weird results when trying to add documents to an index.
Have a table with 200 000 records.
I query the database and loop through the records and tries to add docs to
the index using these lines:
$doc = new Zend_Search_Lucene_Document();
$doc->addFie
-- Gerry CrsH Put <[EMAIL PROTECTED]> wrote
(on Wednesday, 28 February 2007, 12:45 PM +0100):
> Probably a stupid question but on our site we have some routes that say
>
> http://site/article/view/id/1
>
> in 0.1.5 I created a route in the bootstrap file for every extra parameter I
> wanted to yo
If you don't have any routes defined in your bootstrap file then these extra
parameters will be available automatically
http://site/controller/action/key1/val1/key2/val2
If you would like to have a custom route and match that route even if extra
parameters are passed through, use a rout
Hi Gerry
> Probably a stupid question but on our site we have some routes that say
>
> http://site/article/view/id/1
>
> in 0.1.5 I created a route in the bootstrap file for every extra
> parameter I wanted to your and got them wuth the _getParam() function of
> the action
> but we recently upgr
Probably a stupid question but on our site we have
some routes that say
http://site/article/view/id/1
in 0.1.5 I created a route in the bootstrap file for every extra
parameter I wanted to your and got them wuth the _getParam() function
of the action
but we recently upgraded to 0.8.0 and this
Hi Thomas,
> Yes this is recognised...
> Because the crawler sends within his header the "Accept-Language" field.
I was not aware of this. Thanks for clarification!
Best Regards,
Ralf
A session-based approach is infeasible -- theres no reason why that entire
overhead of setting up a session for every user should be involved for
simple language determination.
When you are only in need of language determination you should only do
$locale = new Zend_Locale();
and will have re
Hy Juri,
You could have a "application/language" directory, with subdirs named
after used locales:
application/language/en_US
application/language/fr_CA (or without region, just en and fr)
This is no good approach...
Because a locale is not identical with an language.
We have en_US, en_GB, en_
Our multilingual application has the language of the user within the
session...
Thanks for this very interesting approach! The only problem I see is the
search engine crawling. How can a search engine crawl the English,
German or Spanish version of your site? Does your system recognize if
the Ge
AFAIK I think the language should handled by the requested sub domain.
This way you don't have to bother with language handling: all is performed in
the bootstrap file. Basically it just have to detect the requested submain
and then sets up the current locale, the path to the localised data like
Keeping this functionality in one class makes sense to me. The main change
we'd need to make to our code is changing lines like:
$db = Zend::registry('db');
to:
$db = Zend_Registry::registry('db');
I guess I could suggest simplifying the register/registry method names since
the duplication of t
my +1 for Ralf
Having four classes in one file is even a bigger break of consistency than the
current solution, in my eyes.
Otherwise I totally agree with Andi's simplicity goal. I don't want to have
more than one require_once in my bootstrap. Zend/Core.php sounds good and
should have some basi
Hi Kevin,
i made some very good experiences using smarty templates with
configuration files for multiligual output. All templates and language
files are cached by smarty, so performance wasn't really an issue.
You could have a "application/language" directory, with subdirs named
after used locale
We could just go down the separation path. I'm just worried it's going
to be a PITA to require the various classes. It also doesn't give us a
centralized bootstrap if we require it down the road (I don't
expect all
to use the MVC).
I would have asked the same questions Rob already has but I w
Hi Andi and all others,
I am sorry but I think keeping four classes in one file is even worse
than the current Zend class. Sounds a bit like premature optimization.
Many framework beginners already have problems to understand the purpose
of the Zend class. I am afraid that with your approach confu
Very good point, indeed! Rigidity is recommended in cases such as security.
For everything else, flexibility, user-friendliness, performance,
easy-of-use and maintainability count and pay off. Reducing the number of
files is a far better approach than what we thought on this thread and was
also di
Hi,
you don't need to modify zf core classes for that. One of good solutions
is to write your
own wrapper for Zend_Db. For example:
class My_Db extends Zend_Db
{
static public function factory($adapterName, $config = array())
{
$adapter = parent::factory($adapterName, $config);
A session-based approach is infeasible -- theres no reason why that entire
overhead of setting up a session for every user should be involved for
simple language determination.
The problem with only translating strings, like Zend_Translate, is that
often the layout needs modification for types
Hi Thomas,
> Our multilingual application has the language of the user within the
> session...
Thanks for this very interesting approach! The only problem I see is the
search engine crawling. How can a search engine crawl the English,
German or Spanish version of your site? Does your system reco
43 matches
Mail list logo