Page 3 of 36,922, showing 100 records out of 3,692,143 total, starting on record 201, ending on 300
# | Username | Text | |
---|---|---|---|
# | Aug 6th 2008, 15:18 | zlinux | thanks all |
# | Aug 6th 2008, 15:21 | Noise98 | Raphael: in your HABTM relationship, u have a unique field ? |
# | Aug 6th 2008, 15:22 | Raphael | tag_id and post_id are primary keys |
# | Aug 6th 2008, 15:22 | Raphael | so, both must be unique |
# | Aug 6th 2008, 15:22 | Noise98 | paste your Post Model |
# | Aug 6th 2008, 15:24 | zmonteca | quick question, i think. If you want to use $this->Auth->allow('method_name');...where does one put this? In the method you want to allow? In the view you want to allow? In the model? |
# | Aug 6th 2008, 15:24 | Raphael | http://bin.cakephp.org/view/191374837 |
# | Aug 6th 2008, 15:25 | altos | hey guys, quick question... why do instructions for integrating fckeditor tell people to use app/webroot/ instead of vendors? |
# | Aug 6th 2008, 15:25 | altos | what is the vendors folder even used for? |
# | Aug 6th 2008, 15:25 | ADmad | zmonteca: in beforeFilter |
# | Aug 6th 2008, 15:25 | altos | or "supposed" to be used for |
# | Aug 6th 2008, 15:25 | zmonteca | ADmad: thanks. is that the only place it'll work? |
# | Aug 6th 2008, 15:26 | TommyO | altos: fckEditor needs to be in public space because it is js. vendors is for third-party php stuff that should stay out of the public space |
# | Aug 6th 2008, 15:26 | Raphael | Noise98, thx for your help |
# | Aug 6th 2008, 15:26 | ADmad | zmonteca: yes... beforeFilter is executed before every action... so thats the only logical location |
# | Aug 6th 2008, 15:26 | TommyO | a browser should not be able to get to vendors |
# | Aug 6th 2008, 15:27 | Noise98 | Raphael: u don't have much in your hasAndBelongsToMany |
# | Aug 6th 2008, 15:27 | zmonteca | ADmad:cool. thanks. |
# | Aug 6th 2008, 15:27 | Noise98 | Raphael: i'm sorry I got to go right now, i'll be back in an hour |
# | Aug 6th 2008, 15:27 | TommyO | altos: but now 1.2 supports JS in vendors/js, so that works too and the tutorials should be updated |
# | Aug 6th 2008, 15:28 | altos | TommyO I just browsed to the webroot/js folder and noticed the vendors.php file |
# | Aug 6th 2008, 15:28 | TommyO | altos: hmm.. maybe that's only true of the shared vendors. it would be redundant for the app's vendors |
# | Aug 6th 2008, 15:28 | altos | looks like yeah it should work |
# | Aug 6th 2008, 15:28 | Swiatecki | anyone who can tell me how to change the layout/design of a cake page? right now its just the standard 1.2 layout |
# | Aug 6th 2008, 15:29 | TommyO | Swiatecki: did you browse the manual or do the blog tutorial at all? |
# | Aug 6th 2008, 15:29 | altos | TommyO I plan on using cakePHP to create a custom CMS for a client project... looks fantastic, I'm just worried about learning all the the quirks in time. |
# | Aug 6th 2008, 15:29 | ADmad | Swiatecki: create a default.ctp in app/views/layout |
# | Aug 6th 2008, 15:29 | Swiatecki | TommyO: yeah |
# | Aug 6th 2008, 15:32 | teknoid | altos: there's are lot resources available to get help, including this channel... |
# | Aug 6th 2008, 15:32 | teknoid | *lots of |
# | Aug 6th 2008, 15:32 | altos | teknoid... that's why i came here :-p |
# | Aug 6th 2008, 15:32 | Tom_M_ | any benefit to attaching behaviors on the fly in the controller? does it increase speed for other methods? |
# | Aug 6th 2008, 15:33 | Gnuget | hey, I try to show error message in my view but, i like the message appear in the before the label, not after to the input |
# | Aug 6th 2008, 15:33 | Gnuget | exits some form for do this? |
# | Aug 6th 2008, 15:33 | altos | I was interested in some cakePHP based CMS's already made, but they are far too limited. |
# | Aug 6th 2008, 15:33 | TommyO | altos: msny of them were started years back but never really finished, or never brought up to 1.2 grade |
# | Aug 6th 2008, 15:33 | altos | Yeah |
# | Aug 6th 2008, 15:34 | TommyO | ambitious early-adopters :) |
# | Aug 6th 2008, 15:34 | Tom_M_ | ) I'm working on media blog in 1.2 |
# | Aug 6th 2008, 15:34 | altos | I think one was done by a college student, probably as a PoC |
# | Aug 6th 2008, 15:34 | altos | not to imply i'm not a college student :-p |
# | Aug 6th 2008, 15:34 | Tom_M_ | which is turning out pretty kick ass. but i need to polish up and clean up |
# | Aug 6th 2008, 15:35 | altos | Yeah I <3 PHP and MVC (have a .net background) just glad someone made a framework that appeals to me. |
# | Aug 6th 2008, 15:35 | altos | **** RoR |
# | Aug 6th 2008, 15:35 | altos | er not someone |
# | Aug 6th 2008, 15:35 | Tom_M_ | http://cloud-9ine.com/ plug ;) |
# | Aug 6th 2008, 15:35 | altos | some community |
# | Aug 6th 2008, 15:35 | Swiatecki | where is the std. layout ctp file? (the file that is used when there isnt a default.ctp) |
# | Aug 6th 2008, 15:36 | Tom_M_ | Swiatecki - it should always go to default.ctp but if you dont have one in your /app its under /cake/libs |
# | Aug 6th 2008, 15:38 | Swiatecki | Tom_M_: and it would load /cake/libs/default.ctp? |
# | Aug 6th 2008, 15:38 | Tom_M_ | ... /cake/libs/view/layouts/default.ctp |
# | Aug 6th 2008, 15:39 | TommyO | Swiatecki: but since you never ever change anything in the core, editing that file would be a no-no |
# | Aug 6th 2008, 15:39 | Tom_M_ | don't alter that thought if you wanted to change default layout . copy it (any other things) from there and put in your respective /app location |
# | Aug 6th 2008, 15:39 | Tom_M_ | it'll override if present else default down |
# | Aug 6th 2008, 15:39 | Swiatecki | yeah ofc. just wanted to see how it was dreated |
# | Aug 6th 2008, 15:39 | Swiatecki | *created |
# | Aug 6th 2008, 15:39 | TommyO | Swiatecki: if you bake your app you'd get a copy in your new app's baked structure |
# | Aug 6th 2008, 15:39 | Tom_M_ | k |
# | Aug 6th 2008, 15:41 | TommyO | Swiatecki: an entire app dir structure exists in cake/console/libs/templates/skel which is what bake uses for its source |
# | Aug 6th 2008, 15:42 | Swiatecki | k, hmm gotta look at that bake stuff :p |
# | Aug 6th 2008, 15:43 | altos | well i'm out for today |
# | Aug 6th 2008, 15:43 | altos | thanks for the help guys |
# | Aug 6th 2008, 15:44 | Tom_M_ | bake is really good |
# | Aug 6th 2008, 15:44 | Tom_M_ | sadly i dont use it as much as i should |
# | Aug 6th 2008, 15:46 | achew22 | does anyone know where the datetime combo boxes gets combined into date format/ |
# | Aug 6th 2008, 15:46 | olof | ACL question here. When I insert an ARO that contains a . (for example cake acl create aro 'my.name@example.com') everything before the first period is treated as the modelname. How can I escape the periods? I tried \. which worked, but the \ was also written into the aro |
# | Aug 6th 2008, 15:47 | Raphael | If you find the answer, please let it here |
# | Aug 6th 2008, 15:48 | Raphael | I'll look at tomorrow in the morning |
# | Aug 6th 2008, 15:48 | Raphael | thanks in advance |
# | Aug 6th 2008, 15:52 | Swiatecki | Tom_M_: have i understood this correctly: you can somehow(bake?) create a copy of the std. cake dir for a new project? |
# | Aug 6th 2008, 15:53 | Tom_M_ | yea the bake script allows you to go through a console based wizard that asks a series of questions based on what it discovers in your database. it then makes some assumptions and depending on your db architecture, creates all the add/edit/delete/view pages and forms you'd need to get started |
# | Aug 6th 2008, 15:54 | Swiatecki | so i create a couple of tables and run the wizzard? |
# | Aug 6th 2008, 15:54 | Tom_M_ | yea |
# | Aug 6th 2008, 15:54 | Tom_M_ | provided that they follow cake's naming conventions of course |
# | Aug 6th 2008, 15:54 | bjn | Question (looked in the manual, sorry if I missed it): Does CakePHP require any particular PHP extensions to be compiled/enabled? |
# | Aug 6th 2008, 15:55 | Swiatecki | ofc |
# | Aug 6th 2008, 15:55 | Swiatecki | how would you do if you want to create a new project, you just want the files, but wil du the coding your self |
# | Aug 6th 2008, 15:56 | Swiatecki | Tom_M_ ^^ |
# | Aug 6th 2008, 15:57 | Tom_M_ | you create folders and files under your /app folder manually. i do it that way, slower .. but i also copy and paste from old projects since most my projects are similar it works out to be faster for me i think (than bake) |
# | Aug 6th 2008, 15:59 | cozby | is findAllByUserId deprecated? |
# | Aug 6th 2008, 15:59 | Swiatecki | Tom_M_: hmm okay |
# | Aug 6th 2008, 16:00 | TommyO | Tom_M_: Swiatecki: bake will generate a skeleton app for you too |
# | Aug 6th 2008, 16:01 | TommyO | creating all of your dirs and your basic pieces: AppController, AppModel, PagesController etc... |
# | Aug 6th 2008, 16:01 | cozby | can't find it in the manual but I use it |
# | Aug 6th 2008, 16:01 | TommyO | cozby: it's a Magic Method, in the manual it's simply called: findAllBy |
# | Aug 6th 2008, 16:01 | Swiatecki | hmm.. ive gotta learn to bake :p |
# | Aug 6th 2008, 16:02 | TommyO | cozby: and can be used by any field: findAllByFirstName() etc... |
# | Aug 6th 2008, 16:02 | cozby | TommyO: ah cool |
# | Aug 6th 2008, 16:02 | cozby | TommyO: so can I toss in a $recursive param to minimize my results? |
# | Aug 6th 2008, 16:02 | cozby | er I guess not |
# | Aug 6th 2008, 16:03 | cozby | don't know if its possible to control the return amount from a findby |
# | Aug 6th 2008, 16:03 | TommyO | cozby: check the manual, because I haven't used the magic methods in years - I love the new syntax of find() so I just always use that |
# | Aug 6th 2008, 16:03 | cozby | TommyO: cool, yeah the new find syntax IS sweet |
# | Aug 6th 2008, 16:04 | cozby | seriously this framework is nutters, I'm surprised the dev community hasn't jumped on it... (too busy with Rails I guess) |
# | Aug 6th 2008, 16:05 | Swiatecki | it will come? |
# | Aug 6th 2008, 16:05 | TommyO | Rails gets more press than production imho. Cake has a pretty solid following |
# | Aug 6th 2008, 16:06 | cozby | production? |
# | Aug 6th 2008, 16:06 | TommyO | by that I mean real, live, useable apps |
# | Aug 6th 2008, 16:07 | cozby | oh I see |
# | Aug 6th 2008, 16:07 | zeen | mmm cake |