# |
Sep 12th 2009, 22:20 |
jjwdesign |
I guess I need to do it in the controller action. |
# |
Sep 12th 2009, 22:20 |
savant |
you can merge it into the params INSIDE the admin_index action |
# |
Sep 12th 2009, 22:20 |
jjwdesign |
I just don't know how to override the paginating in the admin_index controller. |
# |
Sep 12th 2009, 22:19 |
jjwdesign |
The session info is storing the users sorting/search info. |
# |
Sep 12th 2009, 22:19 |
jjwdesign |
The session, auth, acl are all working ok. |
# |
Sep 12th 2009, 22:19 |
jjwdesign |
admin_index, etc. etc. |
# |
Sep 12th 2009, 22:19 |
jjwdesign |
The settings are stored in the Session info (auth and acl are used too). |
# |
Sep 12th 2009, 22:18 |
savant |
so you have an admin_controller.php or something? |
# |
Sep 12th 2009, 22:18 |
jjwdesign |
Many different sections... etc... many different settings.... |
# |
Sep 12th 2009, 22:18 |
jjwdesign |
Many models. |
# |
Sep 12th 2009, 22:18 |
jjwdesign |
well... I have an admin area |
# |
Sep 12th 2009, 22:18 |
savant |
what are you attempting to do? |
# |
Sep 12th 2009, 22:18 |
jjwdesign |
Maybe with a beforeFilter()? |
# |
Sep 12th 2009, 22:18 |
savant |
you could merge them into the paginate settings |
# |
Sep 12th 2009, 22:17 |
jjwdesign |
Can I override the paginating sorting settings using $params? |
# |
Sep 12th 2009, 22:16 |
jjwdesign |
anyone awake... pagnating question... |
# |
Sep 12th 2009, 21:52 |
urbinati |
how do I delete data from a model using the console bake cake? I can only list and create records |
# |
Sep 12th 2009, 21:27 |
jjwdesign |
!sessions |
# |
Sep 12th 2009, 21:27 |
jjwdesign |
!session |
# |
Sep 12th 2009, 21:15 |
markstory |
well if the meta data is in the database it probably has a model, so I would treat it like any other model data. |
# |
Sep 12th 2009, 21:14 |
mattalexx |
markstory, I agree. But I also think that the conventions are there for a reason. I don't like to break those conventions without a real consideration because it sometime backfires later on down the road, when its more time-consuming to fix. |
# |
Sep 12th 2009, 21:10 |
markstory |
Well I think there are lots of ways to solve problems. A different approach doesn't imply one is better than the other, it depends on whether the solution solves the problem. |
# |
Sep 12th 2009, 21:07 |
mattalexx |
markstory, If you're not being facetious, thank you. I have seen some great advice from you on this channel and I value your input. |
# |
Sep 12th 2009, 21:05 |
mattalexx |
lol |
# |
Sep 12th 2009, 21:05 |
markstory |
you're smart enough to decide if its right for what you need. |
# |
Sep 12th 2009, 21:05 |
markstory |
I didn't read it. |
# |
Sep 12th 2009, 21:05 |
mattalexx |
markstory, What do you think? Rabbit hole? |
# |
Sep 12th 2009, 21:04 |
markstory |
ok |
# |
Sep 12th 2009, 21:04 |
mattalexx |
markstory, I think I might do something like this: http://groups.google.com/group/cake-php/msg/38ce68ef9ae520ab |
# |
Sep 12th 2009, 21:00 |
mattalexx |
markstory, these things are going to be set from the database. So it seems like I need to set them in the controller,. |
# |
Sep 12th 2009, 21:00 |
markstory |
but if you want it more your way then go for it :) |
# |
Sep 12th 2009, 20:59 |
mattalexx |
k |
# |
Sep 12th 2009, 20:58 |
markstory |
not like you need to create or output html meta tags in json views. |
# |
Sep 12th 2009, 20:57 |
markstory |
but I usually do things like meta tags in the html views, as that is the only place they are really relevant. |
# |
Sep 12th 2009, 20:57 |
mattalexx |
... or rather, I want to do things more my way ;-) |
# |
Sep 12th 2009, 20:57 |
markstory |
well you don't really set helper variables in the controller really. You can pass things through viewVars with set() or put them in the params. |
# |
Sep 12th 2009, 20:57 |
markstory |
ok |
# |
Sep 12th 2009, 20:56 |
mattalexx |
markstory, I want more control than that. |
# |
Sep 12th 2009, 20:54 |
markstory |
what about the htmlHelper? |
# |
Sep 12th 2009, 20:53 |
mattalexx |
... seems like it would be overkill to write a plugin. |
# |
Sep 12th 2009, 20:53 |
mattalexx |
... or should it be something else other than a helper? |