Page 22 of 36,922, showing 100 records out of 3,692,143 total, starting on record 2,101, ending on 2,200
# | Username | Text | |
---|---|---|---|
# | Aug 7th 2008, 04:05 | TonkaTruck | Ohhh... |
# | Aug 7th 2008, 04:05 | achew22 | TonkaTruck: make sense? |
# | Aug 7th 2008, 04:05 | thestaff | stevieboy, not sure I understood |
# | Aug 7th 2008, 04:06 | poluta1 | Martz: can we access $this->AppModel ? |
# | Aug 7th 2008, 04:06 | TonkaTruck | achew22: I follow ya. I just wanted to try an element with requestAction. |
# | Aug 7th 2008, 04:06 | poluta1 | can we access $this->AppModel ? |
# | Aug 7th 2008, 04:06 | achew22 | TonkaTruck: the practice can be done in objects too, if you know you will need a function later but its not necessary yet then you put function nameOfFunction () {} and call it a day |
# | Aug 7th 2008, 04:06 | poluta1 | i put my public $captcha = null in my User model class |
# | Aug 7th 2008, 04:07 | stevieboy | thestaff: look at any page, right click on a headline or sth and then select "inspect element". firebug will open at the position where the headline is |
# | Aug 7th 2008, 04:07 | stevieboy | this will help if you try to debug forms or sth |
# | Aug 7th 2008, 04:07 | thestaff | kool |
# | Aug 7th 2008, 04:07 | Martz | poluta1: ok, so in your User Controller beforeFilter() { $this->User->captcha = $session->read();} |
# | Aug 7th 2008, 04:08 | Martz | poluta1: or whatever the correct syntax is for session |
# | Aug 7th 2008, 04:08 | poluta1 | Martz: i need a beforeFilter() ? |
# | Aug 7th 2008, 04:08 | thestaff | yeah for some reason there is no form in my thickbox |
# | Aug 7th 2008, 04:08 | poluta1 | owww i must call beforeFilter callback |
# | Aug 7th 2008, 04:09 | poluta1 | ok |
# | Aug 7th 2008, 04:09 | poluta1 | i try |
# | Aug 7th 2008, 04:09 | thestaff | achew22, it doesn't appear in the div either |
# | Aug 7th 2008, 04:10 | Djiize | hi all |
# | Aug 7th 2008, 04:10 | pgcd | stevieboy: ok, I see that it was working all along, but it wasn't returning what I expected... what's the proper way to deal with the array returned from HABTM associations? should I use foreach in the view, or are there neeater ways? (i need to have a kind of "group_concat()" result) |
# | Aug 7th 2008, 04:10 | TonkaTruck | I just got reverse routes to work...fancy. |
# | Aug 7th 2008, 04:10 | achew22 | thestaff: use firebug to inspect. Sorry I can't hold hands this time around |
# | Aug 7th 2008, 04:10 | achew22 | TonkaTruck: have you read the thing from Felix on reverse routes? |
# | Aug 7th 2008, 04:10 | thestaff | here is my view: http://bin.cakephp.org/view/1965344384 |
# | Aug 7th 2008, 04:10 | TonkaTruck | achew22: No. There's a really small bit about them in 3.4.5.4 in the book. |
# | Aug 7th 2008, 04:11 | thestaff | well I think I know where is the problem |
# | Aug 7th 2008, 04:11 | stevieboy | pgcd: there is a Set:: -class. maybe there is a good func |
# | Aug 7th 2008, 04:11 | thestaff | there is no form created |
# | Aug 7th 2008, 04:11 | stevieboy | thestaff: try to use debug() |
# | Aug 7th 2008, 04:11 | pgcd | stevieboy: thank you, i'll look into it |
# | Aug 7th 2008, 04:11 | achew22 | TonkaTruck: http://debuggable.com/posts/new-router-goodies:480f4dd6-4d40-4405-908d-4cd7cbdd56cb that is an awesome article from a GREAT resource. You should read everything he writes. I've only disagreed with him 1 time thus far and been a RSS reader for something like 8 months |
# | Aug 7th 2008, 04:12 | achew22 | TonkaTruck: in particular the static function url part, that is just amazing |
# | Aug 7th 2008, 04:12 | thestaff | debug() from where ? |
# | Aug 7th 2008, 04:12 | thestaff | cake or firebug ? |
# | Aug 7th 2008, 04:12 | stevieboy | thestaff: in cake |
# | Aug 7th 2008, 04:13 | stevieboy | thestaff: you got to figure out why the form istn inserted |
# | Aug 7th 2008, 04:13 | thestaff | might be this->element doens't like the htmland forms helpers |
# | Aug 7th 2008, 04:13 | achew22 | thanks stevieboy I owe you |
# | Aug 7th 2008, 04:14 | stevieboy | achew22: erm, for what exactly? |
# | Aug 7th 2008, 04:14 | stevieboy | oh, ok :) |
# | Aug 7th 2008, 04:14 | thestaff | no worries |
# | Aug 7th 2008, 04:15 | thestaff | stevieboy, I wanna try by hand if the form would show up |
# | Aug 7th 2008, 04:15 | TonkaTruck | achew22: yeah that is fantastic. So is $this->redirect() reverse routable too? |
# | Aug 7th 2008, 04:15 | achew22 | TonkaTruck: yep |
# | Aug 7th 2008, 04:15 | TonkaTruck | achew22: this is really great. |
# | Aug 7th 2008, 04:15 | Martz | TonkaTruck: i second achew22s recommendation. Reverse routing is amazing ;) |
# | Aug 7th 2008, 04:16 | achew22 | in my models I take it even one step further -- Model::link($id) which does the whole kit and kaboodle |
# | Aug 7th 2008, 04:16 | achew22 | I have the model::url too but I use link much more often |
# | Aug 7th 2008, 04:17 | Martz | i've been lurking in the ##php channel |
# | Aug 7th 2008, 04:17 | Martz | so painful to see people still blundering along without a framework |
# | Aug 7th 2008, 04:18 | stevieboy | forgive me but i still cant figure out the "reverse" in the reverse routing |
# | Aug 7th 2008, 04:18 | achew22 | TonkaTruck: remember, you're in this for money. You can sell something with stubs so long as you replace the "[TODO]" with "Feature coming soon" when you package it and sell it |
# | Aug 7th 2008, 04:18 | stevieboy | is it just the "url-string" to "array (controller,action,id)" ? |
# | Aug 7th 2008, 04:18 | poluta1 | Martz: can i assign $captcha to AppModel class model ? |
# | Aug 7th 2008, 04:18 | Martz | stevieboy: you can make a link like this $html->link('My link', array('controller' => 'user', 'action' => 'view', $id)); and then in the future if you want to change the URLs for /users/ to /members/ all you need to do is edit your routes file, and all your links still work |
# | Aug 7th 2008, 04:19 | Martz | stevieboy: instead of editing 100's of links to /users/view/$id |
# | Aug 7th 2008, 04:19 | stevieboy | oh,i see. i already use that :) |
# | Aug 7th 2008, 04:19 | stevieboy | its really great |
# | Aug 7th 2008, 04:19 | achew22 | ACTION hands off question answering to Martz and stevieboy |
# | Aug 7th 2008, 04:19 | thestaff | stevieboy, so know the form tags are there but doesn't submit |
# | Aug 7th 2008, 04:19 | Martz | poluta1: yep. thats what I recommended first, but you can keep it all in 1 model if you only need it there. Use app_model, app_controller - and get the controller to set a variable for you |
# | Aug 7th 2008, 04:20 | slifox | hello I'm new to cakephp I wanted to know how a php framework works do I just upload the files to my server and include the php files for specific functions? |
# | Aug 7th 2008, 04:20 | stevieboy | thestaff: which action is called after submit? (look in the first form-tag) |
# | Aug 7th 2008, 04:20 | Martz | poluta1: so your app_controller gets the session data, and sets the variable in the model for you to use "later on" |
# | Aug 7th 2008, 04:21 | stevieboy | slifox: you should look at the tutorial in the book |
# | Aug 7th 2008, 04:21 | thestaff | stevieboy, none I removed it |
# | Aug 7th 2008, 04:21 | thestaff | you meant the method > |
# | Aug 7th 2008, 04:21 | thestaff | action="/index.php/categories/add" |
# | Aug 7th 2008, 04:21 | thestaff | sorry |
# | Aug 7th 2008, 04:22 | thestaff | so when I got to this url everything works fine |
# | Aug 7th 2008, 04:22 | stevieboy | slifox: cakephp is a very different approach at coding php. if you re "just" a php coder you will have to learn a bit |
# | Aug 7th 2008, 04:22 | thestaff | a new category is created |
# | Aug 7th 2008, 04:22 | pgcd | stevieboy: i couldn't agree more =) |
# | Aug 7th 2008, 04:22 | stevieboy | slifox: pgcd: but it is worth the effort |
# | Aug 7th 2008, 04:22 | slifox | I see I've been coding for a couple of weeks learning my way in php but I understand cakephp can help me |
# | Aug 7th 2008, 04:23 | thestaff | but the I go to items/add and I show up categories/add in a thickbox, then I can't submit |
# | Aug 7th 2008, 04:23 | slifox | with things like validation etc |
# | Aug 7th 2008, 04:23 | thestaff | \/s/the/then/ |
# | Aug 7th 2008, 04:23 | Martz | slifox: its a steep learning curve but its well worth it. And if you're new to PHP, its "good" that you won't learn all the nasty ways people usually do things without a framework |
# | Aug 7th 2008, 04:23 | Martz | slifox: debugging typos will be the most "fun" for you ;) |
# | Aug 7th 2008, 04:24 | stevieboy | slifox: it helps you with data retrival (how is that spelled?), validation, html+form-generation, date/time-conversion and soooooo much more |
# | Aug 7th 2008, 04:24 | TheBig | is there a cakeway to truncate text? like before read all of some items? |
# | Aug 7th 2008, 04:24 | slifox | heh cheers I'll give this manual a read |
# | Aug 7th 2008, 04:24 | stevieboy | thestaff: nerd! |
# | Aug 7th 2008, 04:24 | thestaff | stevieboy, ? |
# | Aug 7th 2008, 04:24 | stevieboy | slifox: see you next month |
# | Aug 7th 2008, 04:24 | stevieboy | p |
# | Aug 7th 2008, 04:24 | batcoder-7 | fammit 4 more hours |
# | Aug 7th 2008, 04:25 | poluta1 | Martz: failed :( |
# | Aug 7th 2008, 04:25 | Martz | TheBig: There is TextHelper::truncate - so do you mean in the query or in the view? |
# | Aug 7th 2008, 04:25 | stevieboy | thestaff: i referred to the replace-regex |
# | Aug 7th 2008, 04:25 | Martz | poluta1: 1 sec i'll bin some sorta logic for you |
# | Aug 7th 2008, 04:25 | thestaff | haha |
# | Aug 7th 2008, 04:25 | poluta1 | i can't modify AppModel model class |
# | Aug 7th 2008, 04:25 | TheBig | Martz, I'll check now, thanks |
# | Aug 7th 2008, 04:25 | thestaff | stevieboy, what should I do ? |
# | Aug 7th 2008, 04:26 | stevieboy | i dont use the thickbox-thingy, so i cant really test is |
# | Aug 7th 2008, 04:26 | stevieboy | *it |
# | Aug 7th 2008, 04:26 | batcoder-7 | whats the max you guys ever got done in 5 hours ? |