Recording Emails Sent

2015-07-27 Thread #2Will
I'm trying to work out a good way to record all the emails the system has sent. I want to record them to DB, with columns for To, Subject and Message. I don't think that CakeEmail triggers any events or callbacks I can hook into? If I write a custom Log, I think I just get back the Whole

Re: Why CakePHP ?

2014-09-09 Thread #2Will
really? for everything? how is it? do you ever find it's missing anything? ecommerce, multi-language, plugins ? nice looking new site for it, as my mum would say tho, needs more pictures. On Tuesday, 9 September 2014 17:35:12 UTC+10, Marlin Cremers wrote: That's the reason why my company

Re: Security Component is Ruining my Life

2014-09-09 Thread #2Will
this component and I manage with those pretty fine On Tuesday, September 9, 2014 3:47:05 AM UTC+2, #2Will wrote: I've got an app i have been maintaining for a while now. The security component causes more headaches than anything else. In fact, because cakephp is so nice to work with, i think

Security Component is Ruining my Life

2014-09-08 Thread #2Will
I've got an app i have been maintaining for a while now. The security component causes more headaches than anything else. In fact, because cakephp is so nice to work with, i think Security Component (SC) causes all the headaches... I've read through the docs a fair bit, i have bits of code

Re: Why CakePHP ?

2014-09-08 Thread #2Will
You need a cms. have a look at silverstripe, statamic or wordpress. depending on your needs, one of those will be lovely. Don't use java. Don't roll your own cms. have a great day Will On Tuesday, 2 September 2014 15:47:59 UTC+10, prakhil samar wrote: Hi All, Hope you all are doing

Re: MustacheCake - A Mustache implementation for CakePHP.

2013-07-21 Thread #2Will
This is cool. Nice one! Are you using these for all your views? Are there any limitations you have come across using for templates? for example Can you call elements in .ctp files from the moustache files vice-versa? Will On Saturday, 20 July 2013 23:31:58 UTC+10, Dismounted wrote: Hi

Pattern Matching for Security-unlockedFields

2013-03-04 Thread #2Will
I'm dynamicly adding fields for hasMany relation in my form, with JS. Thats obviously messing with the Security components form tampering detection - and blackholing the request U can get it to not blackhole by doing this in the beforeFilter: $this-Security-unlockedFields = array(

Re: Fat CakePHP

2012-08-07 Thread #2Will
Cake is about 9Mb - its not very much. You could dump some bits like the console or some other part you aren't using. Not much gain to be made though, and then anybody building your sites with the cms is denied that component. I hear version 3 will be smaller in terms of file size because

Re: Cakephp 2.2 with php 5.4

2012-07-26 Thread #2Will
Thanks, Yes i have that stuff set - rewrite is working when the version is set to 5.2, not when 5.4. I'm not changing anything but php version. i agree its odd. For the moment, i'm using mamp pro which allows me to use 5.3, and the site is working. w -- Our newest site for the

Cakephp 2.2 with php 5.4

2012-07-24 Thread #2Will
Iv'e had to reinstall MAMP and the new version has php5.2.17 or 5.4. I'm working on an app that uses cake2.2 the site dosn't work at all. All urls get a generic 404 error. (not the cake one) I don't get any errors in cakes logs or php logs, just a not found or unable to stat in apache

Re: Cake becomes super-slow when loading assets from Plugins

2012-06-04 Thread #2Will
Me too. Debug kits jquery takes 5 seconds to load. - blocking page load. On Tuesday, 29 May 2012 17:58:25 UTC+10, Ernesto wrote: i forgot to say i'm usign Cake 2.2.0-RC1 on a Win7 server Il giorno martedì 29 maggio 2012 09:51:28 UTC+2, Ernesto ha scritto: Hi all! i noticed that Cake

Twig Templates

2012-05-28 Thread #2Will
Hello I have been trying out twig templates. I was pretty sceptical at first but we are doing an app where it would be great if the templates where auto escaped and the syntax keeps everything much more tidy which is nice. Anyway, I have only had partial success. Grahams plugin seems really

Re: Twig Templates

2012-05-28 Thread #2Will
oh, the plugin is this one: https://github.com/predominant/TwigView -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe

Re: A collection of Coda clips for CakePHP

2012-05-28 Thread #2Will
Hey dude. Thanks for these. Really helpful starting point. I have added a few in as i go of some stuff i can never remember. On Saturday, 30 May 2009 11:35:08 UTC+10, DanielMedia wrote: Hi All, Just wanted to drop in and let anyone know who might be interested (And uses the Coda

Re: The Great Web Framework Shootout

2012-02-20 Thread #2Will
I guess part of the problem for cake with this stuff is public image. Good framework. Bit slow. whatever. It makes building stuff easy. and i have never had a server performance issue with it. hopefully one day i will. w On Feb 21, 11:58 am, Seth seedifferen...@gmail.com wrote: Hello

Re: Organizing Controllers into subfolders in CakePHP 2

2011-12-22 Thread #2Will
You Can still set alternative locations for everything in the bootstrap though. I do this for my CMS. So everything for the cms is in one place, and the stuff specific to the site is in another. w App::build(array( 'Plugin' = array(ROOT . '/Tractor/Plugin/'), 'Controller' =

Re: TextHelper-Truncate Fails!

2011-12-16 Thread #2Will
I had a play around with this. I thought i was getting better results with using exact = true but I still got spans cut off. I Removed all the inline style and set exact to true and now I can't get it to cut any tags off. Seems like It can't cope with inline styles. Are you doing an email

CakeDC Tag Plugin

2011-12-15 Thread #2Will
Hi I'm using the Tags plugin. Its working ok generally. But when trying to paginate a list filtered by tag, I'm not getting any related table data at all. No related tags (a relationship the plugin deals with) and nothing from simple has one relationships i have defined in the post model

afterFind via a hasmany relationship with paginate

2011-11-22 Thread #2Will
Hello, When doing this $projects = $this-paginate(); and project hasmany round, should afterFind in Round be called? I put a bit of debug code in there and it isn't being run. If it isn't supposed to because it is related data no worries, just wondering if it supposed to do it and I have

Re: First try does not seem to find the CSS file

2011-11-20 Thread #2Will
this is normally because the .htaccess file is missing from the site root. because it is a hidden file or whatever... w On Nov 20, 7:43 pm, johng globalj...@gmail.com wrote: I have followed a tutorial for my first try using the scaffold, and I can connect to db and produce the output. But the

Re: query

2011-11-01 Thread #2Will
Arn't you using contain? I think if you set recursive = -1 for all the models and created your finds with contains to the models you actually needed, you wouldn't be hiding what tables are being queried, and the performance wouldn't be bad. w On Nov 2, 6:24 am, Chris Cinelli

Re: Can't get Plugin model to work / be noticed at all

2011-10-23 Thread #2Will
hmm, its broken again this morning. Cache fully switched off. issue unresolved. here are the paths its looking in (App::path('Model', 'Calendar')): [0] = /Users/willbarker/Dropbox/tractor2/app/Plugin/Calendar/ Model/ [1] = /Users/willbarker/Dropbox/tractor2/app/Plugin/Calendar/ models/

Re: Retrieve extra field with generatetreelist

2011-10-23 Thread #2Will
You can speficy the field to use as the value, but i think only one field havn't tried though... $tasks = $this-Category-generateTreeList(null, null, '{n}.Category.status', -); you could make a combinded field in the model. What i have done in the past is order by lft to get the records in

Re: Can't get Plugin model to work / be noticed at all

2011-10-21 Thread #2Will
Thanks Jose, that cleared it out and everything was working again last night, but this morning it had forgotten again and wasn't using the model. I cleared out the cake cache and it used the model. No doubt it will forget again soon. What could be causing this? Its like it sometimes writes

Re: using App::build in cakephp 2.0 to specify a path for plugins

2011-10-20 Thread #2Will
Thank you jose! i am gonna literally run home and try that now! On Oct 20, 1:41 pm, José Lorenzo jose@gmail.com wrote: You are missing a trailing slash in you App::build() path -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: using App::build in cakephp 2.0 to specify a path for plugins

2011-10-20 Thread #2Will
Yep, that fixed it, thank you very much, it was simple but i was stuck. will On Oct 20, 5:11 pm, #2Will willjbar...@gmail.com wrote: Thank you jose! i am gonna literally run home and try that now! On Oct 20, 1:41 pm, José Lorenzo jose@gmail.com wrote: You are missing a trailing

Re: Can't get Plugin model to work / be noticed at all

2011-10-20 Thread #2Will
. is there a way to look up where its looking for a model class? On Oct 20, 1:36 pm, #2Will willjbar...@gmail.com wrote: OK, its being ignored again.  Haven't changed the code in the plugin and have deleted the cache 18 times even rebooted the machine. Does anybody have any clues whats going on here

using App::build in cakephp 2.0 to specify a path for plugins

2011-10-19 Thread #2Will
Hello I have added a path to my plugins paths at the top of my bootstrap file like this: App::build(array( 'Plugin' = array(ROOT . '/tractor/Plugin') )); and put the glorious debugKit in that folder. I get the error below. Can anybody help me out here? Seems like there isn't much to

Re: Can't get Plugin model to work / be noticed at all

2011-10-19 Thread #2Will
OK, its being ignored again. Haven't changed the code in the plugin and have deleted the cache 18 times even rebooted the machine. Does anybody have any clues whats going on here? w On Oct 18, 6:13 pm, #2Will willjbar...@gmail.com wrote: Oh.  Now it works.  But no idea why, so not so much

Re: rendering elements from helpers in Cakephp2

2011-10-18 Thread #2Will
oh, awesome. thank you very much indeed! : ) On Oct 18, 5:23 pm, rchavik rcha...@gmail.com wrote: A helper has the calling view object already stored in its $_View variable. Try: $this-_View-element('...'); -- Our newest site for the community: CakePHP Video Tutorials

Re: Can't get Plugin model to work / be noticed at all

2011-10-18 Thread #2Will
using the automagic model creation on the fly. (at least i think cake does that) On Oct 17, 4:53 pm, #2Will willjbar...@gmail.com wrote: Hello I'm trying to make a calendar plugin for 1.3.  Its sort of working, but the Event model definition is being ignored and so its relationship

Re: Can't get Plugin model to work / be noticed at all

2011-10-18 Thread #2Will
, #2Will willjbar...@gmail.com wrote: I upgraded to 2.0 today, which went quite smoothly, but i still have this problem the book says:  You should get a “Missing Model” error  but i don't at all. Looking in the included file list in debugkit - it is including the controller files for the plugin

Re: 2.0 upgrade shell

2011-10-18 Thread #2Will
I did this yesterday. Similar process - i wasn't sure how to run the upgrade shell, I ended up replacing the app folder with my 1.3 app, and then running the shell. I don't have it in my path so instead i cd'd to my app folder and ran ../lib/Cake/Console/cake upgrade all which renamed a lot of

Re: CakePHP 2.0.0 release

2011-10-18 Thread #2Will
Yep - I think cake switched data access to PDO for 2.0. This is a php module - not part of the Cake download. If this is missing that might be why cake connected before upgrade and not after. do a phpinfo and find out if its installed. w On Oct 19, 5:51 am, Paul Vaughan paulie...@gmail.com

Re: CakePHP 2.0 Released

2011-10-18 Thread #2Will
Congratulations and thank you to the team. Cake 2.0 is awesome. The upgrade process is straight forward and now my app is extra fast and fabulous. Thanks! Will -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: CakePHP 2.0.0 release

2011-10-18 Thread #2Will
mac x os I need your help please? specs on my mac Mac OS X  ver 10.5.8 On Oct 17, 11:46 pm, #2Will willjbar...@gmail.com wrote: Any error messages? Did you rename the file to database.php? do you have pdo installed? On Oct 18, 3:15 pm, zer0_gravity zr...@hotmail.com wrote

Re: CakePHP 2.0.0 release

2011-10-17 Thread #2Will
Any error messages? Did you rename the file to database.php? do you have pdo installed? On Oct 18, 3:15 pm, zer0_gravity zr...@hotmail.com wrote: Hi everyone I just install Cake 2.0.0 and I am having an issue with it. The issue is that cakePHP is not able to connect to the database

rendering elements from helpers in Cakephp2

2011-10-17 Thread #2Will
Hello, in 1.3, I could do this: $View = ClassRegistry::getObject('view'); // boring code $str = str_replace($tagMatches[0][$i], $View-element($element, $options), $str); and i could ouptut elements from my filter helper. For short codes and stuff. I think View has been removed from the

Can't get Plugin model to work / be noticed at all

2011-10-16 Thread #2Will
Hello I'm trying to make a calendar plugin for 1.3. Its sort of working, but the Event model definition is being ignored and so its relationship to other models (in the main app) are not working. I guess im putting it in the wrong place, but ive gone round and round and round in circles and its

Errors trying to run a shell in cron

2011-09-29 Thread #2Will
Hello. I made a shell for my app - notify. It emails people things. Its all working from the command prompt on my mac , but when i try and use it on the stage server through cron, it emails me an error. It seems like cake is looking for things in the wrong place:

Re: Errors trying to run a shell in cron

2011-09-29 Thread #2Will
Sorry, fogort some things: Cakephp2.0 rc2 and my cron comand is: home/kindlem1/public_html/eeip/app/Console/cake notify On Sep 29, 5:01 pm, #2Will willjbar...@gmail.com wrote: Hello.  I made a shell for my app - notify.  It emails people things. Its all working from the command prompt on my

Re: Errors trying to run a shell in cron

2011-09-29 Thread #2Will
Thanks, but it isn't that the settings are wrong on the folder: the console is trying to use the wrong folder. On Sep 29, 5:25 pm, Andras Kende and...@kende.com wrote: Try: chmod -R 777 /home/kindlem1/tmp On Sep 29, 2011, at 2:01 AM, #2Will wrote: Hello.  I made a shell for my app

2.0 Pdo errors

2011-09-28 Thread #2Will
Im using cakephp 2.0 and getting some funny errors: [PDOException] You cannot serialize or unserialize PDO instances plus a stack trace. In this case its saving a habtm relationship from a multi select. Normally easy, but today it keeps breaking. Why? no idea. Worked yesterday. Is there a way

Re: 2.0 Pdo errors

2011-09-28 Thread #2Will
Yes there is. turn debug to zero and look in the log files instead. there is a nice sane error message about data integrity.i really wish i did that 2 hours ago. w On Sep 28, 6:25 pm, #2Will willjbar...@gmail.com wrote: Im using cakephp 2.0 and getting some funny errors

Re: Duplicate emails sent.

2011-09-23 Thread #2Will
, Atenciosamente, Vinícius Moraes 2011/9/22 #2Will willjbar...@gmail.com I have Upgraded to the new RC2 but this is still an issue. This happens with either the default Mail config or using gmail as smtp. So it dosn't seem to be something to do with the server. if anybody can shed any

Re: Duplicate emails sent.

2011-09-22 Thread #2Will
I have Upgraded to the new RC2 but this is still an issue. This happens with either the default Mail config or using gmail as smtp. So it dosn't seem to be something to do with the server. if anybody can shed any light on this, that would be awesome. will On Sep 22, 3:25 pm, #2Will

Re: Duplicate emails sent.

2011-09-21 Thread #2Will
Still stuck on this. Whats odd is it is sending duplicates to my work email, and another pop type email - but if i set the to my gmail, just the one email. Seems odd. Must be a reason. w On Sep 14, 4:25 pm, #2Will willjbar...@gmail.com wrote: Hello My little app is sending duplicates

Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
Hello I am trying to use Mariano's soft delete plugin with cakephp 2.0 but have come accross little problem Call to protected method Model::_deleteDependent() from context 'SoftDeletableBehavior' so thats $model-_deleteDependent($id, $cascade); on line 102 This error is because as per the

Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
Hello I am trying to use Mariano's soft delete plugin with cakephp 2.0 but have come accross little problem Call to protected method Model::_deleteDependent() from context 'SoftDeletableBehavior' so thats $model-_deleteDependent($id, $cascade); on line 102 This error is because as per the

Re: Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
Thanks for replies, appologies for the multiple posting. Well, you can just use the public method `public Model::delete($id = null, $cascade = true)`, which will call `protected _Model::_deleteDependent($id, $cascade) The behaviour is skipping delete in favor of making the record as deleted

Re: Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
. will On Sep 19, 6:49 pm, #2Will willjbar...@gmail.com wrote: Thanks for replies,  appologies for the multiple posting. Well, you can just use the public method `public Model::delete($id = null, $cascade = true)`, which will call `protected _Model::_deleteDependent($id, $cascade) The behaviour

Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-15 Thread #2Will
I'm not sure about statistics, i mean they can be misleading right? for example - your google trends thing - does it really say cakephp is struggling? or does it say RoR has tanked from its 2006 peak down to sub cake levels of interest? And is django the bomb? or are half its hits mostly about

Duplicate emails sent.

2011-09-14 Thread #2Will
Hello My little app is sending duplicates of its emails. Here is an example function: [code] $this-log($media); App::uses('CakeEmail', 'Network/Email'); $CakeEmail = new CakeEmail(); $CakeEmail-viewVars(array('media'=$media, 'person'=$person)); $CakeEmail-from(Configure::read('app.email'));

Re: Editing data

2011-09-14 Thread #2Will
Are you doing a saveAll rather than save in your controller? On Sep 14, 7:27 pm, Mohd Hasnol hasnolm...@gmail.com wrote: inside edit.ctp ?php echo $this-Form-create('Useradmin', array('action'='edit'));? ?php                     echo $this-Form-input('A.first_name');                    

Re: Can I safely start a project on 2.0RC1?

2011-09-08 Thread #2Will
I'd definetly go for 2.0. Ive developed an app on 2.0 beta rc1. very few problems really. On Sep 9, 11:07 am, Greg Skerman gsker...@gmail.com wrote: RC1 indicates very close to release If you're starting a new project from scratch, its entirely likely by the time you get to production,

Re: cakephp 2.0 Email - Passing variables to templates

2011-09-07 Thread #2Will
-libraries... for more Tarique On Wed, Sep 7, 2011 at 4:40 AM, #2Will willjbar...@gmail.com wrote: Hello, When using the new email Utility library with cake 2.0, what is the procedure for passing variables? -- = PHP for E

Re: cakephp 2 app deployed on a subdomain

2011-09-07 Thread #2Will
agreed. In my experience, it is never a bug with cake, always something i did wrong or a server set up thing. hmm, its wobbling along now ok. Ill report back what happens when it deploys to the live server rather than this shared staging environment. thanks for helping me out with this. will

Re: cakephp 2 app deployed on a subdomain

2011-09-06 Thread #2Will
/ login' or do they instead  access '/people/login'? HTH, Paul @phpMagpie On Sep 6, 12:29 am, #2Will willjbar...@gmail.com wrote: ok, thank you for replying. I think what they are talking about in that is when you want to be able to use different subdomains for different links etc

Re: cakephp 2 app deployed on a subdomain

2011-09-06 Thread #2Will
app to get it working. I don't really understand the changes in the htaccess file - why the change? is it a bug? Something wrong with the server setup? thanks will On Sep 7, 8:09 am, #2Will willjbar...@gmail.com wrote: Sorry for confusion, yes thats right just an app, deployed in the simple

cakephp 2.0 Email - Passing variables to templates

2011-09-06 Thread #2Will
Hello, When using the new email Utility library with cake 2.0, what is the procedure for passing variables? In the past, I just used set, and that passed a variable to the view / email template. I could also use Configure::read these aren't working any more. Thanks will -- Our newest site

Re: cakephp 2 app deployed on a subdomain

2011-09-05 Thread #2Will
 pm, WebbedIT p...@webbedit.co.uk wrote: Cake 2.0 beings some canges to the router to help with subdomains that were touched on at CakeFest:http://book2.cakephp.org/en/appendices/new-features-in-cakephp-2-0.ht... HTT, Paul @phpMagpie On Sep 5, 1:38 am, #2Will willjbar...@gmail.com wrote

cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
Hello I have deployed a little app to a subdomain as a stage environment - iv'e done this before with 1.3 apps and not had to do anything special to get it to work. The app works on my localhost I'm getting errors where for example the login form now gives error Error: The requested address

Re: cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
Sorry, forgot to mention: i'm on 2.0 rc1 On Sep 5, 9:56 am, #2Will willjbar...@gmail.com wrote: Hello I have deployed a little app to a subdomain as a stage environment - iv'e done this before with 1.3 apps and not had to do anything special to get it to work. The app works on my localhost

Re: cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
as expected. On Sep 5, 9:58 am, #2Will willjbar...@gmail.com wrote: Sorry, forgot to mention: i'm on 2.0 rc1 On Sep 5, 9:56 am, #2Will willjbar...@gmail.com wrote: Hello I have deployed a little app to a subdomain as a stage environment - iv'e done this before with 1.3 apps and not had

Re: cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
at other apps ive deployed to subdomain-stage , the PHP_SELF is /app/webroot/index.php without the /controller/action - but thats 1.3 apps. hmm. more digging. On Sep 5, 10:11 am, #2Will willjbar...@gmail.com wrote: just running some debug statements looking at paths: debug(ROOT); debug

Re: console errors when running 2.0 Console/cake

2011-08-15 Thread #2Will
Hi Jose, i am on 2.0.0-beta I downloaded again just now and tried it again without the debug_kit plugin. Same result. i'm trying to fiddle about with debug statements, but not getting far. The $matches array for that first missing index ('tag') is: ## DEBUG ## Array ( [0]

Re: console errors when running 2.0 Console/cake

2011-08-14 Thread #2Will
Hi Jose, i am using OSX 10.6.8 and i am cd'ing into the app folder and running Console/cake in amongst row after row of notices are all the messages i am expecting when running that based on the docs in github. one thing i have noticed this morning is that it makes a comment about the paths,

console errors when running 2.0 Console/cake

2011-08-12 Thread #2Will
Hello, I'm starting a new project and have installed cake2.0 today. All good so far, got the debug kit working etc. I have run into a problem when trying to run bake, i'm getting lots of repeated notices along the lines of Undefined index: tag in /Users/me/sites/mywebapp/lib/Cake/Console/

Re: CakePHP 1.3.11 and 2.0.0-beta released

2011-07-27 Thread #2Will
Thanks to everyone on the team - hugely appreciated. Will On Jul 27, 1:46 pm, taqman filler taqman...@gmail.com wrote: thank you for hard work Best Regard taqman 2011/7/27 Vitor Pacheco vitorpc...@gmail.com: great job! thank you for this! 2011/7/26 O.J. Tibi ojt...@gmail.com

Re: Newbie model question...

2011-04-27 Thread #2Will
You need a similar association in the council model defenition for hasmany people. You don't need to do anything in the regions model to get the people, cake works its way through. Then use recursive to automatically provide deeper associations, or use contain to be more specific about what you

Re: CakePHP 1.3.8 and 1.2.10 released

2011-04-20 Thread #2Will
Thanks Mark and anyone else that contributed. cake rocks, and its amazing you guys get time to work on it. respect and thank you! On Mar 21, 6:47 am, mark_story mark.st...@gmail.com wrote: The CakePHP core team is proud to announce the immediate availability of CakePHP 1.3.8 and 1.2.10. These

Re: Locale files No such file or directory error apparently causing speed issues.

2011-02-02 Thread #2Will
again, ta for pitching in with some help here. On Feb 2, 8:17 pm, AD7six andydawso...@gmail.com wrote: On Feb 2, 5:48 am, #2Will willjbar...@gmail.com wrote: Hi Thanks for your response AD7six When you say its not an error, do you mean cake is meant to do this, as part of looking

Re: Locale files No such file or directory error apparently causing speed issues.

2011-02-01 Thread #2Will
like a lot of set up for a feature im not using. Which makes me think its either a non issue or im doing something fundamentally wrong. On Jan 28, 8:56 pm, AD7six andydawso...@gmail.com wrote: On Jan 28, 5:57 am, #2Will willjbar...@gmail.com wrote: Hi Everyone, Im getting quite slow

Re: Using two tables

2011-01-30 Thread #2Will
I think you need to have a look at hasMany. User has many my_files. http://book.cakephp.org/view/1043/hasMany So something like: class User extends AppModel { var $name = 'User'; var $hasMany = 'MyFile'; } On Jan 30, 10:33 pm, newguy aimanparv...@gmail.com wrote: Hi I am working on

Re: Jquery Help

2011-01-29 Thread #2Will
You can include whatever JS you need like this: http://book.cakephp.org/view/1589/script its pretty straightforward. Just add in the script in either the layout ctp or the view. Bit of fiddling about to make sure jquery is added before the jquery dependent plugin and you are off. if you are

Locale files No such file or directory error apparently causing speed issues.

2011-01-27 Thread #2Will
Hi Everyone, Im getting quite slow speeds off a small site hosted on Media Temples Grid service. The Tech guys there say that my app (a basic cms) is giving this error: There seem to be many failed stats for /app/locale/LC_MESSAGES. An strace of the index.php shows ~216 failed calls for this

JS Helper Submit method. Easy, but how do i add to it?

2010-11-13 Thread #2Will
Hi, I have a simple submit button magicly turning my form into ajax: echo $this-Js-submit('Add', array('update' = '#update-zone-phone', 'class'='zebidee', 'url'='/phones/add')); works really well. But, how do i add to what happens when that button is clicked? I'd like to reset the form and

Re: JS Helper Submit method. Easy, but how do i add to it?

2010-11-13 Thread #2Will
}); $(#PhoneAddForm)[0].reset(); $(#phone-add-box).delay(2000).slideUp() ; return false; }); '; $this-Js-buffer($a); ? Which seems straightforward enough, unless someone clever thinks this is a stupid way to do it, Self rescue! On Nov 14, 2:33 pm, #2Will willjbar...@gmail.com wrote: Hi

Redirect in a component

2010-10-19 Thread #2Will
Hi, Im trying to redirect from a component, and in the cookbook it says this: function redirectSomewhere($value) { // utilizing a controller method $this-controller-redirect($value); } http://book.cakephp.org/view/64/Creating-Components But that throws

Re: Redirect in a component

2010-10-19 Thread #2Will
on init function startup($controller){ $this-controller = $controller; } function someredirect(){ $this-controller-redirect('/'); } On Tue, Oct 19, 2010 at 10:35 AM, #2Will willjbar...@gmail.com wrote: Hi, Im trying to redirect from a component, and in the cookbook it says

Re: CakePHP Tags Plugin Question 2

2010-08-04 Thread #2Will
', 'Content.slug') ) ), 'by' = array('physical')); $events = $this-paginate('Tagged',$filter); On Aug 3, 2:39 pm, #2Will

CakePHP Tags Plugin

2010-08-02 Thread #2Will
Hi everybody, Ive downloaded and tried out the tags plugin from cakeDC. It all seems to be working ok. So now i want to push my luck... I'd like to be able to add more than one taxonomy to my model. Can anyone shed any light on how i should go about this using this very pleasant plugin? So

CakePHP Tags Plugin Question 2

2010-08-02 Thread #2Will
Sorry but i seem to be struggling today. Ive got my index page showing my paginated list and filtering by tag, but what if i want to add in more filters? so $filter = array( 'Event.postcode' = '4883') $this-paginate['Tagged'] = array( 'model' = 'Event',

Re: CakePHP Tags Plugin Question 2

2010-08-02 Thread #2Will
. The line should be $filter = array('Event.postcode' = '4883'); On Aug 2, 11:24 pm, #2Will willjbar...@gmail.com wrote: Sorry but i seem to be struggling today.  Ive got my index page showing my paginated list and filtering by tag, but what if i want to add in more filters? so  $filter

Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-28 Thread #2Will
If you encage your thoughts about who supports what on the server side, you lost already. I think thats a bit dramatic. I just want to be able to deploy my cakephp apps to my regular local hosting company (hosting is much more expensive here in australia). Steady improvement is awesome, and

Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-27 Thread #2Will
Jon, i see what you're saying, but plenty of us are making small - medium size sites that deploy to clients hosting (shared) and run just fine. Its serious to them :) If you don't operate in this space, you would be amazed how clients baulk at even top end shared hosting prices (but dreamhost is

Re: Application Settings stored in the DB and available in plugin models?

2010-06-17 Thread #2Will
it in the AppController beforeFilter, and are using beforeFilter in your plugin AppController, make sure that you are calling parent::beforeFilter() in your plugin's AppController. regards, Sam On Jun 15, 6:09 pm, #2Will willjbar...@gmail.com wrote: Hi,  I have some settings set in the admin area and stored

Application Settings stored in the DB and available in plugin models?

2010-06-15 Thread #2Will
Hi, I have some settings set in the admin area and stored in the db that i use throughout the app, and would like to access in a plugin. I get the settings like this in the app controller: function _getSettings(){ $this-settings = $this-Setting-find(); #get them

Re: How to add ck finder functionality in cakephp 1.3

2010-05-27 Thread #2Will
There are a couple of articles on this out there. Ckeditor dosn't come with a filebrowser by default you have to set it up your self. check these out: http://www.google.com.au/search?q=cakephp+ckeditorie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a The fourth link down is

Re: Problems with admin routing in 1.3 stable

2010-05-19 Thread #2Will
Not sure if this helps, but im running 1.3 stable with admin routing and its working ok, so it might be something else going wrong. i have: Configure::write('Routing.prefixes', array('admin')); in config and nothing about admin in routes and no changes to the form action parameters in

Design Props

2010-05-10 Thread #2Will
http://webdesignledger.com/inspiration/55-inspiring-examples-of-slideshows-in-web-design Cake featuring in a design gallery. nice. 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

Plugins in 1.3

2010-04-29 Thread #2Will
Hi, Do plugins in cake1.3 need to be configured like it shows in the new bootstrap file even if they are in the standard /app/plugins folder? My $html-css links no longer find the files stored in the /app/ plugins/status/vendors/css folder. also, this: $.get(/status/google_analytics/?php echo

Re: Plugins in 1.3

2010-04-29 Thread #2Will
be that your using some code that has been depreciated in 1.3 - S On 29 April 2010 09:35, #2Will willjbar...@gmail.com wrote: Hi, Do plugins in cake1.3 need to be configured like it shows in the new bootstrap file even if they are in the standard /app/plugins folder? My $html-css

Different time outs for different Session variabes.

2010-04-21 Thread #2Will
Hello. Is it possible to have different timeouts for different session variables in cake? I have a long session set in config.php so that the admin area doesn't time out too quick. But i want variables storing google tracking codes to time out on closing the window. Thanks for any help. Will

Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread #2Will
coda. dosn't prompt you for cake functions etc but the ftp publishing, terminal integration, svn etc is ace. its just all very easy. On Apr 20, 1:38 pm, morficus morfi...@gmail.com wrote: Same here. I'm using Aptana Studio as well. I love that I can have it SFTP into my server and to dev

Re: setting habtm checkbox options class name

2010-04-12 Thread #2Will
echo $form-input('User', array('multiple'='checkbox', 'label'='', 'class' = 'Whatever')); Hi, Thanks for replying. That sets all of the checkboxes to the same class though. what if i want to give the checkboxes for administrators an admin class, moderators get a mod class, authors get a

setting habtm checkbox options class name

2010-04-11 Thread #2Will
Hi bakers I'm creating a habtm list of checkboxes like this: echo $form-input('User', array('multiple'='checkbox', 'label'='')); which works brilliantly. Now i'd like to enhance it by adding a class name to each input based on the user group. Is that possible whilst still using the

Re: Ckeditor + CkFinder How to

2010-03-23 Thread #2Will
Hi Rafael Ive done something similar with corefive's open source filemanager. http://www.asecondsystem.com/2009/09/14/integrating-ck-editor-with-cakephp/ http://www.asecondsystem.com/2010/01/19/integrating-a-file-browser-into-ckeditor-cakephp/ It all worked out quite simple once the pieces

Re: Expandable Behaviour Data not available when record obtained via habtm

2010-03-11 Thread #2Will
the Expandable code after the fact to convert the fields manually. - Jamie On Mar 10, 11:52 pm, #2Will willjbar...@gmail.com wrote: Hi, I have a model with the expandable behaviour from debuggable, and its working great to add meta data to my content rows. When I add related content

Expandable Behaviour Data not available when record obtained via habtm

2010-03-10 Thread #2Will
Hi, I have a model with the expandable behaviour from debuggable, and its working great to add meta data to my content rows. When I add related content via a habtm relationship, the expanded fields arn't available. Has anyone else found this problem, and maybe an easy fix? so my contents table

  1   2   >