Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11586 invoked from network); 9 Apr 2012 16:03:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2012 16:03:52 -0000 Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:50488] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/2B-56433-768038F4 for ; Mon, 09 Apr 2012 12:03:52 -0400 Received: by lbbgf7 with SMTP id gf7so1968755lbb.29 for ; Mon, 09 Apr 2012 09:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=O+P/CdxpRaF8IZEoiBlyVPEjECTnFVwOGrOla74gcDk=; b=JkxDCwlnC+IU5sWwCrm2ywwj0WYQm5etLcxhNbJWMy0mGCDT6RoYvVYHW7HBQhVWz4 OZsePL75MgNqS2Hi51VIyfHHP5iMldM5a3rxlpvNtoDiBez1NyTLGJJGrlnLLsKjH+f7 L8B66wEPMpSOfEJY7BCy4GxZ3NTWlDaqR2MElr7hZOunt11SvyV3uimUGPBMf4VY7cQt H0BFQ5IKwEZkc9VdjHpSmeOONEDMkR2JiU8sIxmJiHAnHR96ISlpOvvzBfC1LyuweEnI nQBjttaH6khAZ/JUDaAP6gb86bJtLJUGqTz9SIEzazowQcCLBwBd28jOO6fiSJI2gyXR wtZQ== MIME-Version: 1.0 Received: by 10.152.110.193 with SMTP id ic1mr12428040lab.4.1333987428962; Mon, 09 Apr 2012 09:03:48 -0700 (PDT) Received: by 10.152.115.71 with HTTP; Mon, 9 Apr 2012 09:03:48 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 Apr 2012 17:03:48 +0100 Message-ID: To: Nikita Popov Cc: Tom Boutell , PHP Internals Content-Type: multipart/alternative; boundary=f46d04083b0fd692b004bd4126b8 Subject: Re: [PHP-DEV] Object oriented page templates in PHP From: dragoonis@gmail.com (Paul Dragoonis) --f46d04083b0fd692b004bd4126b8 Content-Type: text/plain; charset=ISO-8859-1 -1. PHP doesn't need more magic. On Mon, Apr 9, 2012 at 4:53 PM, Nikita Popov wrote: > On Mon, Apr 9, 2012 at 5:10 PM, Tom Boutell wrote: > > What if PHP supported a short tag for calling a method of $this? > > > > Then one could write: > > > > > > A big -1 on this. > > If you want to roll your own template syntax, just do so. It's not > that hard to run a quick str_replace('', > $code) over the template. > > Especially consider that @ is already used for error suppression, so > code that previously just wanted to suppress some errors will suddenly > try to call class methods (which obviously will lead to fatal errors). > > Nikita > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d04083b0fd692b004bd4126b8--