Log message #109329

# At Username Text
# Aug 7th 2008, 09:52 TommyO your views are whatever format you want. make them xml instead of html. cake even gives you the tools to know the difference and start the magic
# Aug 7th 2008, 09:52 moelee how do you make the aro reflect the parent_id of a group?
# Aug 7th 2008, 09:52 Lemon|work but in the future we will also create desktop clients that connect to the server
# Aug 7th 2008, 09:52 TommyO yes, of course
# Aug 7th 2008, 09:52 Lemon|work without modifying core code
# Aug 7th 2008, 09:51 Lemon|work but would it be easy
# Aug 7th 2008, 09:51 Lemon|work well its always possible
# Aug 7th 2008, 09:51 TommyO Lemon|work: are you answering your own question? :)
# Aug 7th 2008, 09:51 Lemon|work and i can get all view related stuff from my application remotely
# Aug 7th 2008, 09:50 Lemon|work just do all the calls with .xml on the end
# Aug 7th 2008, 09:50 Lemon|work lets say you want to create a java based desktop application for your web application
# Aug 7th 2008, 09:50 Lemon|work Would it be possible to create "client side views"
# Aug 7th 2008, 09:50 TommyO as long as you have the proper security features in place, that is :)
# Aug 7th 2008, 09:50 moelee word
# Aug 7th 2008, 09:49 Eddie_CRO but that is some predefined values (vars from post/get, ...). You are suggesting that i can use this var to do, for example, $params["my_param"] = 'my_value' and will work. yes?
# Aug 7th 2008, 09:49 TommyO yeah. really flexible. and if you give the params names in a url it gives more clues to the user as to what the url means. allowing them to tweak a url to get what they want is imho a great usability feature
# Aug 7th 2008, 09:49 stevieboy this might help some
# Aug 7th 2008, 09:49 stevieboy http://debuggable.com/posts/new-router-goodies:480f4dd6-4d40-4405-908d-4cd7cbdd56cb
# Aug 7th 2008, 09:48 moelee neat
# Aug 7th 2008, 09:48 moelee ah k
# Aug 7th 2008, 09:48 TommyO moelee: cake finds things in the url like param:value and puts them in a 'special place'. this allows for out-of-order param passing, and missing pieces, etc
# Aug 7th 2008, 09:48 moelee ah
# Aug 7th 2008, 09:48 Eddie_CRO yes i see it now, i somehow missed this page: http://book.cakephp.org/view/55/the-parameters-attribute-param
# Aug 7th 2008, 09:47 moelee i haven't had to deal with multiple params via url passing, but it would be good to know for reference
# Aug 7th 2008, 09:47 TommyO Eddie_CRO: a session in http-land is a number of requests and replies between a particular client and the server, $params is defined on a per-request level, not a per-session level
# Aug 7th 2008, 09:47 stevieboy nope, it's empty
# Aug 7th 2008, 09:46 moelee TommyO can you explain named params
# Aug 7th 2008, 09:46 stevieboy i'll try anyway
# Aug 7th 2008, 09:45 TommyO at least I don't think so :)
# Aug 7th 2008, 09:45 TommyO stevieboy: no
# Aug 7th 2008, 09:45 stevieboy as param?
# Aug 7th 2008, 09:45 stevieboy can i add it there too?
# Aug 7th 2008, 09:45 stevieboy TommyO: i need to use it in the beforefilter
# Aug 7th 2008, 09:45 Eddie_CRO )
# Aug 7th 2008, 09:45 TommyO is a good way
# Aug 7th 2008, 09:45 TommyO stevieboy: function action($id = null) {
# Aug 7th 2008, 09:45 Eddie_CRO explain.
# Aug 7th 2008, 09:44 TommyO ummm... in a request. Session has a specific definition
# Aug 7th 2008, 09:44 stevieboy TommyO: well.... so i use the only and right way using $this->params['pass'][0]
# Aug 7th 2008, 09:44 Eddie_CRO so i guess $params var is always passed in a session?
# Aug 7th 2008, 09:43 Eddie_CRO yes, i noticed it :D