> improvements to the bake script and prepares for the day when the
> controller object is not available in the view.
Stuff like
$this->modelNames[]
$this->params['controller']
will stay available ?
To avoid massive edits on changes and to have something like copy/paste
scaffolding :)
i use this for e.g. a generic add.html:
<?php
$here = '/'.$_REQUEST['url'];
$modelName = $this->modelNames[0];
$controllerName = $this->params['controller'];
?>
<?=$html->formTag($here)?>
<table>
<?=$this->renderElement($controllerName.'/mutate')?>
<tr><td> </td><td><?=$html->submit('Save')?></td></tr>
</table>
</form>
Albert
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---