Thanks for the great advice! That did the trick and made me realize
an even simpler solution to my needs in the process.
I needed to iterate the pages in reverse to store the page ID of the
last li element of each ul element before allowing the walker
class to do its work. This allowed
I'm a self-confessed PHP newb (first step towards a cure, right?), so
apologies in advance for what may be a basic question. I spent an hour
searching for an answer to this and couldn't find one.
I found one post that said there was a problem with this in 5.0.3, but
it didn't indicate whether
Tommy Baggett wrote:
I'm a self-confessed PHP newb (first step towards a cure, right?), so
if these are your first steps why use php4? php5 has been out for
going on 3 years.
apologies in advance for what may be a basic question. I spent an hour
searching for an answer to this and couldn't
: Thursday, November 29, 2007 5:06 PM
To: Tommy Baggett
Cc: php-general@lists.php.net
Subject: Re: [PHP] Calling parent function with call_user_func_array
Tommy Baggett wrote:
I'm a self-confessed PHP newb (first step towards a cure, right?), so
if these are your first steps why use php4? php5
Tommy Baggett wrote:
Thanks for taking the time to reply.
I'm working on a Wordpress theme and extending one of their existing
classes (the Walker class if you're familiar with WP). Since WP still
supports PHP4, my theme needs to as well.
I know WP, don't like the code too much - but you
On Nov 29, 2007, at 5:30 PM, Jochem Maas wrote:
does this work:?
call_user_func_array(array(parent,'doSomething'),$args);
It doesn't work with PHP 4. I was going to try PHP5 on my
development machine but I will need to do some configuration editing
first.
Here's the exact
On Nov 29, 2007 7:22 PM, Tommy Baggett [EMAIL PROTECTED] wrote:
Here's the exact code I tried:
class Walker_NavBar extends Walker {
...
function walk($elements, $to_depth) {
$args = func_get_args();
...
// call base class implementation
7 matches
Mail list logo