Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Pete Loggie

ahem...

Yes, if I use a PHP file using program code, then everything works  
just fine!


That was the very obvious part that I was missing! I knew it was  
something obvious. But that step wasn't made obvious in either the  
book I was using (PHP in Action by Manning: it's brilliant in parts,  
but a bit rushed and piecemeal in others...), or the PHPTAL  
documentation online. They just talk about the templates and the macro  
files, and don't seem to mention the vital step of creating a file  
that brings the files together...


Thank you very much for your help :-)

On 16 Jan 2009, at 15:00, Levi Stanley wrote:


Odd it works for me:

Output:





   
   This is the external macro
   
   This is the internal macro
   




Program Code:

execute();
   } catch ( Exception $e ){
   print "Error: {$e->getMessage()}\n";
   }

?>


Pete Loggie wrote:
I included the complete code I'm testing in the original post. It's  
as

simple as it can be:

macro.html


   
   This is the external macro
   



page.html

   
   This is the internal macro
   


   
   




If I prefix the internal macro with the current filename, it still
works...



On 16 Jan 2009, at 14:08, Christoph Frick wrote:


On Fri, Jan 16, 2009 at 02:02:06PM -0200, Pete Loggie wrote:

No, I don't get any error messages... All that happens is the  
external

macro isn't displayed. It's such a basic issue, that I have no idea
what the problem might be. I mean, if internal macros work fine,  
then
that suggests that PHPTAL is half-working. But the external ones,  
they

just ...  don't do anything :-S All rather frustrating.


then its more likely you macro does some tal:condition right at the
beginning and therefor simply does not get executed? do you use some
kind of tal:block="" syntax there?

you could try to call the macro with the file name prefixed but  
from the

current file. e.g:

test.xhtml:


hello world



--
cu
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal




___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Levi Stanley
Odd it works for me:

Output:


   



This is the external macro

This is the internal macro





Program Code:

execute();
} catch ( Exception $e ){
print "Error: {$e->getMessage()}\n";
}

?>


Pete Loggie wrote:
> I included the complete code I'm testing in the original post. It's as
> simple as it can be:
>
> macro.html
> 
> 
> 
> This is the external macro
> 
>
> 
>
> page.html
> 
> 
> This is the internal macro
> 
>
> 
> 
> 
> 
>
> 
>
> If I prefix the internal macro with the current filename, it still
> works...
>
>
>
> On 16 Jan 2009, at 14:08, Christoph Frick wrote:
>
>> On Fri, Jan 16, 2009 at 02:02:06PM -0200, Pete Loggie wrote:
>>
>>> No, I don't get any error messages... All that happens is the external
>>> macro isn't displayed. It's such a basic issue, that I have no idea
>>> what the problem might be. I mean, if internal macros work fine, then
>>> that suggests that PHPTAL is half-working. But the external ones, they
>>> just ...  don't do anything :-S All rather frustrating.
>>
>> then its more likely you macro does some tal:condition right at the
>> beginning and therefor simply does not get executed? do you use some
>> kind of tal:block="" syntax there?
>>
>> you could try to call the macro with the file name prefixed but from the
>> current file. e.g:
>>
>> test.xhtml:
>>
>> 
>> hello world
>> 
>> 
>>
>> -- 
>> cu
>> ___
>> PHPTAL mailing list
>> PHPTAL@lists.motion-twin.com
>> http://lists.motion-twin.com/mailman/listinfo/phptal
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>


___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]]

2009-01-16 Thread Pete Loggie
Everyone had 'read' access, and it doesn't work if I change that to  
'read and write' either...


On 16 Jan 2009, at 14:11, Levi Stanley wrote:




From: Levi Stanley 
Date: 16 January 2009 14:08:13 GMT-02:00
To: Template Attribute Language for PHP 
Subject: Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]


Did you rule out a permissions problem, on the macro file?



Pete Loggie wrote:
No, I don't get any error messages... All that happens is the  
external

macro isn't displayed. It's such a basic issue, that I have no idea
what the problem might be. I mean, if internal macros work fine, then
that suggests that PHPTAL is half-working. But the external ones,  
they

just ... don't do anything :-S All rather frustrating.


On 16 Jan 2009, at 13:37, Christoph Frick wrote:


On Fri, Jan 16, 2009 at 01:31:19PM -0200, Pete Loggie wrote:


Any ideas what the problem is? The code I'm using is below. The
"internal" macro is displayed, but the "external" macro isn't:


do you get an error message? if not what happens instead?

i use lots of macros and all works out fine also with more than one
path to look for them.

--
cu
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal






___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Kornel Lesiński

On 16-01-2009 at 16:02:06 Pete Loggie  wrote:

No, I don't get any error messages... All that happens is the external  
macro isn't displayed. It's such a basic issue, that I have no idea what  
the problem might be. I mean, if internal macros work fine, then that  
suggests that PHPTAL is half-working. But the external ones, they just  
... don't do anything :-S All rather frustrating.


Can you send me those templates, preferably with compiled versions too? (files 
matching /tmp/tpl_*.php)

--
regards, Kornel



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Pete Loggie
I included the complete code I'm testing in the original post. It's as  
simple as it can be:


macro.html



This is the external macro




page.html


This is the internal macro









If I prefix the internal macro with the current filename, it still  
works...




On 16 Jan 2009, at 14:08, Christoph Frick wrote:


On Fri, Jan 16, 2009 at 02:02:06PM -0200, Pete Loggie wrote:

No, I don't get any error messages... All that happens is the  
external

macro isn't displayed. It's such a basic issue, that I have no idea
what the problem might be. I mean, if internal macros work fine, then
that suggests that PHPTAL is half-working. But the external ones,  
they

just ...  don't do anything :-S All rather frustrating.


then its more likely you macro does some tal:condition right at the
beginning and therefor simply does not get executed? do you use some
kind of tal:block="" syntax there?

you could try to call the macro with the file name prefixed but from  
the

current file. e.g:

test.xhtml:


hello world



--
cu
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[Fwd: Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]]

2009-01-16 Thread Levi Stanley

--- Begin Message ---
Did you rule out a permissions problem, on the macro file?



Pete Loggie wrote:
> No, I don't get any error messages... All that happens is the external
> macro isn't displayed. It's such a basic issue, that I have no idea
> what the problem might be. I mean, if internal macros work fine, then
> that suggests that PHPTAL is half-working. But the external ones, they
> just ... don't do anything :-S All rather frustrating.
>
>
> On 16 Jan 2009, at 13:37, Christoph Frick wrote:
>
>> On Fri, Jan 16, 2009 at 01:31:19PM -0200, Pete Loggie wrote:
>>
>>> Any ideas what the problem is? The code I'm using is below. The
>>> "internal" macro is displayed, but the "external" macro isn't:
>>
>> do you get an error message? if not what happens instead?
>>
>> i use lots of macros and all works out fine also with more than one
>> path to look for them.
>>
>> -- 
>> cu
>> ___
>> PHPTAL mailing list
>> PHPTAL@lists.motion-twin.com
>> http://lists.motion-twin.com/mailman/listinfo/phptal
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>


--- End Message ---
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Christoph Frick
On Fri, Jan 16, 2009 at 02:02:06PM -0200, Pete Loggie wrote:

> No, I don't get any error messages... All that happens is the external
> macro isn't displayed. It's such a basic issue, that I have no idea
> what the problem might be. I mean, if internal macros work fine, then
> that suggests that PHPTAL is half-working. But the external ones, they
> just ...  don't do anything :-S All rather frustrating.

then its more likely you macro does some tal:condition right at the
beginning and therefor simply does not get executed? do you use some
kind of tal:block="" syntax there?

you could try to call the macro with the file name prefixed but from the
current file. e.g:

test.xhtml:


hello world



-- 
cu


pgpZKEw1jwy9D.pgp
Description: PGP signature
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Pete Loggie
No, I don't get any error messages... All that happens is the external  
macro isn't displayed. It's such a basic issue, that I have no idea  
what the problem might be. I mean, if internal macros work fine, then  
that suggests that PHPTAL is half-working. But the external ones, they  
just ... don't do anything :-S All rather frustrating.



On 16 Jan 2009, at 13:37, Christoph Frick wrote:


On Fri, Jan 16, 2009 at 01:31:19PM -0200, Pete Loggie wrote:


Any ideas what the problem is? The code I'm using is below. The
"internal" macro is displayed, but the "external" macro isn't:


do you get an error message? if not what happens instead?

i use lots of macros and all works out fine also with more than one
path to look for them.

--
cu
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Christoph Frick
On Fri, Jan 16, 2009 at 01:31:19PM -0200, Pete Loggie wrote:

> Any ideas what the problem is? The code I'm using is below. The
> "internal" macro is displayed, but the "external" macro isn't:

do you get an error message? if not what happens instead?

i use lots of macros and all works out fine also with more than one
path to look for them.

-- 
cu


pgpu64KfYVNlg.pgp
Description: PGP signature
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Pete Loggie
I'd love it if someone could shed some light on my really basic  
problem. It's prevented me from doing anything with PHPTAL: I'm using  
Smarty instead


I have a problem with external macros. I can define a macro and use it  
within the same file no problem. But when I put the macro in a  
different file, and then refer to it as explained in the PHPTAL manual  
(i.e. ), it simply doesn't  
work.


The file that contains the external macro is in the same directory, so  
I see no need to specify the file path. That said, it won't work even  
if I specify the file path.


Any ideas what the problem is? The code I'm using is below. The  
"internal" macro is displayed, but the "external" macro isn't:


macro.html



This is the external macro




page.html


This is the internal macro









On 16 Jan 2009, at 13:19, Levi Stanley wrote:




From: Levi Stanley 
Date: 16 January 2009 13:19:07 GMT-02:00
To: Template Attribute Language for PHP 
Subject: Re: [PHPTAL] PHPTAL Tutorials


Actually, would like to see how a lot of people are using macros.  I  
would image, my way of using them, leaves much of their  
functionality unused.


bart josnos wrote:


Hey,

I am trying to learn how to create the macro file for PHPTAL.  
Anyone know of any good tutorials or tips that can help me out?

Unfortunetly, Google does not have any good results.

Windows Live™: Keep your life in sync. Check it out.
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal





___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Levi Stanley

--- Begin Message ---
Actually, would like to see how a lot of people are using macros.  I
would image, my way of using them, leaves much of their functionality
unused.

bart josnos wrote:
> Hey,
>  
> I am trying to learn how to create the macro file for PHPTAL. Anyone
> know of any good tutorials or tips that can help me out?
> Unfortunetly, Google does not have any good results.
>
> 
> Windows Live™: Keep your life in sync. Check it out.
> 
>
> 
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>   

--- End Message ---
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[Fwd: Re: [PHPTAL] PHPTAL Tutorials]

2009-01-16 Thread Levi Stanley

--- Begin Message ---
Actually, would like to see how a lot of people are using macros.  I
would image, my way of using them, leaves much of their functionality
unused.

bart josnos wrote:
> Hey,
>  
> I am trying to learn how to create the macro file for PHPTAL. Anyone
> know of any good tutorials or tips that can help me out?
> Unfortunetly, Google does not have any good results.
>
> 
> Windows Live™: Keep your life in sync. Check it out.
> 
>
> 
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>   

--- End Message ---
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] PHPTAL Tutorials

2009-01-16 Thread Alister Cameron
It's a fair point, though, that there are no real "tutorials" for PHPTAL, or
any note.

No videos, no step-by-steps, etc.

The manual is very bare for people who like examples and to be stepped thru
things.

It's something I will address to a point with docco I create for my Vanilla
WP theme... as soon as I can get around to it!!

-Alister

On Fri, Jan 16, 2009 at 6:56 PM, admirau  wrote:

> W dniu 2009-01-16 02:23, bart josnos pisze:
>
>> Hey,
>>
>> I am trying to learn how to create the macro file for PHPTAL. Anyone know
>> of any good tutorials or tips that can help me out?
>> Unfortunetly, Google does not have any good results.
>>
> Macros are the same files like other PHPTAL templates - just valid XML
> files.
> Everything you need is in the manual:
> http://phptal.motion-twin.com/manual/en/#metal
>
> --
> regards
> takeshin
>
> p.s. the magic keywords for Google are: macro site:phptal.motion-twin.com
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>



-- 
Alister Cameron
Managing Director
Cameron Creative Pty Ltd
www.cameroncreative.com

Creative, Strategic, Innovative... never boring!
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] PHPTAL Tutorials

2009-01-16 Thread admirau

W dniu 2009-01-16 02:23, bart josnos pisze:

Hey,

I am trying to learn how to create the macro file for PHPTAL. Anyone 
know of any good tutorials or tips that can help me out?

Unfortunetly, Google does not have any good results.
Macros are the same files like other PHPTAL templates - just valid XML 
files.

Everything you need is in the manual:
http://phptal.motion-twin.com/manual/en/#metal

--
regards
takeshin

p.s. the magic keywords for Google are: macro site:phptal.motion-twin.com

___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] PHPTAL Tutorials

2009-01-15 Thread bart josnos

Hey,
 
I am trying to learn how to create the macro file for PHPTAL. Anyone know of 
any good tutorials or tips that can help me out? 
Unfortunetly, Google does not have any good results.
_
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal