Re: image output tags

2012-09-30 Thread Marcus James
Hi Chris, Try this :- Html->link($this->PhotoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], array('escape'=>false)) ?> Enjoy, Marcus -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this mess

image output tags

2012-09-30 Thread Chris
hi guys,... can anyone help please I have a link in my view: Html->link($this->PhotoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> and it is output in source : http://www.hamayk.com/photos/index/admin>"> which gives me in a browser:

Re: PCRE has not been compiled with Unicode support on setup

2012-09-30 Thread Jamie
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 Fac

Re: Text color in a textfield

2012-09-30 Thread Jeremy Burns | Class Outfit
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 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 wi

Re: FULL_BASE_URL

2012-09-30 Thread Chris
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 : '

Re: getting < , " instead < , " in output

2012-09-30 Thread Chris
hi Yasir,... I have php tag in my views, 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_exi

Should this be a plugin?

2012-09-30 Thread bs28723
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

Re: CakePHP 1.3 and AMFPHP

2012-09-30 Thread Doug Hagan
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

Text color in a textfield

2012-09-30 Thread Numerion
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 w

Events system wildcard

2012-09-30 Thread Przemysław Pawliczuk
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 mess

Re: PCRE has not been compiled with Unicode support on setup

2012-09-30 Thread Chris
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 Twi

PCRE has not been compiled with Unicode support on setup

2012-09-30 Thread Chris
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 subscribe

getting < , " instead < , " in output

2012-09-30 Thread Chris
hi guys,... I'm getting getting < , " instead < , " in output (views) when reading from helper,... e.g. $s = '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 po

FULL_BASE_URL

2012-09-30 Thread Chris
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

Re: photo_show.php helper

2012-09-30 Thread Ivan Rimac
okay, maybe you need to put this content down here into /app_helper.php and call it from the view like: Html->show_path(); ?> function show_path($photo, $size, $params = array()) { if(empty($photo)) { return ''; } else { $id = 0; $secret = ''; if(arr

Re: photo_show.php helper

2012-09-30 Thread Chris
hi MaJerle,... now I'm reading helper ,... BUT,... can't read FULL_BASE_URL ,... in a browser I see return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (ar

Re: photo_show.php helper

2012-09-30 Thread Chris
hi Ivan,... thank you for your reply now I'm reading photo_show helper: 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 webroot . 'photos/' . $size . '/' . $id . '-' . $sec

Re: photo_show.php helper

2012-09-30 Thread Tilen Majerle
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 > Html->link($this->photoShow->thumb($user_obj), > '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> > > maybe you are missing $this

Re: photo_show.php helper

2012-09-30 Thread Ivan Rimac
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 > 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

Re: SQL Error: 1064: You have an error in your SQL syntax;

2012-09-30 Thread Chris
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'

photo_show.php helper

2012-09-30 Thread Chris
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: link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> what am I doing wrong...??? than

Re: I'd like the Session to timeout on browser exit, is this all that's needed?

2012-09-30 Thread d6games
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'

I'd like the Session to timeout on browser exit, is this all that's needed?

2012-09-30 Thread d6games
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

Re: Accessing extra fiends on many to many relationship table

2012-09-30 Thread Yasir Arafat Hasib
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 wrote: > 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 m

Re: Themes

2012-09-30 Thread hill180
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.