Home > Archive > PHP Pear > May 2007 > Some questions about HTML Template Flexy
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Some questions about HTML Template Flexy
|
|
| Uri Even-Chen 2007-05-14, 8:01 am |
| Hi people,
I'm new to Seagull and Flexy. I'm trying to fix a project another
programmer started. I have 2 problems right now:
1. How do I add parameters to the URL? I tried to add a "page"
parameter, by appending "/page/{page number}" (such as "/page/3") to
the URL. The original URL looks like
"my.domain.name/index.php/dream/dream/action/cat/?DREAMS=2cd73545e5191345d5143dcbdf20e4fa&/1/id/12",
and with my page number it is
"my.domain.name/index.php/dream/dream/action/cat/?DREAMS=2cd73545e5191345d5143dcbdf20e4fa&/1/id/12/page/3",
but when I have function _cat(&$input, &$output), $input->page is
still null.
2. in the template, {if:pages} works fine, but {if:pages[#previous
page#]} does not. I receive a parse error. How do I check if an
array element exists?
Thanks!
Uri Even-Chen
| |
| Uri Even-Chen 2007-05-14, 8:01 am |
| > 1. How do I add parameters to the URL? I tried to add a "page"
> parameter, by appending "/page/{page number}" (such as "/page/3") to
> the URL. The original URL looks like
> "my.domain.name/index.php/dream/dream/action/cat/?DREAMS=2cd73545e5191345d5143dcbdf20e4fa&/1/id/12",
> and with my page number it is
> "my.domain.name/index.php/dream/dream/action/cat/?DREAMS=2cd73545e5191345d5143dcbdf20e4fa&/1/id/12/page/3",
> but when I have function _cat(&$input, &$output), $input->page is
> still null.
OK. This problem is solved now. I was not aware of the function
validate($req, &$input). I needed to add $input->page =
$req->get('page');
Uri.
| |
| Alan Knowles 2007-05-14, 7:02 pm |
| Uri Even-Chen wrote:
> Hi people,
>
> I'm new to Seagull and Flexy. I'm trying to fix a project another
> programmer started. I have 2 problems right now:
>
>
> 2. in the template, {if:pages} works fine, but {if:pages[#previous
> page#]} does not. I receive a parse error. How do I check if an
> array element exists?
I cant remember if it supports that. - it may support
if:pages[previous_page], but using objects rather than arrays - will
defiantly work. = {if:pages.previous_page}
Regards
Alan
>
> Thanks!
> Uri Even-Chen
| |
| Uri Even-Chen 2007-05-14, 7:02 pm |
| On 5/14/07, Alan Knowles <alan@akbkhome.com> wrote:
> I cant remember if it supports that. - it may support
> if:pages[previous_page], but using objects rather than arrays - will
> defiantly work. = {if:pages.previous_page}
Thanks!
Uri.
|
|
|
|
|