Page 12 of 36,922, showing 100 records out of 3,692,143 total, starting on record 1,101, ending on 1,200
# | Username | Text | |
---|---|---|---|
# | Aug 6th 2008, 22:13 | cobol | nah |
# | Aug 6th 2008, 22:14 | cobol | that would violate convention, actually |
# | Aug 6th 2008, 22:14 | nymacro | that way when you iterate over $array['Post'] it would have the same behaviour |
# | Aug 6th 2008, 22:14 | cobol | it would break saves |
# | Aug 6th 2008, 22:14 | nymacro | Oh well |
# | Aug 6th 2008, 22:14 | cobol | if thats the biggest problem you're having |
# | Aug 6th 2008, 22:14 | cobol | seriously |
# | Aug 6th 2008, 22:14 | cobol | shut it :P |
# | Aug 6th 2008, 22:14 | cobol | ;) |
# | Aug 6th 2008, 22:14 | nymacro | lol |
# | Aug 6th 2008, 22:14 | nymacro | It isn't really a problem. Was just interested if there was a better way to do it :P |
# | Aug 6th 2008, 22:15 | nymacro | I'm like that. You know. Lazy |
# | Aug 6th 2008, 22:15 | cobol | good programmers always are |
# | Aug 6th 2008, 22:21 | Jezek | how can i cache an array |
# | Aug 6th 2008, 22:28 | poluta1 | can somebody explain to me..? what is convention over configuration ? owwhh... silly question.. :( sorry |
# | Aug 6th 2008, 22:28 | Hedz | example of convetions is tables names |
# | Aug 6th 2008, 22:28 | Hedz | all table names must be plural |
# | Aug 6th 2008, 22:28 | Hedz | so you dont need to configure it... its convention |
# | Aug 6th 2008, 22:29 | moelee | umm |
# | Aug 6th 2008, 22:29 | moelee | cakephp relies on naming conventions |
# | Aug 6th 2008, 22:29 | cobol | poluta1: it basically means that you dont need to explicitly state things because there is a standard way of expressin them already |
# | Aug 6th 2008, 22:29 | moelee | to make connections between tables and models |
# | Aug 6th 2008, 22:29 | moelee | well that's just one example |
# | Aug 6th 2008, 22:30 | cobol | i.e. to store objects of type 'Food', you create a table called 'Foods' with a controller called 'Foods Controller', and you can access related objects called food 'Bins' by having a key named 'bin_id' |
# | Aug 6th 2008, 22:30 | cobol | so it's a naming convention aided by camelcasing |
# | Aug 6th 2008, 22:30 | cobol | that makes everything automagic, for the most part |
# | Aug 6th 2008, 22:30 | cobol | does that make sense? |
# | Aug 6th 2008, 22:34 | stabb | oh hey |
# | Aug 6th 2008, 22:34 | crux | hai |
# | Aug 6th 2008, 22:34 | stabb | hai |
# | Aug 6th 2008, 22:36 | poluta1 | Hedz, cobol, moelee : thank you.. yes.. i understand now... |
# | Aug 6th 2008, 22:37 | cobol | makes a ton of sense, doesnt it? :) |
# | Aug 6th 2008, 22:37 | poluta1 | yeaa |
# | Aug 6th 2008, 22:38 | poluta1 | configuring a thing using standardized rules |
# | Aug 6th 2008, 22:45 | moelee | the wikipedia entry is kinda abstract |
# | Aug 6th 2008, 22:45 | moelee | wasn't until i started actually setting up cakephp and coding did it really sink in |
# | Aug 6th 2008, 22:46 | cobol | its not a new concept or anything, but it's ben kind of rare in web frameworks |
# | Aug 6th 2008, 22:46 | cobol | so its nice to see |
# | Aug 6th 2008, 22:46 | thestaff | somebody knows a good tutorial for modalbox ? |
# | Aug 6th 2008, 22:46 | thestaff | couldn't find a good one |
# | Aug 6th 2008, 22:46 | thestaff | i'd like to get something like this :http://modalbox-cakephp-demo.nerdnotes.org/customers/index/page:1/sort:first_name/direction:asc |
# | Aug 6th 2008, 22:52 | freebox | this function: foreach ($this->find('all') as $row) { $this->create(); $this->id = $row[$this->alias]['id']; $this->saveField('titulo', $row[$this->alias]['titulo']); } |
# | Aug 6th 2008, 22:52 | freebox | with 330.000 records |
# | Aug 6th 2008, 22:52 | freebox | is a pain |
# | Aug 6th 2008, 22:52 | thestaff | lol |
# | Aug 6th 2008, 22:53 | thestaff | freebox have you ever done modalbox stuff ? |
# | Aug 6th 2008, 22:53 | JeffEmbracedDC | I have several elements in my default layout that I always render. Those elements require some data be pulled and set by either my AppController or requestAction within the element itself... |
# | Aug 6th 2008, 22:54 | freebox | thestaff: uhm? sorry i dosent understan |
# | Aug 6th 2008, 22:54 | JeffEmbracedDC | right now I have $uses = array("Article", "User"); in my app controller to count for those items... |
# | Aug 6th 2008, 22:54 | JeffEmbracedDC | but in some cases (such as ajax requests) I don't need those models loaded. |
# | Aug 6th 2008, 22:54 | JeffEmbracedDC | What's the best way to do that kind of model management? |
# | Aug 6th 2008, 22:56 | freebox | thestaff: is nothing with js |
# | Aug 6th 2008, 22:56 | freebox | its for reset slugs |
# | Aug 6th 2008, 22:56 | julien_re_ | hi there |
# | Aug 6th 2008, 22:57 | thestaff | what do you use then ? |
# | Aug 6th 2008, 22:57 | julien_re_ | i have been using afterFind for a while, and I updated to last SVN, I had to change my generateList() to find('list') and my afterFind function is no longer called |
# | Aug 6th 2008, 22:57 | freebox | foreach ($this->find('all') as $row) { $this->create(); $this->id = $row[$this->alias]['id']; $this->saveField('titulo', $row[$this->alias]['titulo']); } |
# | Aug 6th 2008, 22:57 | freebox | this model function |
# | Aug 6th 2008, 22:58 | thestaff | are you italian or spanish ? |
# | Aug 6th 2008, 22:58 | freebox | thestaff: brazilian |
# | Aug 6th 2008, 22:58 | thestaff | kool |
# | Aug 6th 2008, 22:58 | freebox | =) |
# | Aug 6th 2008, 22:58 | thestaff | i was kinda close |
# | Aug 6th 2008, 22:59 | freebox | yes |
# | Aug 6th 2008, 22:59 | freebox | thestaff: and u? |
# | Aug 6th 2008, 22:59 | thestaff | french |
# | Aug 6th 2008, 22:59 | thestaff | but i live in NYC |
# | Aug 6th 2008, 22:59 | freebox | cool |
# | Aug 6th 2008, 23:00 | stabb | ACTION is french |
# | Aug 6th 2008, 23:00 | freebox | i know only Argentina an Uruguay outside brazil |
# | Aug 6th 2008, 23:00 | chrysanthemum | whooo i just did the whoel blog tutorial and it worked |
# | Aug 6th 2008, 23:00 | chrysanthemum | im practically a cake expert now! |
# | Aug 6th 2008, 23:00 | freebox | \o/ |
# | Aug 6th 2008, 23:00 | freebox | cake ftw |
# | Aug 6th 2008, 23:01 | freebox | i hate kohana users |
# | Aug 6th 2008, 23:01 | freebox | LOL |
# | Aug 6th 2008, 23:02 | freebox | lol? |
# | Aug 6th 2008, 23:02 | chrysanthemum | haha jsut palyin around |
# | Aug 6th 2008, 23:03 | chrysanthemum | i love it |
# | Aug 6th 2008, 23:04 | freebox | CakeBot: mvc (Model-view-controller) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other. In MVC, the model represents the information (the data) of the applicati |
# | Aug 6th 2008, 23:04 | freebox | ( |
# | Aug 6th 2008, 23:04 | chrysanthemum | Cakebot was like... whoa too long -- i quit |
# | Aug 6th 2008, 23:05 | moelee | hah |
# | Aug 6th 2008, 23:05 | moelee | that is sweet |
# | Aug 6th 2008, 23:06 | poluta1 | hello.. why if i call model::save() the result is always updating ? |
# | Aug 6th 2008, 23:07 | poluta1 | i've call model::create() before |
# | Aug 6th 2008, 23:07 | poluta1 | $this->Listener->ArtistsFan->create(array('artist_id','fan_id')); |
# | Aug 6th 2008, 23:07 | poluta1 | $this->Listener->ArtistsFan->save(array('artist_id' => $artist_id, 'fan_id' => $listener_id)) |
# | Aug 6th 2008, 23:07 | benni | Hi there... shouldn't $this->RequestHandler->respondAs('xml'); force giving back the action as xml? It doesn't work for me... any ideas? (It's the first time I try this - I actually just created a view with xmlish tags and added the line above to the action...) |
# | Aug 6th 2008, 23:07 | freebox | somebody know an issue with sluggable and duplicated slugs? |
# | Aug 6th 2008, 23:07 | moelee | polutal: are you saving right after you create? |
# | Aug 6th 2008, 23:08 | poluta1 | moelee: yes |
# | Aug 6th 2008, 23:08 | moelee | hmm |
# | Aug 6th 2008, 23:09 | julien_re_ | what's the best way to use aggregate functions in Cake ? |
# | Aug 6th 2008, 23:09 | moelee | have you tried explicitly setting the id = null |
# | Aug 6th 2008, 23:09 | moelee | $this->Listener->ArtistsFan=>id = null |
# | Aug 6th 2008, 23:09 | poluta1 | moelee: http://bin.cakephp.org/view/1230609567 |
# | Aug 6th 2008, 23:09 | julien_re_ | i'd like to add extra columns to my list view, which columns should come from aggregate functions |
# | Aug 6th 2008, 23:09 | poluta1 | id = null ? umm.. ok i try |
# | Aug 6th 2008, 23:10 | moelee | try doing that before you save |