> I think this problem can be solved by either:
> 1- Change the .htaccess file to redirect all php.tpl files instead of all
> .tpl files. This way only php enabled templates bare the wrapper overhead.
This is a good solution for now. There will be a problem for campsite 2.2.0
users who want to use the "short names" type of URL. Example:
http://[site_name]/en/15/2/1472
Where en is the language code, 15 - issue number, 2 - section number, 1472 -
article number.
As you can see there is no tpl extension! Don't know how we can solve the
problem for this URL type.
> 2- Add php code tags to the parser.
No way; I have two reasons for this:
1. We're trying to get rid of the C++ parser and replace it with a PHP one.
Once we do that all these problems will be solved, no need for a PHP wrapper.
2. This would mean extra development time and resources at this time when we
have a busy schedule and we're trying to advance Campsite. This would only
postpone the fixing of all these problems through a more elegant solution.
3. It would be very slow because the parser would have to run the PHP CLI
(Command Line Interface) interpreter twice for each template. Running CLI
commands is slows down the parser very much.
Regards,
Mugur
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
------------------------------------------
Posted to Phorum via PhorumMail
> > 2- Add php code tags to the parser.
> No way; I have two reasons for this:
Actually three
>
> 1. We're trying to get rid of the C++ parser and replace it with a PHP one.
> Once we do that all these problems will be solved, no need for a PHP wrapper.
> 2. This would mean extra development time and resources at this time when we
> have a busy schedule and we're trying to advance Campsite. This would only
> postpone the fixing of all these problems through a more elegant solution.
> 3. It would be very slow because the parser would have to run the PHP CLI
> (Command Line Interface) interpreter twice for each template. Running CLI
> commands is slows down the parser very much.
>
> Regards,
> Mugur
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>