look at a first line of your output:
Zend_Controller_Router_Route Object
(
[_urlVariable:protected] = :
Do you see the class name? GetInstance instantiates incorrect object type.
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
/browse/ZF-777
Expect it rather post 1.0 unless some higher power tells me to implement it as
quickly as possible :)
Bryce Lohr
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
();
}
}
}
And then you create your forms by extending above class while providing
missing abstract methods:
class My_Login extends My_Form_Action {
protected showForm() {
...
}
...
}
Jens
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
you basically are
overwriting former with the latter.
How can I solve this problem?
Just name the routes a bit differently. Like:
$router-addRoute('project', ...
$router-addRoute('project-details', ...
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
automatically by the router. The other is to use a different type of
route for this one problem - eg. a Zend_Controller_Router_Route_Regex.
Remember you can mix and match different kind of routes.
Andrew
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
).
http://www.w3schools.com/xpath/xpath_functions.asp#string
Andriesss
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Idleness is not doing nothing. Idleness is being free to do
')
),
array(
1 = 'file'
),
'js/%s'
);
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
In a mad world only the mad are sane. -- Akira Kurosawa
with this one, as it has
been bugging me for a long time :).
I guess that with this little help I provided, you will probably be able to
solve every other problem on your own ;)
Andriesss
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
if you are determined enough to
extend the dispatcher. And the router is designed as a filter to request so it
is optional.
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Make
:)
If this is a feature, is there a way to assemble a wildcard route without
taking into account the current parameters?
There is another way to reset parameters. You can leave $reset as false but
pass 'var' = null to assemble if you wish to reset specific url variables only.
--
Martel
the
view scripts. But it makes subclassing a hell at the same time.
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Idleness is not doing nothing. Idleness is being free to do anything
Matthew Ratzloff wrote:
Consistency means predictability, which means being able to recall names
without having to check the manual every time.
Seconded.
-Matt
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
Philip Iezzi wrote:
please fix...
Fixed in revision 2910.
Thanks, Philip.
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
You don't stop laughing because you grow old. You
('users', $values['action']);
}
I yet have to make assembling work (I guess about 70% work is already done) and
create a proposal. Then everything will be in the hands of Matthew.
Philip
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
but the CVS version is fixed (and more than slightly refactored).
Would anyone out there be interested in creating Zend_Ldap?
If only I had the time to do it :(
-ralph
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
: pid 35047 (httpd), uid 65534: exited
on signal 11
Have you upgraded something on your system after PDO compilation? I mean any
dependency which may be used by PHP/PDO. Most likely that's newer mysql that's
causing some trouble. Have you tried recompiling PHP and/or pdo_mysql?
Brad
--
Martel
have found that the latter matches, where the former does not, and am
wondering if that's a bug or intended behaviour.
It's a bug and I have fixed it with revision 2469. Please update your sources
and give it a try.
Andrew
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http
other kind of misbehavior.
Try $ctrl-dispatch() instead of run. I had some issues with this before. But it's a
wild guess only, so don't expect miracles.
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
.
Andi
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Idleness is not doing nothing. Idleness is being free to do anything. --
Floyd Dell
it on
purpose? :)
But you're missing the point here. There are places in _DOM_ where such convenience
classes would be justified. That's all I'm saying. The code is pretty irrelevant. I
have given this sample because we're all more comfortable with code examples, right?
--
Martel Valgoerad aka Michal
());
}
Result:
array(3) {
[id]=
string(1) 2
[controller]=
string(4) news
[action]=
string(4) show
}
Nick
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
If you pick
, $name)
public function addRoute($name, $route)
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
To err is human -- and to blame it on a computer is even more so. -- Robert
Orben
://framework.zend.com/wiki/display/ZFPROP/Action+Controller+Directory+Tree+-+Christopher+Thompson
I won't go into details here but I think even Christopher will agree that his
proposed solution has it's drawbacks. And to me - it's just not kosher enough ;)
--
Michael Minicki aka Martel Valgoerad | [EMAIL
of:
http://localhost/test/index.php/news/add
You will have to use:
http://localhost/test/index.php/news/add/module/admin
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Everyone
Martel Valgoerad wrote:
I guess there is already another proposal for controllers in
subdirectories...
Yes, there is. Submitted by Christopher Thompson ages ago. It was submitted
long before MVC reorganization and uses special characters (in URIs) as
directory separators:
http
Shekar C Reddy wrote:
Great! Is there a way to map a subdomain to a module?
With standard dispatcher? No. You will need to extend it and override the part
of the code which will be getting a module name out of the request. But it
shouldn't be too hard.
--
Michael Minicki aka Martel
drive with a bigger cache. The problem is, I have the disk but
with a different operating system so comparison of these two does not have any
sense. I have to find some kind of Linux with a SATA now...
Rob...
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
still resides in incubator. And later,
after the 0.6.0 release, it may be harder to do so.
Arnaud.
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Any fool can write code
way for URL
creation.
Any ideas?
The URL helper should work.
daniel
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Generosity is giving more than you can, and pride
in
_significant_ loss of performance.
Regards, Victor.
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dreaming permits each and every one of us to be quietly and safely insane
an ugly copy and paste and
must have forgot to change the visibility afterwards.
Kevin
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Courage is resistance to fear, mastery
];
And finally the routers should use $request-get/set instead of
getParams/setParams.
JIRA Issue:
http://framework.zend.com/issues/browse/ZF-604
Jay M. Keith - Zend Certified Engineer
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
Martel Valgoerad wrote:
By the way, you may achieve a significant performance boost refusing
to use the resourse-consumpting RewriteRouter.
Do you have any benchmark data to support that theory? I agree it's doing a lot
of work compared to the basic router, but even that shouldn't result
for and it's a bit outdated
(since Zend_Config changed it's interface for handling pure PHP configs) but I
think it may be of some use for you.
http://www.ingredients.com.au/nick/2006/07/18/rewriterouter-and-zend_config-play-together/
daniel
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED
Stéphane Thomas wrote:
I had the same problem than you, Asger Hallas and Martel Valgoerad. However
if you update line 464 and remove the latest change done in
Zend_Controller_Request_Http (aka removing the minus 1) it's working fine.
So you would have:
Line 464: if ((null !== $baseUrl) (false
is.
I have moved the default route creation into its own method primarily to clean
the constructor and to make it more readable. And making it easier to override
the default routes if you choose to subclass the router.
Kevin McArthur
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED
66.7 0.02 0.09 0.02 0.05 0.00 0.0029 0. 0.0
require_once
Tested on revision 1847 with only with APD running. Without any compiler caches.
Richard Thomas - Code Monkey
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
()-getParams());
var_dump($this-_getParam('name') === 'ä');
Result:
---
array(3) {
[name]=
string(2) ä
[controller]=
string(5) index
[action]=
string(5) index
}
bool(true)
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
1640. Please, give it a try.
I have added a test for that case. And if there will be no signs of broken code
or any other faulty behavior in upcoming days, I will also modify the library
version to cover that.
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
Simon Mundy wrote:
It looks as if the JIRA tracker will need to be tightened down some more
- someone's just posted a porn link via issue #ZF-546
Same goes for ZF-351 and ZF-254.
Simon Mundy | Director | PEPTOLAB
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl
svn:external.
Ralf
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
A paranoid is someone who knows a little of what's going on. -- William S.
Burroughs
41 matches
Mail list logo