Re: Themes
That works, but currently, is not the solution.. I'll explain. I tried: 1. app/View/Themed/corporate/webroot/css/main.css No work then I tried 2. app/Webroot/theme/corporate/css/main.css Worked. The #1 solution should have worked, I realize that now - I built an app from scratch to test. So. Something in my route, or appcontroller is breaking the full functionality of themes. I am going to rebuild the application by dragging over each component and testing the themes as I go along to find out what is breaking the theme. If I find the culprit, i'll post it. Thanks. On Sat, Sep 29, 2012 at 11:03 AM, lowpass zijn.digi...@gmail.com wrote: The file should be at: app/View/Themed/corporate/webroot/css/main.css Is that the case? On Sat, Sep 29, 2012 at 11:10 AM, hill180 hill...@gmail.com wrote: For the first time, I have to use themes in a project. I am using Cakephp 2.1 In the before filter of the app controller I have the following: $this-theme = 'corporate'; I have the views under app/view/themed/corporate/layout/default.ctp This is working fine.. My problem is the webroot. I used //main.css is under webroot/themed/corporate/css/main.css ?php echo $this-Html-css('main'); ? The page is rendered with: link rel=stylesheet type=text/css href=/css/main.css / //file not found I can manually put in the link link href=?php echo $this-webroot; ?themed/corporate/css/main.css rel=stylesheet type=text/css / becomes link href=/themed/corporate/css/main.css rel=stylesheet type=text/css / //good I thought when I used the HTML helper it was supposed to properly identify the theme and update the link accordingly. Am I wrong in that assumption? Thanks! -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Accessing extra fiends on many to many relationship table
Do you see your recursive on controller? http://arafats.info/what-is-cakephp-recursive/ On Sun, Sep 30, 2012 at 8:13 AM, Jonathan Sundquist jsundqu...@gmail.comwrote: If you need access to more data with in the joining table you will not be able to use a habtm model. You will need to change it into a has many model. - The cold winds are rising On Sep 29, 2012 9:06 PM, gosukiwi fedekil...@gmail.com wrote: This is what I've got, I have a table named Users, and a table named Lessons, users can give lessons, and the can also suscribe to other user's lessons. So my schema is something like this users table id | username 1 | mike lessons table id | name | teacher_id 1 | ... | 1 So my users_lessons table looks something like this user_id | lesson_id | confirmed 1 | 1 | false 2 | 1 | true 1 | 2 | false So far I can map all the users from a lesson, and all the lessons from a user, but given a lesson, i cannot get the status of each user signed up to that lesson, how can I do that? My Lesson model looks something like this public $hasAndBelongsToMany = array( 'Students' = array( 'className' = 'User', 'joinTable' = 'users_lessons', 'foreignKey' = 'lesson_id', 'associationForeignKey' = 'user_id', 'unique' = true, 'conditions' = '', 'fields' = '', 'order' = '', 'limit' = '', 'offset' = '', 'finderQuery'= '', 'deleteQuery'= '', 'insertQuery'= '' ) ); -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Thanks Regards. - Yasir Arafat (Hasib)* *Deputy Project Manager, *Software Solutions Grameen Solutions Contact Information: ** ** Cell : +8801816 536 901, +880197 *333* 2 888 Web: http://arafats.info http://arafats.info -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
I'd like the Session to timeout on browser exit, is this all that's needed?
In Config/core.php... Configure::write('Session', array( 'defaults' = 'php', 'cookieTimeout' = '0' )); Do I have to do anything else for my Session variables to stay alive until the user closes the browser? I ask if I'm missing a step because is seems like the Session is randomly clearing. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: I'd like the Session to timeout on browser exit, is this all that's needed?
If you have a page open in a tab and then navigate away to other tabs for a while, is that equivalent to closing the browser on that page? On Sunday, September 30, 2012 12:08:40 PM UTC-4, d6games wrote: In Config/core.php... Configure::write('Session', array( 'defaults' = 'php', 'cookieTimeout' = '0' )); Do I have to do anything else for my Session variables to stay alive until the user closes the browser? I ask if I'm missing a step because is seems like the Session is randomly clearing. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
photo_show.php helper
hi guys, I have a photo_show helper which works on 1.2 pre Beta version,... now I'm trying to migrate to 1.3 and I can't bring it up in a view: ?php echo $html-link($photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? what am I doing wrong...??? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: SQL Error: 1064: You have an error in your SQL syntax;
I found a solution,... if anyone have same problem with generateList,... put this in your app_model.php function generateList ($cond=null,$order=null,$limit=null,$key=null,$val=null) { return $this-find(list,array( 'conditions' = $cond, 'order' = $order, 'limit' = $limit, 'fields' = array(str_replace('{n}.','',$key), str_replace('{n}.','',$val)) )); } On Friday, September 28, 2012 8:55:52 PM UTC-7, Chris wrote: I have a function which works on 1.2 pre-Beta version,... but not working on 1.3 CAKE can anyone tells me whats wrong with this,... or what am I doing wrong,... THANKS SQL Error: 1064: You have an error in your SQL syntax; if($this-is_user()) $is_friend = in_array($this-user['id'], $this-Friend-myFriends($user['User']['id'])); else $is_friend = false; if($user['User']['privacy'] == array_search('friend', Configure::read('Site.privacy'))) { if($this-user['id'] != $user['User']['id'] !$is_friend) { $this-flash('error', ucfirst('this profile is only viewable by owner\'s friends')); $this-redirect('/send_request/' . $user['User']['username']); } } elseif($user['User']['privacy'] == array_search('private', Configure::read('Site.privacy'))) { if($this-user['id'] != $user['User']['id']) { $this-flash('error', ucfirst('this profile is only viewable by its owner')); $this-redirect('/owner/' . $user['User']['username']); } } $this-set_title(ucfirst(i18n::translate('info')) . ' : ' . $user['User']['firstname'] . ' ' . $user['User']['lastname']); $this-set('user_obj', $user); and this is my Friend model: ?php class Friend extends AppModel { var $name = 'Friend'; var $validate = array( 'user_id' = array( 'rule' = 'notEmpty', 'message' = 'Please enter a valid user', ), 'friend_id' = array( 'rule' = 'notEmpty', 'message' = 'Please enter a valid friend', ), ); var $belongsTo = array('User' = array('foreignKey' = 'friend_id')); function myFriends($id = null) { $friends_ids = $this-generateList(array('Friend.user_id' = $id), array('Friend.friend_id' = 'ASC'), null, '{n}.Friend.friend_id', '{n}.Friend.friend_id'); return is_array($friends_ids) ? $friends_ids : array(); } function afterDelete() { } } ? -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
?php echo $this-Html-link($this-photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? maybe you are missing $this 2012/9/30 Chris chris...@yahoo.com hi guys, I have a photo_show helper which works on 1.2 pre Beta version,... now I'm trying to migrate to 1.3 and I can't bring it up in a view: ?php echo $html-link($photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? what am I doing wrong...??? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Ivan Rimac*** mail: ivn...@gmail.com *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
i think it should be $this-PhotoShow or $PhotoShow..i'm not sure :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/30 Ivan Rimac ivn...@gmail.com ?php echo $this-Html-link($this-photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? maybe you are missing $this 2012/9/30 Chris chris...@yahoo.com hi guys, I have a photo_show helper which works on 1.2 pre Beta version,... now I'm trying to migrate to 1.3 and I can't bring it up in a view: ?php echo $html-link($photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? what am I doing wrong...??? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Ivan Rimac*** mail: ivn...@gmail.com *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
hi Ivan,... thank you for your reply now I'm reading photo_show helper: ?php echo $this-Html-link($this-PhotoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? But,... can nor read FULL_BASE_URL from helper ?php /* * PhotoShow helper */ class PhotoShowHelper extends AppHelper { function show_path($photo, $size, $params = array()) { if(empty($photo)) { return ''; } else { $id = 0; $secret = ''; if(array_key_exists('Photo', $photo)) { $id = $photo['Photo']['id']; $secret = $photo['Photo']['secret']; } elseif(array_key_exists('User', $photo)) { $id = $photo['User']['photo_id']; $secret = $photo['User']['photo_secret']; } return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this-webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : ''); } } On Sunday, September 30, 2012 10:07:46 AM UTC-7, ivnrmc wrote: ?php echo $this-Html-link($this-photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? maybe you are missing $this 2012/9/30 Chris chri...@yahoo.com javascript: hi guys, I have a photo_show helper which works on 1.2 pre Beta version,... now I'm trying to migrate to 1.3 and I can't bring it up in a view: ?php echo $html-link($photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? what am I doing wrong...??? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Ivan Rimac*** mail: ivn...@gmail.com javascript: *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
hi MaJerle,... now I'm reading helper ,... BUT,... can't read FULL_BASE_URL ,... in a browser I see img src=/photos/thumb/0-.jpg alt= /http://www.hamayk.com/photos/index/admin return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this-webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : ''); } thanks On Sunday, September 30, 2012 10:22:21 AM UTC-7, MaJerle.Eu wrote: i think it should be $this-PhotoShow or $PhotoShow..i'm not sure :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/30 Ivan Rimac ivn...@gmail.com javascript: ?php echo $this-Html-link($this-photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? maybe you are missing $this 2012/9/30 Chris chri...@yahoo.com javascript: hi guys, I have a photo_show helper which works on 1.2 pre Beta version,... now I'm trying to migrate to 1.3 and I can't bring it up in a view: ?php echo $html-link($photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? what am I doing wrong...??? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Ivan Rimac*** mail: ivn...@gmail.com javascript: *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
okay, maybe you need to put this content down here into /app_helper.php and call it from the view like: ?php echo $this-Html-show_path(); ? function show_path($photo, $size, $params = array()) { if(empty($photo)) { return ''; } else { $id = 0; $secret = ''; if(array_key_exists('Photo', $photo)) { $id = $photo['Photo']['id']; $secret = $photo['Photo']['secret']; } elseif(array_key_exists('User', $photo)) { $id = $photo['User']['photo_id']; $secret = $photo['User']['photo_secret']; } return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this-webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : ''); } to 2012/9/30 Chris chris...@yahoo.com hi MaJerle,... now I'm reading helper ,... BUT,... can't read FULL_BASE_URL ,... in a browser I see img src=/photos/thumb/0-.jpg alt= / http://www.hamayk.com/photos/index/admin return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this-webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : ''); } thanks On Sunday, September 30, 2012 10:22:21 AM UTC-7, MaJerle.Eu wrote: i think it should be $this-PhotoShow or $PhotoShow..i'm not sure :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/30 Ivan Rimac ivn...@gmail.com ?php echo $this-Html-link($this-**photoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? maybe you are missing $this 2012/9/30 Chris chri...@yahoo.com hi guys, I have a photo_show helper which works on 1.2 pre Beta version,... now I'm trying to migrate to 1.3 and I can't bring it up in a view: ?php echo $html-link($photoShow-thumb(**$user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? what am I doing wrong...??? thanks -- Like Us on FacekBook https://www.facebook.com/**CakePHPhttps://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@** googlegroups.com. Visit this group at http://groups.google.com/**group/cake-php?hl=enhttp://groups.google.com/group/cake-php?hl=en . -- *Ivan Rimac*** mail: ivn...@gmail.com *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook https://www.facebook.com/**CakePHPhttps://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@** googlegroups.com. Visit this group at http://groups.google.com/**group/cake-php?hl=enhttp://groups.google.com/group/cake-php?hl=en . -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Ivan Rimac*** mail: ivn...@gmail.com *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
FULL_BASE_URL
hi guys,... I'm loosing FULL_BASE_URL ,... its not coming up in helper: return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this-webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : ''); what can I do,...? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
getting lt; , quot; instead , in output
hi guys,... I'm getting getting , instead , in output (views) when reading from helper,... e.g. $s = 'img src=' . $this-show_path($photo, $size, $params) . ' alt=' . (array_key_exists('alt', $params) ? $params['alt'] : $name) . ''; can some one tell me what's wrong with it,...?? -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
PCRE has not been compiled with Unicode support on setup
hi guys,... I have on 1.3 setup : PCRE has not been compiled with Unicode support where do I have to add -enable-unicode-properties -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: PCRE has not been compiled with Unicode support on setup
Anyone,... :( On Sunday, September 30, 2012 2:06:26 PM UTC-7, Chris wrote: hi guys,... I have on 1.3 setup : PCRE has not been compiled with Unicode support where do I have to add -enable-unicode-properties -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Events system wildcard
Is possible to bind event handlers as wildcards? For example, the docs shows Model.Name.eventName. I want to perform it at Model.*.eventName. Is that possible? -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Text color in a textfield
So I've been trying to create several text fields on a page with black backrground and white-ish texts...but I met with a problem with the text color inside the textfield - it's white. And I can't find any means to change it. I tried googling it but everyone who had similar problem solved it in a way which didn't work for me. Halp? : -- View this message in context: http://cakephp.1045679.n5.nabble.com/Text-color-in-a-textfield-tp5711455.html Sent from the CakePHP mailing list archive at Nabble.com. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: CakePHP 1.3 and AMFPHP
I migrated the cakephp 1.3 with amfphp to cakephp 2.0, seems to work. I'm willing to make it available on github if there is any interest On Saturday, April 9, 2011 10:45:59 PM UTC-7, R0ckET wrote: hello, someone has used AMFPHP with cakephp 1.3? -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Should this be a plugin?
I am working on some code (2 controllers + 2 models) that track calendar events or shows and locations. I have 2 projects this might work in, but only about 50-60% would be common. Should I just not worry about a plugin to share common code? If I do a plugin for the 50% that is common, how should I build the controller / models that extend the plugin controller / models? or is there a better way? Any suggestions will be appreciated. Thanks, bill -- View this message in context: http://cakephp.1045679.n5.nabble.com/Should-this-be-a-plugin-tp5711474.html Sent from the CakePHP mailing list archive at Nabble.com. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: getting , instead , in output
hi Yasir,... I have php tag in my views, ?php echo $this-Html-link($this-PhotoShow-thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ? and I have this code in my photo_show helper: function show($photo, $size, $params = array()) { $name = array_key_exists('Photo', $photo) ? $photo['Photo']['name'] : ''; $s = 'img src=' . $this-show_path($photo, $size, $params) . ' alt=' . (array_key_exists('alt', $params) ? $params['alt'] : $name) . ''; $s .= array_key_exists('width', $params) ? ' width=' . $params['width'] . '' : ''; $s .= array_key_exists('height', $params) ? ' height=' . $params['height'] . '' : ''; $s .= array_key_exists('style', $params) ? ' style=' . $params['style'] . '' : ''; $s .= array_key_exists('id', $params) ? ' id=' . $params['id'] . '' : ''; $s .= ' /'; return $s; } and output on CAKE1.2 pre-Beta version works fine,... but now migration to CAKE1.3 and I'm getting this in my view: from document souse: a href=/photos/index/admin http://www.hamayk.com/photos/index/adminimg src=/photos/thumb/0-.jpg alt= //a and in a browser: img src=/photos/thumb/0-.jpg alt= /http://www.hamayk.com/photos/index/admin ??? getting frustrated thanks in advance,... chris On Sunday, September 30, 2012 7:02:00 PM UTC-7, Yasir Arafat wrote: May be you did not start PHP tag? On Mon, Oct 1, 2012 at 2:51 AM, Chris chri...@yahoo.com javascript:wrote: hi guys,... I'm getting getting , instead , in output (views) when reading from helper,... e.g. $s = 'img src=' . $this-show_path($photo, $size, $params) . ' alt=' . (array_key_exists('alt', $params) ? $params['alt'] : $name) . ''; can some one tell me what's wrong with it,...?? -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Thanks Regards. - Yasir Arafat (Hasib)* *Deputy Project Manager, *Software Solutions Grameen Solutions Contact Information: ** ** Cell : +8801816 536 901, +880197 *333* 2 888 Web: http://arafats.info http://arafats.info -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: FULL_BASE_URL
i was wrong,... it's all fine on this matter ,... it is reading FULL_BASE_URL On Sunday, September 30, 2012 12:13:09 PM UTC-7, Chris wrote: hi guys,... I'm loosing FULL_BASE_URL ,... its not coming up in helper: return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this-webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : ''); what can I do,...? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Text color in a textfield
It's CSS thing. What have you tried so far? Show some code. Jeremy Burns Class Outfit http://www.classoutfit.com On 30 Sep 2012, at 11:58:22, Numerion numerr...@gmail.com wrote: So I've been trying to create several text fields on a page with black backrground and white-ish texts...but I met with a problem with the text color inside the textfield - it's white. And I can't find any means to change it. I tried googling it but everyone who had similar problem solved it in a way which didn't work for me. Halp? : -- View this message in context: http://cakephp.1045679.n5.nabble.com/Text-color-in-a-textfield-tp5711455.html Sent from the CakePHP mailing list archive at Nabble.com. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: PCRE has not been compiled with Unicode support on setup
http://lmgtfy.com/?q=PCRE+has+not+been+compiled+with+Unicode+support On Sunday, September 30, 2012 2:06:26 PM UTC-7, Chris wrote: hi guys,... I have on 1.3 setup : PCRE has not been compiled with Unicode support where do I have to add -enable-unicode-properties -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.