Hello,
I want to have different pagination conditions for different functions
in my controller.
For example:
function index()
{
$criteria = nodeType LIKE 'Blog';
$data = $this-Blog-paginate($criteria);
$this-set('data',$data);
}
function myBlogs()
{
In a company like that I would try to convince them of the increased
development speed.
Show them the stuff with the form helpers, and the save() method on
objects and stuff like that.
Try to make them realise that CakePHP will drasticly reduce
development time, but in the mean time to still
to just give me a hierarchal array like that.
If that's possible, I'd certainly prefer it, but might need a couple
pointers.
Thanks much,
AJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
'));
...and in my layout:
echo $tree-generate($navContent);
And I'm getting these errors:
Undefined variable: node [CORE/app/views/helpers/tree.php, line 65]
Undefined variable: itemReturn [CORE/app/views/helpers/tree.php, line
65]
AJ
--~--~-~--~~~---~--~~
You received
The code does not know the name of the model (array key) to loop on,
look at the example usage in the comments (you need to pass something
in the 2nd parameter)
PS. there /is/ a typo $itemReturn should just be $return.
Both changed, but still getting the $node error. Where is that
variable
Ah, $node should also be $return. It works now! The ul and li
structure doesn't seem to be building quite right, but that's the
least of my worries now. I'm sure I can figure that out.
Thanks again!
AJ
http://atlantajones.com
--~--~-~--~~~---~--~~
You received
Trying to bump this a bit. Either nobody saw it, or maybe a solution
isn't all that obvious?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Chris,
Thanks for the response. Actually that made a lot of sense.
Unfortunately I was already in debug mode 2.
I tried setting it to every other value and even deleted the cache
file. Same result. And again, I checked the SQL output and it runs
fine by itself.
Open to other ideas :)
AJ
Content.section_id IS NOT NULL
But a condition like this returns absolutely nothing:
Content.section_id = 1
...even though I can take the generated SQL and it returns the
appropriate pages.
AJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed
-generating is an idea, but then I've got to write
it on a post-it (or my hand) until I pick it up. Again, defeating its
purpose.
AJ
On Dec 3, 9:45 am, Jon Bennett [EMAIL PROTECTED] wrote:
Just launched an extremely basic web app using the 1.2 alpha. It's
called ClipRunner and basically served
NO conditions (or even 1 = 1), it populates the
array with all pages. And no other conditions work, no matter what
fields I try to match.
I'm really stuck as this makes no sense whatsoever and I *seem* to be
doing it right. could this be a bug that has been resolved in the pre-
beta?
Thanks in advance!
AJ
Just launched an extremely basic web app using the 1.2 alpha. It's
called ClipRunner and basically served my own need of getting basic
text data from one computer to another.
http://www.cliprunner.com
Comments welcome!
--~--~-~--~~~---~--~~
You received this
Great article that's really helped me a lot, thank you.
However, I'm still having a block on ACL that I can't find answers
for. So in your basic example, you can easily allow/deny access to
'posts' as a whole. However, if each post is an ACO, how do you query
the database to only show records
Great article that's really helped me a lot, thank you.
However, I'm still having a block on ACL that I can't find answers
for. So in your basic example, you can easily allow/deny access to
'posts' as a whole. However, if each post is an ACO, how do you query
the database to only show records
specific (with actual code) on how to accomplish this?
Many thanks in advance.
AJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
15 matches
Mail list logo