Log message #110950

# At Username Text
# Aug 8th 2008, 03:22 the_mak can any give me a site where i can learn to make simple site for learning... i mean how to work with the cake.
# Aug 8th 2008, 03:21 pgcd alkemann: i guess you can - i'm using actsas('containable') and it seems to work
# Aug 8th 2008, 02:54 alkemann cant add actsAs to AppModel?
# Aug 8th 2008, 02:44 sembry no answer for my question ? :s
# Aug 8th 2008, 02:40 sembry u're welcome !
# Aug 8th 2008, 02:39 Bobby sweeeet thank you!
# Aug 8th 2008, 02:39 sembry $this->viewVars in your controller :)
# Aug 8th 2008, 02:38 Bobby hello all, is there a way to access variables already set for the view, but within the controller?
# Aug 8th 2008, 02:37 sembry i've tried to define routes with #something , but i think it's not interpreted by Router :s
# Aug 8th 2008, 02:37 sembry does somebody know if we can use anchors links to define routes with router ? example : i want www.example.com/search/#tab/list route on search controller, with param tab passed as if the user calls directly www.example.com/search/list (necessary for using browser history with ajax links)
# Aug 8th 2008, 02:34 sembry hi
# Aug 8th 2008, 02:17 pgcd alkemann: likewise
# Aug 8th 2008, 02:16 alkemann good morning
# Aug 8th 2008, 02:16 thestaff g'night all ;-)
# Aug 8th 2008, 02:02 pgcd good idea =)
# Aug 8th 2008, 02:02 mscdex yeah, i'm attempting to use the console first heh
# Aug 8th 2008, 02:01 pgcd mscdex: make sure you use the correct HABTM declaration, though =)
# Aug 8th 2008, 02:01 mscdex thanks
# Aug 8th 2008, 02:01 mscdex ah ok, i'll try that out and see what happens
# Aug 8th 2008, 02:01 pgcd anybody here conversant with prototype, btw? I have a situation where document.viewport returns the wrong data...
# Aug 8th 2008, 02:00 pgcd mscdex: sorry, that HABTM declaration syntax was wrong, hope you know what i mean
# Aug 8th 2008, 01:58 pgcd i think that way you get the correct SQL (convention over configuration, etc)
# Aug 8th 2008, 01:57 pgcd dependency_id
# Aug 8th 2008, 01:57 pgcd and your second id should be simply
# Aug 8th 2008, 01:57 pgcd dependencies_packages
# Aug 8th 2008, 01:57 pgcd and your join table should be called
# Aug 8th 2008, 01:57 pgcd $hasAndBelongsToMany('Dependency'=>array('className'=>'Package'))
# Aug 8th 2008, 01:56 mscdex er packages rather
# Aug 8th 2008, 01:56 mscdex correct, they both point to records/ids located in Package
# Aug 8th 2008, 01:56 pgcd in that case, your model should read something like:
# Aug 8th 2008, 01:55 pgcd so package_dependencies is your 2-columns standard join table, except that both ids are related to one table, right?
# Aug 8th 2008, 01:54 mscdex i read through the docs and join tables were only mentioned in HABTM part
# Aug 8th 2008, 01:54 mscdex i do not know to be honest, i am still learning at this point
# Aug 8th 2008, 01:54 pgcd yeah you do, sorry
# Aug 8th 2008, 01:53 pgcd are you sure you need a HABTM, tho?
# Aug 8th 2008, 01:53 pgcd so as to basically use different foreign keys and aliases for the same table
# Aug 8th 2008, 01:52 pgcd well, not really - try the way i suggested
# Aug 8th 2008, 01:52 mscdex it's a package management system basically, so i need to keep track of dependency packages
# Aug 8th 2008, 01:52 pgcd mscdex: oh, ok, that's different then
# Aug 8th 2008, 01:51 mscdex if that helps any
# Aug 8th 2008, 01:51 mscdex and both of those id's would point to records in Package