Re: ratings, like and dislike buttons...

2010-12-14 Thread chris...@yahoo.com
Thank you for your reply guys,... Have any one tried Rating from CAKE https://github.com/CakeDC/ratings/tree/ I don't know can it work on my version,... I don't even know what version I have and how can I check it... And if possible to migrate to new 1.3.x.x. version... Thanks Salute, Chris On D

Re: CakePHP 2.0 status

2010-12-14 Thread Joshua Muheim
Interesting topic. On Wed, Dec 15, 2010 at 12:18 AM, Larry E. Masters wrote: > You can look at the current guides being > written for 2.0 and go from there. Just build your application using PHP 5 > features only. What guides do you mean? Is there a CakePHP 2.0 guides collection somewhere? Link

Re: Best plugins presentation ever

2010-12-14 Thread Joshua Muheim
You're welcome! On Wed, Dec 15, 2010 at 6:04 AM, huoxito wrote: > great! > > 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 pos

Re: Attach behavior to AppModel on the fly? --psybear

2010-12-14 Thread Joshua Muheim
I guess so... Because of this I hoped there's a way to sneak it right into AppModel automatically... ;-) On Wed, Dec 15, 2010 at 12:13 AM, euromark wrote: > and I would only do that if necessary > lazyloading attachments so to speak > probably cuts down the memory > > > On 14 Dez., 17:06, Joshua

Re: calling a view in pop up

2010-12-14 Thread Yasir Arafat Hasib
See the post http://arafats.info/how-to-open-popup-window-in-cakephp/ On Wed, Dec 15, 2010 at 12:56 AM, Yasir Arafat Hasib wrote: > Tomorrow i will post a working code. > http://arafats.info/category/php/cakephp/ > > > But this is a no test sample. You can try. > > link(__($result['Menu']['menu

Re: Best plugins presentation ever

2010-12-14 Thread huoxito
great! 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: setFlash

2010-12-14 Thread Amit Badkas
Hi, Assuming that the flash message DIV has class 'message', you can write something like following jQuery code window.setTimeout('$(".message").fadeOut("slow")', 3000); Hope this helps. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Wed, Dec 15, 2010 at 1:17 AM, lvdb w

Re: simple acl controlled application tutorial

2010-12-14 Thread cricket
On Tue, Dec 14, 2010 at 6:48 PM, georgeman wrote: > I'm referring to the tutorial in the Cake manual. > > 11.2.4.1 Group-only ACL says: "In case we want simplified per-group > only permissions, we need to implement bindNode() in User model." > > function bindNode($user) { >    return array('model'

Re: cakephp requirements question

2010-12-14 Thread mario2027
Try the new PHP resource download site: http://www.phpkode.com you will find the exact framework you want! > Hi, try setting the Apache settings for your webroot to allowOverride All in /etc/apache2/sites-available/000- default, by default or you virtual host file if present. Using mod rewrite f

Re: Cakephp Sorting ASC and DESC NEW ISSUE WHEN VALUES COMES IN A RANGE LIKE 5,10,100,1234,765432.....

2010-12-14 Thread Ryan Schmidt
On Dec 14, 2010, at 08:46, Luis Miguel García Mancebo wrote: > I think it's being ordered alphabetically, not numerically. Yes, I agree. > Perhaps > there is a place where you can specify the type of the column for > CakePHP? (I don't know CakePHP by now). CakePHP doesn't care; CakePHP is just

simple acl controlled application tutorial

2010-12-14 Thread georgeman
I'm referring to the tutorial in the Cake manual. 11.2.4.1 Group-only ACL says: "In case we want simplified per-group only permissions, we need to implement bindNode() in User model." function bindNode($user) { return array('model' => 'Group', 'foreign_key' => $user['User'] ['group_id']); }

Re: CakePHP 2.0 status

2010-12-14 Thread Luis Miguel García Mancebo
Thank you Larry. I think I'll do that. On 15 dic, 00:18, "Larry E. Masters" wrote: > Luis, > > Start building your app using 1.3, the migration to 2.0 should not be too > hard to do when we release it. You can look at the current guides being > written for 2.0 and go from there. Just build your a

Re: setFlash

2010-12-14 Thread Tilen Majerle
which version are u using?... -- Tilen Majerle http://majerle.eu 2010/12/14 lvdb > Hello, > > I'am new to Cakephp. I have been doing the blog tutorial. In this > tutorial there is a setFlash message after > adding a new record. Is it possible to hide this message after 3 > seconds? > > thank o

Re: CakePHP 2.0 status

2010-12-14 Thread Larry E. Masters
Luis, Start building your app using 1.3, the migration to 2.0 should not be too hard to do when we release it. You can look at the current guides being written for 2.0 and go from there. Just build your application using PHP 5 features only. -- Larry E. Masters 2010/12/14 Luis Miguel García Ma

Re: Cakephp Sorting ASC and DESC NEW ISSUE WHEN VALUES COMES IN A RANGE LIKE 5,10,100,1234,765432.....

2010-12-14 Thread Luis Miguel García Mancebo
I think it's being ordered alphabetically, not numerically. Perhaps there is a place where you can specify the type of the column for CakePHP? (I don't know CakePHP by now). On 14 dic, 06:52, joffin joy wrote: > Hi Sir/Madam, > > I have been working in cakePHP for some time and i have to say its

Re: Form helper: send default values as named params? --psybear

2010-12-14 Thread euromark
sounds interesting! On 14 Dez., 17:03, Joshua Muheim wrote: > In fact, I'm doing right that at the moment (and some other > functionalities in other components that alltogether do really good > job in allowing even more RAD). :-) > > I guess as soon as they are real-life-proven, I will publish th

Re: Non-breaking spaces in baked views

2010-12-14 Thread euromark
i thought so too, in the beginning. and as far is I know the bake templates will soon be updated with h() or are already in the process of being updated. because just too many either don't know or don't care it is more than necessary to do so :) there are occasions where you don't want the h() (ht

setFlash

2010-12-14 Thread lvdb
Hello, I'am new to Cakephp. I have been doing the blog tutorial. In this tutorial there is a setFlash message after adding a new record. Is it possible to hide this message after 3 seconds? thank ou in advance for your answer. Regards, Leo Check out the new CakePHP Questions site http://cakeqs

Re: Attach behavior to AppModel on the fly? --psybear

2010-12-14 Thread euromark
and I would only do that if necessary lazyloading attachments so to speak probably cuts down the memory On 14 Dez., 17:06, Joshua Muheim wrote: > Thanks, amit. > > @Mark: You're completely right, but I have a component that assumes > that every model has this component attached, and it would be

Re: CakePHP 2.0 status

2010-12-14 Thread Luis Miguel García Mancebo
Thanks a lot for your reply, Larry. I already know that 2.0 is still in dev stage. What I was trying to ask (sorry about my english) is if you would recommend starting a new development using 2.0, or is 2.0 still far ahead in time? I was asking because if it's more or less functional, I don't min

Re: Why Sanitize::stripTags not working in controller index() function;

2010-12-14 Thread euromark
sure^^ but based on the skill of this developer i guessed that he wanted to secure the result and thats not done by stripping tags either way his code is so bad/unclear that we cannot be sure of what he wants to achieve On 14 Dez., 22:57, Ryan Schmidt wrote: > On Dec 14, 2010, at 09:09, euromar

Re: Why Sanitize::stripTags not working in controller index() function;

2010-12-14 Thread Ryan Schmidt
On Dec 14, 2010, at 09:09, euromark wrote: > what you need is h() - in the view templates: > > > thats all you need to escape and secure your views. Yeah but that doesn't accomplish his stated goal: to remove the div tags that are in the RSS data he's receiving: > From: Lord_JABA [mailto:lord

Re: Prefix routing and different user types

2010-12-14 Thread Ryan Schmidt
On Dec 14, 2010, at 08:45, chris wrote: > if($this->Auth->User('accounttype_id')==3) Using magic numbers (here, 3) is probably a bad idea. http://en.wikipedia.org/wiki/Magic_number_(programming)#Unnamed_numerical_constants Check out the new CakePHP Questions site http://cakeqs.org and help o

Re: Non-breaking spaces in baked views

2010-12-14 Thread Ryan Schmidt
> > On 14 Dez., 16:01, euromark wrote: >> you can GUESS - if you actually need to ask you will most certainly >> always get "IE6"^^ >> and in this case as well >> >> and yes, unfortunately it is still widely used (mainly cooperations >> and unskilled home users) IE6! No, that's still on my stil

Re: How to disable the previously loaded model

2010-12-14 Thread j.blotus
If you just want to destory the model you can do this: $this->Relationship->__destruct(); unset($this->Relationship) Why you are using loadmodel for both parent and relationship instead of $this->Parent->Relationship is beyond me On Dec 14, 1:17 pm, Miles J wrote: > The student() method is not

Re: Best plugins presentation ever

2010-12-14 Thread keymaster
Thanks very much. Hopefully this will help others as well. All the best. On Dec 14, 6:11 pm, Joshua Muheim wrote: > PDF:http://hotfile.com/dl/89428716/225a271/using-reusing-plugins-10090410... > > PPT:http://hotfile.com/dl/89428946/9e73d67/using-reusing-plugins-10090410... > > On Tue, Dec 14, 20

Re: Do you use baker?

2010-12-14 Thread Sam Sherlock
I find using bake in conjunction with git very helpful (so if you overwrite something you can mix in the missing with freshly baked code) bake is wonderful - S On 14 December 2010 17:35, Yasir Arafat Hasib wrote: > You can bake in windows > http://arafats.info/cake-bake-in-windows/ > > You

Re: How to disable the previously loaded model

2010-12-14 Thread Miles J
The student() method is not being called since it is another action. Secondly, why should it be disabled? Another object isn't going to slow down your application. On Dec 14, 3:51 am, Amit Badkas wrote: > Hi, > > Please elaborate what you want to do as from the given code, it's not clear > eno

Re: CakePHP not load views

2010-12-14 Thread Yasir Arafat Hasib
Please on your debug mode and see the error message. To open debug mode http://arafats.info/cakephp-debug-problem-in-croogo-or-cakephp-1-3/ On Mon, Dec 6, 2010 at 7:41 PM, Raul Mangolin wrote: > Several people told me that this happened but none have discovered the > reason. > > Thank you for y

Cakephp add to cart plugin

2010-12-14 Thread Yasir Arafat Hasib
Hi, I need a add to cart plugin which is very easy to integrate in my app. -- Thanks & regards. Yasir Arafat (Hasib) Software Engineer Epsilon Consulting and Development Services (ECDS) Contact Information: Cell : +8801816536901 Web: http://arafats.info Check

Re: Tmp is not writable

2010-12-14 Thread Yasir Arafat Hasib
tmp and inside tmp every folder needs to be writable individually. On Sun, Dec 12, 2010 at 12:37 AM, cricket wrote: > On Sat, Dec 11, 2010 at 11:51 AM, lucaswxp wrote: > > Hello guys. > > Yesterday I have installed my first linux, and today I'm tryind to get > > cakephp to work... But I get th

Re: Do you use baker?

2010-12-14 Thread Yasir Arafat Hasib
You can bake in windows http://arafats.info/cake-bake-in-windows/ You can bake in linux/ ubuntu http://arafats.info/cake-bake-in-ubuntu/ On Sun, Dec 12, 2010 at 5:50 PM, Joshua Muheim wrote: > I'm using the bakery (you mean the cake bake command line, do you?) at > the beginning of projects...

Re: Best plugins presentation ever

2010-12-14 Thread Joshua Muheim
PDF: http://hotfile.com/dl/89428716/225a271/using-reusing-plugins-100904101846-phpapp01.pdf.html PPT: http://hotfile.com/dl/89428946/9e73d67/using-reusing-plugins-100904101846-phpapp01.ppt.html On Tue, Dec 14, 2010 at 5:06 PM, Joshua Muheim wrote: > Doing it right now... :-) > > On Tue, Dec 14,

Re: Best plugins presentation ever

2010-12-14 Thread Joshua Muheim
Doing it right now... :-) On Tue, Dec 14, 2010 at 4:08 PM, keymaster wrote: > Pierre Martin's: "Using and Reusing Plugins", given at cakefest. > > http://www.slideshare.net/real34/using-reusingplugins > > I tried downloaded it for reference and later re-viewing, but alas, it > is encoded as an Ap

Re: Attach behavior to AppModel on the fly? --psybear

2010-12-14 Thread Joshua Muheim
Thanks, amit. @Mark: You're completely right, but I have a component that assumes that every model has this component attached, and it would be nice if this attaching could be done automatically... So I guess I will have to attach it to every single model, then. On Tue, Dec 14, 2010 at 3:56 PM, e

Re: Form helper: send default values as named params? --psybear

2010-12-14 Thread Joshua Muheim
In fact, I'm doing right that at the moment (and some other functionalities in other components that alltogether do really good job in allowing even more RAD). :-) I guess as soon as they are real-life-proven, I will publish them. On Tue, Dec 14, 2010 at 4:11 PM, euromark wrote: > i would even c

Limitation of behaviors when it comes to parent:: calls? --psybear

2010-12-14 Thread psybear83
Hey everybody I think I really ran into a limitation of the behavior mechanism and I wonder whether there's an elegant solution. I have a simple behavior called AllowanceCheckable which basically just adds 4 methods to the model: class AllowanceCheckableBehavior extends ModelBehavior { functio

Re: Cakephp Sorting ASC and DESC NEW ISSUE WHEN VALUES COMES IN A RANGE LIKE 5,10,100,1234,765432.....

2010-12-14 Thread j.blotus
I bet that your column type is a string like char, varchar, or text. MySQL which I assume you are using does not support natural sorting on these types. Convert "Reg No" to int and you will be able to sort correctly! Hope this helps, James Fuller AKA jblotus http://www.jblotus.com On Dec 14, 12:

Re: Form helper: send default values as named params? --psybear

2010-12-14 Thread euromark
i would even create a component and pass a "whitelist" of valid field names this way you can use the code in several controllers and actions :) On 14 Dez., 08:49, Joshua Muheim wrote: > Thanks for this nice hint, Mark. I'll place it there. :-) > > > > > > > > On Tue, Dec 14, 2010 at 12:19 AM, eu

Re: Why Sanitize::stripTags not working in controller index() function;

2010-12-14 Thread euromark
why would you want to do that in the first place despite the fact that every line of code in your snippet seems to be wrong^^ what you need is h() - in the view templates: thats all you need to escape and secure your views. On 14 Dez., 07:08, "Dave Maharaj" wrote: > Off the top of my head I d

Best plugins presentation ever

2010-12-14 Thread keymaster
Pierre Martin's: "Using and Reusing Plugins", given at cakefest. http://www.slideshare.net/real34/using-reusingplugins I tried downloaded it for reference and later re-viewing, but alas, it is encoded as an Apple Keynote presentation and I am on a PC. Does anyone have a ppt version of it? Or, w

Re: Non-breaking spaces in baked views

2010-12-14 Thread euromark
and you shouldnt use those templates for productive websites where users can input data or anything else for that matter you should escape plain text with h() On 14 Dez., 16:01, euromark wrote: > you can GUESS - if you actually need to ask you will most certainly > always get "IE6"^^ > and in

Re: Non-breaking spaces in baked views

2010-12-14 Thread euromark
you can GUESS - if you actually need to ask you will most certainly always get "IE6"^^ and in this case as well and yes, unfortunately it is still widely used (mainly cooperations and unskilled home users) On 14 Dez., 11:17, Ryan Schmidt wrote: > On Dec 13, 2010, at 22:26, LarryTX wrote: > > >

Re: Attach behavior to AppModel on the fly? --psybear

2010-12-14 Thread euromark
you never use the app model directly so there should be no need to do is on app model level dynamically just hard-code it: var $actsAs = ... On 14 Dez., 13:01, Amit Badkas wrote: > Hi, > > You can use $this->Controller->MyModel->Behaviors->attached('MyBehavior'); > code to check if a particul

Re: Prefix routing and different user types

2010-12-14 Thread chris
I've got the above working, by doing something like this. Where 'usertype' is defined prefix like 'admin' if($this->Auth->User('accounttype_id')==3) { $this->Auth->loginRedirect = array('controller' => 'dashboard','action'=>'index','usertype'=>'1'); $this->Auth->logoutRedirect = ar

Cakephp Sorting ASC and DESC NEW ISSUE WHEN VALUES COMES IN A RANGE LIKE 5,10,100,1234,765432.....

2010-12-14 Thread joffin joy
Hi Sir/Madam, I have been working in cakePHP for some time and i have to say its very easy to build web based applications. But today i found out a strange issue in sorting of a page having pagination. As we click on the header it is sorted in both ASC and DESC order. But what the real issue is, i

Re: Issues with URL Rewriting in IIS

2010-12-14 Thread Tobi
... 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 this

Re: Prefix routing and different user types

2010-12-14 Thread chris
Thanks for the reply, will look at your suggestion and see what I can use from it. Do you have a way of automatically routing a user correct address after logging in, based on their role? If anyone has any further suggestions let me know. Thanks On Dec 14, 12:02 pm, "Dave Maharaj" wrote: > Wh

RE: Prefix routing and different user types

2010-12-14 Thread Dave Maharaj
What I did was simply write my own Configure::write('Routing.CustomRouting', array('Admin' => 'admin', 'Owner' => 'manage' , 'Employee' => 'editor')); simply because my routes and Roles did not match up and I hate arrays that are 0,1,2 since that's means nothing. Imagine trying to remember if $s

Re: Attach behavior to AppModel on the fly? --psybear

2010-12-14 Thread Amit Badkas
Hi, You can use $this->Controller->MyModel->Behaviors->attached('MyBehavior'); code to check if a particular behavior attached to a particular model or not Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Tue, Dec 14, 2010 at 5:02 PM, Joshua Muheim wrote: > Oh, and another

Re: How to disable the previously loaded model

2010-12-14 Thread Amit Badkas
Hi, Please elaborate what you want to do as from the given code, it's not clear enough. Also why your controller starts from tests_controller(){...? Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Tue, Dec 14, 2010 at 2:35 PM, Smile wrote: > HI Friends, > > Can any of you

Re: Attach behavior to AppModel on the fly? --psybear

2010-12-14 Thread Joshua Muheim
Oh, and another question: should I check whether the model has already the behavior XYZ attached before trying to attach it? (I'm using many behaviors in different plugins etc., so it could happen that a behavior is attached more than once.) On Tue, Dec 14, 2010 at 11:11 AM, psybear83 wrote: > He

Prefix routing and different user types

2010-12-14 Thread chris
Hi I have an application that a user can login too to access certain parts of the site. I'm using the Auth component, and have added a variable to my database that has different user types. I am then using the admin prefix routing, as well as another customer prefix for one of the user types. So

Re: Non-breaking spaces in baked views

2010-12-14 Thread Ryan Schmidt
On Dec 13, 2010, at 22:26, LarryTX wrote: > It is traditional to put a nonbreaking space in a cell that might be > blank at some times because some browsers will ignore a cell that is > blank, acting as if the weren't there. The result is a > trashed table. Fascinating! I figured there might be

Attach behavior to AppModel on the fly? --psybear

2010-12-14 Thread psybear83
Hey all I'd like to add a behavior to the AppModel on the fly from within a component. Normally you do... $this->Controller->MyModel->Behaviors->attach('MyBehavior'); ...but sadly for AppModel this doesn't work: $this->Controller->AppModel->Behaviors->attach('MyBehavior'); ...results in: Fata

How to disable the previously loaded model

2010-12-14 Thread Smile
HI Friends, Can any of you please let me know how to disble previously loaded model ?? I am describing my doubt through an example below. EX: I Am using a controller , test_contoller(){ //here 2 functions am using function student(){