Memcache Set up Help

2010-12-03 Thread Dave Maharaj
I have setup memcached on the server. Check php info and its there memcache support enabled Active persistent connections 1 Version 2.2.5 Revision $Revision: 1.111 $ so on.. So I changed the setting in core.php to memcache and end up with Notice (8): Memcache::get() [memcache.get]: Server 127.0

Re: send email with attach

2010-12-03 Thread hoss7
thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 t

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread DCrews
With Cake, it's just like any other object-oriented Netbeans project. If you're baking, bake and then add the app dir as your project. If not (which I wouldn't if you're new to it; learn to cake before you learn to bake), just create a new project, create an app dir and go from there. Then make sur

Re: Using or not using PHP framework

2010-12-03 Thread Raj
hmmThanks so much for the great advice! On Dec 3, 1:59 pm, Joshua Muheim wrote: > Funny, I first learned Ruby On Rails, too, and then dove into CakePHP > (because at my current job they don't know anything about a > programming language called Ruby... sadly). I first had quite some > struggle

Re: look & feel/ user interface with cakephp

2010-12-03 Thread Raj
Thanks On Dec 3, 1:56 pm, Stephen wrote: > More on layouts:http://book.cakephp.org/view/1080/Layouts > > On 3 December 2010 07:40, Jeremy Burns | Class Outfit < > > > > jeremybu...@classoutfit.com> wrote: > > Yes. The folders /app/webroot/css contains a generic Cake stylesheet, but > > obviously

Re: Reading External Data and Saving it to database

2010-12-03 Thread Ryan Schmidt
On Dec 3, 2010, at 14:19, NB wrote: > I'm new here, I ve done everything in this tutorial > http://blog.loadsys.com/2009/06/19/cakephp-rss-feed-datasource/ , Im > able to read RSS Feeds from external site, Can I save each feed in my > local database? I would imagine so. (It's your database;

Re: Override or not

2010-12-03 Thread luca capra
Never hack the core, I know, or better, I've learned by my self. I'm adapting primarly the html helper extending it in a custom "DojoHtml" and rewrite really small pieces of templated html code (mainly due to buggy behaviors of some widget in some browser [ which one? :) ]) What I would "sk

Re: Create an internal message system for clients

2010-12-03 Thread Rez
Thanks for the reply but I am sorry I did not correctly explain it. I am actually looking for an internal message system where users have an inbox and can simply send each other messages, reply, forward etc. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Create-an-intern

CakePHP not load views

2010-12-03 Thread Raul Mangolin
My layout is divided into 3 parts, Header, Content, Footer. Sometimes when I load a page the cake just returns the Content, or does not load CSS, JavaScript, and the like. Has anyone had any similar problem? Check out the new CakePHP Questions site http://cakeqs.org and help others with their C

Reading External Data and Saving it to database

2010-12-03 Thread NOOOOB
Hi, I'm new here, I ve done everything in this tutorial http://blog.loadsys.com/2009/06/19/cakephp-rss-feed-datasource/ , Im able to read RSS Feeds from external site, Can I save each feed in my local database? Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: Creating XML for SOAP requests

2010-12-03 Thread DragonFlyEye
For those who find this thread looking for a way to handle this type of situation, I have found a solution: public function renderXml() { $this->layout= 'ajax'; $this->autoLayout= false; $this->autoRender= false; $access = array('AccessRequest' => array('AccessLicenseN

Re: Creating XML for SOAP requests

2010-12-03 Thread DragonFlyEye
Of course. I just find it odd that there isn't a direct answer in CakePHP. After all, everything CakePHP does is something there is already a solution for in PHP. Especially since they've gone to the trouble of creating two major pieces of the puzzle. When working within a framework, I try not to

Re: dynamically changing the type in form helper

2010-12-03 Thread mochaman
The debug message showed the correct value for the variable $type...it was set to 'text' (no quotes :-)). I downloaded 1.3.5 to double check what I was seeing and here is the same section: case 'text': case 'password': case 'file': $input = $this->{$type}($fieldName, $options); break; I

Re: Creating XML for SOAP requests

2010-12-03 Thread ryandesign
PHP has several ways to generate XML already SimpleXML for example. Wouldn't using one of those methods be sufficient? On Dec 3, 9:34 am, DragonFlyEye wrote: > I need to send SOAP requests to UPS for shipping info. As such, I need > to create an XML "file" that can be sent to them, the result

Re: Security Risks on gif image upload?

2010-12-03 Thread spongebobroundshirt
Would be interesting if the attacker presumed you would do this, and made it so the converted image contains the malicious code. On Dec 3, 1:48 am, "Ma'moon" wrote: > You can easily remove the threat by using an image conversion, i use > `convert` to convert my images to a standard image type, t

Re: simple one-to-many question

2010-12-03 Thread Ryan Schmidt
On Dec 3, 2010, at 03:08, Hans Wiriya Tsai wrote: > i m trying to make a relation between 2 tables: Authors that hasMany > Books. Don't some books have more than one author? :) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

CakePHP 1.3 - RequestHandler->respondAs(js) not working in beforeFilter

2010-12-03 Thread starchild.no1
Hi all, I'm doing an ajax update to see if username exsist.. However when I use the standard RequestHandler markup in my AppController or Users Controller beforeFilter function beforeFilter(){ if ($this->RequestHa

Re: use APC & Memcached at the same tim

2010-12-03 Thread Miles J
Install APC and memcache. APC will run automatically and cache your opcode. Use memcache on the CakePHP side to cache query data. On Dec 3, 6:04 am, "Ma'moon" wrote: > All configuration items that you need to edit takes place in "core.php", > right there you will have the ability to enable, disa

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread euromark
if you really want code completion and all those nice little web dev goodies you could consider using a different IDE PHPDesigner works really well, for example. I use it since many years and would be much "slower" without the code completion / function declaration stuff On 3 Dez., 19:11, Miles J

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread Miles J
No reason to be. People like this need to learn to do things themselves at some point. On Dec 3, 1:31 am, Jeremy Burns | Class Outfit wrote: > I feel a little bad for being harsh with him now... > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 3 De

Re: What is a__constructor

2010-12-03 Thread Miles J
I would suggest learning the basics of PHP and OOP programming before jumping into something like this. http://php.net/manual/en/language.oop5.php On Dec 3, 9:38 am, Ryan Schmidt wrote: > On Dec 2, 2010, at 14:09, João Moura wrote: > > > i dont found a good explanation about what is a constructo

Re: What is a__constructor

2010-12-03 Thread Ryan Schmidt
On Dec 2, 2010, at 14:09, João Moura wrote: > i dont found a good explanation about what is a constructor and how it works Have you tried: http://www.google.com/search?q=php+__construct The first link in the results is to the PHP documentation about constructors and destructors, which is a go

What is a__constructor

2010-12-03 Thread João Moura
Srry about this small doubt, im starting on CakePHP, but i already know the language, i saw the api, but i dont found a good explanation about what is a constructor and how it works, somebody could explain to me... and giving a example too please? Like this or another one idk : function __construc

Logging in to the manual / book web site

2010-12-03 Thread Ryan Schmidt
As I am starting to learn CakePHP, I am spending a lot of time reading the manual at http://book.cakephp.org/ and am finding many errors that I would like to correct. I'm pleased to see there are "Edit" links which should let me make the corrections, but it says I need to log in with a bakery ac

Re: Security Risks on gif image upload?

2010-12-03 Thread euromark
yeah, i dont think it is that dangerous, either at least if you don't include it even the media view just passes the data without interpreting it - afaik allowing other extensions like file.gif.php would probably be the only possible danger and is usually handled by the uploader scripts On 3 Dez

Creating XML for SOAP requests

2010-12-03 Thread DragonFlyEye
Ok, I'm sure I'm just missing something remarkably obvious, so feel free to hit me over the head. I'll thank you. I need to send SOAP requests to UPS for shipping info. As such, I need to create an XML "file" that can be sent to them, the results of which being obviously the thing my audience care

Re: Custom helper in PagesController

2010-12-03 Thread euromark
$html or $form is deprecated in 1.3 if you use cake1.3 $this->Fxpage is correct ($fxpage still works, though) you probably named your helper incorrectly On 3 Dez., 06:03, Amit Badkas wrote: > Hi, > > I think you should use $fxpage in view instead of $Fxpage, same like we use > $html or $form for

Re: Override or not

2010-12-03 Thread red
What exactly do you need to add to this form inputs? Built-in Form(Html)Helper allows to define many parameters to inputs and all other form/html elements, so maybe there is no need to write own helpers. Anyway regardless of this things 'hacking' core of Cake is unacceptable and the key is inherit

Re: use APC & Memcached at the same tim

2010-12-03 Thread Ma'moon
All configuration items that you need to edit takes place in "core.php", right there you will have the ability to enable, disable, and/or configure your caching engines/levels On Fri, Dec 3, 2010 at 3:07 PM, pang wrote: > Thank you for your answer. I know that apc and memcache has different > us

Re: use APC & Memcached at the same tim

2010-12-03 Thread pang
Thank you for your answer. I know that apc and memcache has different usage, I can make them working respectively in Cake. But I don't know how to configure to make them working together. Do you know how to do it? On Dec 3, 1:14 pm, "Ma'moon" wrote: > APC performs (byte code caching or intermedi

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Alex Ciobanu
On 12/3/2010 2:41 PM, Jeremy Burns | Class Outfit wrote: Yup - I know, but I have multiple prefixes; so if I am diverted from, say, /managers/shops/edit I would need to have 'managers' => false (and therefore the 'admin' => false is irrelevant). In my core I have: Configure::write('Routing

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Jeremy Burns | Class Outfit
Yup - I know, but I have multiple prefixes; so if I am diverted from, say, /managers/shops/edit I would need to have 'managers' => false (and therefore the 'admin' => false is irrelevant). Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Dec 2010, at 12:38,

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Alex Ciobanu
On 12/3/2010 2:18 PM, Jeremy Burns | Class Outfit wrote: I did consider that, but I'm looking for something fairly simple to both implement and administer (I don't want to have to make loads of changes/create new objects when I add a new prefix, for example). Example from manual seems to do t

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Jeremy Burns | Class Outfit
I did consider that, but I'm looking for something fairly simple to both implement and administer (I don't want to have to make loads of changes/create new objects when I add a new prefix, for example). Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Dec 2

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Alex Ciobanu
On 12/3/2010 1:46 PM, Jeremy Burns wrote: Not sure I've seen a definitive answer for this... I'm on 1.3.6, and have multiple prefixes. I want to always redirect to /users/login when authentication is required. I was hoping this would work: Have you considered teknoid's method [1]? The downside

Re: use APC & Memcached at the same tim

2010-12-03 Thread Ma'moon
APC performs (byte code caching or intermediate code) which means that it caches the binary form of your PHP script and once this script is being called, the cached version of the script is the one that will be executed, this will save a lot of performance and server resources, on the other hand, m

Re: simple one-to-many question

2010-12-03 Thread Bogdan Bursuc
You must set to the view the variable called authors like so $this->set('authors', $this->Book->Authors->find('list')); Cake FormHelper transforms key_id in to a select and he is looking for a variable called authors in your view to populate that select. On Fri, Dec 3, 2010 at 11:08 AM, Hans Wiri

Auth loginAction and multiple prefixes

2010-12-03 Thread Jeremy Burns
Not sure I've seen a definitive answer for this... I'm on 1.3.6, and have multiple prefixes. I want to always redirect to /users/login when authentication is required. I was hoping this would work: 'loginAction' => array( 'controller' => 'users', 'action' => 'login', 'pref

Override or not

2010-12-03 Thread luca capra
Hi all I'm developing a cakephp+dojo web app. Everything work fine. Really fine! I'm loving cakephp But, there is a "but". Due to Dojo (or better I) require some non standard html tags, I had to rewrite partially the Form and Html helper, that now I call DojoHtml and DojoForm overriding the c

Re: Create a Mailbox for clients

2010-12-03 Thread Zaky Katalan-Ezra
If this is all you want try zimbra On Fri, Dec 3, 2010 at 8:55 AM, Rez wrote: > > Hi > > I need to create a mailbox (a very simple version of Gmail for example with > inbox, reply, delete, forward etc.) Is there any cakephp code which can > help > or I should write it fr

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread Jeremy Burns | Class Outfit
Like. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Dec 2010, at 09:52, designv...@gmail.com wrote: > http://slash7.com/2006/12/22/vampires/ > > ;-) > > On Dec 3, 9:31 am, Jeremy Burns | Class Outfit > wrote: >> I feel a little bad for being harsh with

RE: baking complete cakephp application

2010-12-03 Thread salman farisi
You have to set classpath for cake. Right Click my computer, chose advance tab, click Enviroment Variable's Button and edit PATH. Put this directory C:\xampp\htdocs\cakephp\cake\console From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of ambati kiran Sent: Frid

use APC & Memcached at the same tim

2010-12-03 Thread pang
CakePHP offer both APC and Memcached cache engine for cache purpose, but each of them has different preferred usage, I am wondering is it possible to config Cake to work with both of them? and how can It be achieved? Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread designv...@gmail.com
http://slash7.com/2006/12/22/vampires/ ;-) On Dec 3, 9:31 am, Jeremy Burns | Class Outfit wrote: > I feel a little bad for being harsh with him now... > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 3 Dec 2010, at 09:30, keymaster wrote: > > > Sey

Re: Security Risks on gif image upload?

2010-12-03 Thread Stephen
My mistake, I forgot about GD. I'd use GD, it may save a bit of time. Good point Ma'moon On 3 December 2010 09:34, Ma'moon wrote: > Am sorry, i mean to say "From Users Side" :) > And no, am not using any plugins for that, i have my own implementation for > file upload in CakePHP, basically you

Re: Security Risks on gif image upload?

2010-12-03 Thread Stephen
> And do you use a cakephp plugin for that? > You need to install ImageMagick to convert images using the command line (or shell_exec() etc) http://www.imagemagick.org/script/convert.php Not all hosts may support this. -- Kind Regards Stephen Check out the new CakePHP Questions site http:/

Re: Security Risks on gif image upload?

2010-12-03 Thread Ma'moon
Am sorry, i mean to say "From Users Side" :) And no, am not using any plugins for that, i have my own implementation for file upload in CakePHP, basically you would do something like: exec('convert input_file_path output_file_path'); in order to convert an image, you can also use imagemagick driver

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread Jeremy Burns | Class Outfit
I feel a little bad for being harsh with him now... Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Dec 2010, at 09:30, keymaster wrote: > Seyed, > > No prob, dude. > > We'll fly a couple of the cakephp core developers to your apartment. > They'll walk yo

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread keymaster
Seyed, No prob, dude. We'll fly a couple of the cakephp core developers to your apartment. They'll walk you through everything, step by step, just like you wanted. You'll be editing cakephp files in no time. Don't worry. Just a thought, would you like some Netbeans staff to be there too? You ne

Re: Security Risks on gif image upload?

2010-12-03 Thread netusco
On Dec 3, 8:48 am, "Ma'moon" wrote: > You can easily remove the threat by using an image conversion, i use > `convert` to convert my images to a standard image type, the conversion > process changes the physical content of the uploaded file and destroys all > the threat that it might contain whi

simple one-to-many question

2010-12-03 Thread Hans Wiriya Tsai
i m trying to make a relation between 2 tables: Authors that hasMany Books. So I created those 2 tables and one additional field author_id in Books table as foreign key to Authors. Next I create Author model that hasMany = Book and Book model that belongsTo Author. And then on both controller I put

Re: Using or not using PHP framework

2010-12-03 Thread Joshua Muheim
Funny, I first learned Ruby On Rails, too, and then dove into CakePHP (because at my current job they don't know anything about a programming language called Ruby... sadly). I first had quite some struggles because I was used to the comfort of RoR and really missed some stuff in CakePHP, but now I

Re: look & feel/ user interface with cakephp

2010-12-03 Thread Stephen
More on layouts: http://book.cakephp.org/view/1080/Layouts On 3 December 2010 07:40, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > Yes. The folders /app/webroot/css contains a generic Cake stylesheet, but > obviously you don't have to use it. Create your own CSS files in thi

Re: Using or not using PHP framework

2010-12-03 Thread Stephen
> I have stopped working without a framework in the background years > ago, and I only can recommend it. There's SO much stuff you don't even > know about that's handled by a good framework in the background (all > sorts of hacking-attempts is taken care of, for example), and with a > good plugin s

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread Stephen
I use Netbeans and you use it with CakePHP like you would with any other type of PHP based project in Netbeans. On 2 December 2010 18:22, Miles J wrote: > Netbeans doesn't have CakePHP support, its just an IDE. > > I also love how your asking for step by step images on how to do > everything, t

baking complete cakephp application

2010-12-03 Thread ambati kiran
Hi guys, Can some one guide me in baking a cake application. I read several articles saw videos but missing something failing to bake it properly. Through command line i am typing C:\xampp\htdocs\cakephp\cake\console typing Cake bake all error is 'cake' is not recognized as internal or exte