thanks for all your hints.
as i really like xajax i have already installed Cakex.

the reason why i create this html-code inside the controller is, that
i have a Navigation with "Add User" which is available on each page.
As soon as i click on it, i render the html code inside <div
id="addUser"></div>

- i want to have only ONE code logic for addUser, thats why i use
innerHTML to add the html code within the addUser-div only if its
necessary.

 Should be available for each view:
  <div id="addUser"><form>...</form></div>

 - i dont wanna add this div with the form logic inside each view.


- Do you consider using the requestAction and creating a addUser.thml
inside /views/elements?
- Or is it better to create "addUser" plugin (like the cakex examples)

thanks

pete



On Jun 19, 1:29 am, "jitka (poLK)" <[EMAIL PROTECTED]> wrote:
> Well, not everything what is possible is automatically right.
>
> My propose is NOT keep any html content in controller - it is work for
> view. You're imho looking for
>
> <?php echo $cakex->link('Add new item', '/phases/formAdd/',
> array('update' => 'add')); ?>
>
> BTW: xajax is a great library, but it is aiming to people without php
> framework, as it does dispatching, basic sanitize etc. One of reasons
> why was CakeX written and published is: take some people from xajax
> community to CakePHP world ;)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to