01.21
php
saved
kain
Note
I need to keep a level of recursion no more than 2, because otherwise I need to unBindModel too much. I know there's a function that unBindModelExcept anyway I'm not going to use it since it caused me trouble in this case.
TopicLastPostAuthor is not a declared model, so bindModel should work just nice, but I think it doesn't work because of the level of recursion, too low.
I need to obtain the [TopicLastPost][TopicLastPostAuthor] array.
I need to keep a level of recursion no more than 2, because otherwise I need to unBindModel too much. I know there's a function that unBindModelExcept anyway I'm not going to use it since it caused me trouble in this case.
TopicLastPostAuthor is not a declared model, so bindModel should work just nice, but I think it doesn't work because of the level of recursion, too low.
I need to obtain the [TopicLastPost][TopicLastPostAuthor] array.
- function view($forum_url) {
- $this->Forum->recursive = 2;
- $this->paginate = array('limit' => $data[0]['Forum']['topics_per_page'], 'order' => 'Forum.created ASC');
- } else {
- $this->redirect('/forum', 404, true);
- }
- }
- (
- (
- [id] => 2
- [forum_category_id] => 1
- [parent_id] => 0
- [forum_post_id] => 1
- [name] => C and C++
- [description] => The most common programming languages.
- [url] => c_and_c_plus_plus
- [topics] => 1
- [posts] => 1
- [order] => 0
- [topics_per_page] => 20
- )
- (
- [id] =>
- [forum_category_id] =>
- [parent_id] =>
- [forum_post_id] =>
- [name] =>
- [description] =>
- [url] =>
- [topics] =>
- [posts] =>
- [order] =>
- [topics_per_page] =>
- )
- (
- [id] => 1
- [name] => Software Development
- [order] => 0
- [url] => software_development
- )
- (
- )
- (
- (
- [id] => 1
- [forum_id] => 2
- [forum_post_id] => 1
- [forum_topic_state_id] => 1
- [user_id] => 1
- [title] => Il mio primo topic
- [url] => il_mio_primo_topic
- [created] => 2007-01-21 00:00:00
- [reads] => 2
- [replies] => 0
- [notification] => 1
- [sticky] => 0
- (
- [id] => 1
- [parent_id] => 0
- [forum_topic_id] => 1
- [forum_id] => 2
- [user_id] => 1
- [title] => Il mio primo topic
- [body] => Questo è il mio primo topic.. sarà una lunga giornata
- [created] => 2007-01-21 07:02:38
- [ip_address] => 127.0.01
- )
- (
- [id] => 1
- [name] => PUBLISHED
- )
- (
- [id] => 1
- [user_state_id] => 1
- [user_group_id] => 1
- [language_id] => 1
- [username] => kain
- [password] => d65be92f2d6db01d4517636b3cbbf6e9
- [email] => claudio@kuht.it
- [created] => 2006-12-17 23:55:39
- [modified] => 2007-01-21 03:07:18
- [hashcode] => 8yxplajn61209vbgomf7
- [email_token] => of0jv4kb2dct1386nig5
- [realname] => Claudio Poli
- [location] => Milano
- [interests] =>
- [occupation] =>
- [url] => http://www.icoretech.org
- [bio] => Sistemista e programmatore
- [birthday] => 1982-10-29 00:00:00
- [signature] => Claudio "kain" Poli
- iCoreTech CEO
- [license] => Creative Commons
- [avatar] =>
- [im_icq] =>
- [im_aim] =>
- [im_yim] =>
- [im_msn] =>
- [im_jabber] =>
- [im_skype] =>
- [show_realname] => 1
- [show_contact_info] => 1
- [show_signature] => 1
- [ip_address] => 127.0.0.1
- [enable_profile] => 1
- [enable_notifications] => 1
- )
- )
- )
- )
Parsed in 0.204 seconds, using GeSHi 1.0.7.14