in your case:
$this->layout = 'ajax';
$this->render( 'ajax_index' );
Ok, as I said above, I tried this. When I do, I get a "missing view"
error.
or simply
$this->render( 'ajax_index' , 'ajax' );
I tried this, too. Same error.
but remember... you must have ajax.thtml layout with only one line <?=
$content_for_layout?>
I have that file in my layouts directory. I'm not getting a missing
layout error, I'm getting a missing view error. For whatever reason,
it's not finding my 'ajax_index.thtml' file in my view/users directory.
and another thing... you can't just copy and paste index.thtml into
ajax_index.thtml because when you are updating <div id="updateme"> in
index.thtml it will update that div with the same view .. so you will
have ...<div id="updateme">... <div id="updateme">...</div> ...</div>...
I didn't copy and paste the entire contents of index.thtml. As I said
above, I just copied and pasted the *table* that displays the users.
All of the rest of it, the description of the page, instructions, etc,
are all still in index.thtml.
When the error dumps out, this is (an excerpt of) what I am getting:
[controller] => Users
[action] => ajax_index
[file] => /path/to/webroot/views/users/ajax_index.thtml
[userTheme] => Vtes
[userLoggedIn] => No
[userRole] => anon
And here is the contents of my /views/users directory:
add.thtml
ajax_index.thml
edit.thtml
index.thtml
login.thtml
remindpassword.thtml
view.thtml
thnx,
Christoph
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---