hi
i dont know how to do it with cakephp
Currently i have the following code :
<div id="menu">
<?php tpl::bloc('menu');?>
<?php tpl::bloc('active_topics');?>
<?php tpl::bloc('login');?>
[...]
</div>
the class tpl and bloc method looks like this
class tpl
{
function bloc($bloc)
{
if (is_callable($func))
call_user_func($func);
}
}
and the function "login" looks like this :
function login()
{
?>
<form method="post" action="<?php echo
pt_portal_url ?>">
<div class="inform">
<input type="hidden"
name="login" value="1" />
<input type="hidden"
name="redirect_url" value="<?php echo
$_SERVER['REQUEST_URI'] ?>" />
<p class="field"><label
for="req_username"><?php echo
__('Username') ?></label>
<input type="text"
name="req_username" id="req_username"
size="13" maxlength="25" /></p>
<p class="field"><label
for="req_password"><?php echo
__('Password') ?></label>
<input type="password"
name="req_password" id="req_password"
size="13" maxlength="16" /></p>
<p><input type="submit"
class="submit" value="<?php echo
__('Login') ?>" /></p>
</div>
</form>
<p><a href="<?php echo pt_forum_url;
?>register.php"><?php echo
__('Not registered') ?></a><br />
<a href="<?php echo pt_forum_url;
?>login.php?action=forget"><?
php echo __('Forgotten pass') ?></a></p>
<?php
}
}
where do i have to put what and where to "migrate" this code is a
CakePHP "version" ?
kind Regards.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---