Cakephp 2.4.4 extending ModelValidator?

2014-11-13 Thread fr3nch13
Is there a way to extend the ModelValidator? I know you can do things like this in the controllers: public $helpers = array( // Core Helpers 'Session', 'Time', 'Html' = array('className' = 'Utilities.HtmlExt'), 'Paginator' = array('className' =

Cakephp 2.x - Changing the name of a table within the schema

2013-02-14 Thread fr3nch13
Is there a way to change the name of a table (tables) within the database schema? reference: (http://book.cakephp.org/2.0/en/console-and-shells/schema-management-and-migrations.html) I was unable to find out how to do this via googling, or searching the api/book. Basically this is what I'm

Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
://api.yahoo.com/' )); This is how powerful CakePHP is :D On Dec 15, 8:48 am, fr3nch13 fr3nc...@gmail.com wrote: Has anyone tried using a proxy server with HttpSocket? I have been looking all over via the normal channels (google, api, bakery, book, etc.) to no avail. If so, could you please

Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
] = ) [cookies] = Array ( ) ) ) On Dec 15, 8:56 am, fr3nch13 fr3nc...@gmail.com wrote: Thanks! I'll try this out and let this group know if it was successful. On Dec 14, 10:04 pm, gianpaulo gcbasa...@gmail.com wrote: Try this: $HttpSocket = new HttpSocket

Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
Also, some more information. 1. i don't have access to change anything on the squid proxy. 2. trying with curl works: curl --proxy [proxyhostname]:[port] http://www.google.com On Dec 15, 10:18 am, fr3nch13 fr3nc...@gmail.com wrote: It doesn't seem to be working. Any help would be greatly

Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
 am, fr3nch13 fr3nc...@gmail.com wrote: Also, some more information. 1. i don't have access to change anything on the squid proxy. 2. trying with curl works:     curl --proxy [proxyhostname]:[port]http://www.google.com On Dec 15, 10:18 am, fr3nch13 fr3nc...@gmail.com wrote: It doesn't seem

Re: mod_rewrite exeption

2009-12-15 Thread fr3nch13
what does your .htaccess file look like in your webroot? On Dec 15, 10:02 am, Ragnis ragnis.ar...@gmail.com wrote: In my htdocs directory i have files: app, cake, vendors, global Now, when i go example.com/global/, i want to see folder global instead of cake 404 error. Check out the new

Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
I just tried it with cake 1.2.5 stable, and it's still not working like how gainpaulo was describing above. Is this indeed the way it's supposed to be working? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

HttpSocket with proxy server

2009-12-14 Thread fr3nch13
Has anyone tried using a proxy server with HttpSocket? I have been looking all over via the normal channels (google, api, bakery, book, etc.) to no avail. If so, could you please point me in the right direction? Check out the new CakePHP Questions site http://cakeqs.org and help others with

Boundaris in Email Component

2009-03-26 Thread fr3nch13
I noticed that when i sent a multipart/alternative (html and text email in 1 using $this-Email-sendAs = 'both') that the boundary is '- alt--' with no boundary generated. I looked at the Email Component's source to see why and it seems a boundary is only generated if an attachment is present.

Re: Sluggable behaviour issue

2009-03-26 Thread fr3nch13
I've also noticed this happen when you do a Model::find(); and the recursive is high ($this-User-recursive = 2). If the returned results are large enough, it will throw this as the array is too big. In some cases i have had to set recursive to 0, then do a foreach loop and get only the info i

With debug = 0, Cache::write isn't writing

2009-03-18 Thread fr3nch13
I use the cache class in a more 'hands-on' approach then the manual states: In config/core.php i have: Configure::write('Cache.disable', false); Configure::write('Cache.check', true); -- i've set to both true and false, no diff. Cache::config('configname', array('engine' = 'File',

Re: With debug = 0, Cache::write isn't writing

2009-03-18 Thread fr3nch13
On further review, it seems that the Cache::write() works within the libraries, for the internal configs, but not for the configs i have defined in config/core.php Is it not reading these configs? --~--~-~--~~~---~--~~ You received this message because you are

Re: File Uploading problem

2008-10-20 Thread fr3nch13
It may have to do with your form tag missing some attributes. See: http://cgi-lib.berkeley.edu/ex/fup.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread fr3nch13
Overwrite the method in any class (controller or even appcontroller/ appmodel) that inherits the library's class (controller/model) On Sep 5, 6:52 am, Jaime [EMAIL PROTECTED] wrote: It is possible to define custom paginate() and paginateCount() methods in a model. But sometimes many models

Re: Cake 1.1.19 stable

2008-09-05 Thread fr3nch13
IMO the RC2 is kind of a misnomer as this is the most stable release candidate of any software i've ever worked with. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: HELP starting Cakephp

2008-09-05 Thread fr3nch13
http://book.cakephp.org/ I agree, the blog tutorial in the book would be your best place to start as a simple 'hello world' wont show you all of the advantages and options available to you in this framework. IMO, use version 1.2, not 1.1 --~--~-~--~~~---~--~~ You

Re: Memory leakage

2008-09-04 Thread fr3nch13
Damn, you beat me too it. :-p There are two ways you can tell if it's a nasty white space: 1. Look at your source code. If there is a space or new line before your dtd/html tag, then you know it's your problem. Just make sure your layout template doesn't contain that space so you know it's not

Re: html select State/Country dropdown in CakePHP ?

2008-06-17 Thread fr3nch13
I accomplished something similar to this using ajax calls (ajax helper and cakephp 1.1). This should point you in the right direction: http://calculator.boxcart.com/ On Jun 17, 10:28 am, butangphp [EMAIL PROTECTED] wrote: Hey, I was wondering if there Cake has a way to automatically generate a

Re: 167+ MB memory size fatal error in .../cake/libs/model/datasources/

2008-05-22 Thread fr3nch13
Check your model associations. I've ran into this when my associations were returning a huge array. If it's a page where you are listing items and your not using their associations, temporarily remove those associations for that instance of grabbing the list. I think the function is something

Re: session garbage savehandler = cake

2008-05-22 Thread fr3nch13
By default cakephp uses php to manage sessions so check out the session settings in php.ini check this out http://www.mail-archive.com/cake-php@googlegroups.com/msg17723.html On May 22, 7:54 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, when will old session data be deleted when I

Re: Routing - Many Slashes - One Parm

2008-05-22 Thread fr3nch13
try $Route-connect('/thumb/:link', array('controller' = 'obrazki', 'action' = 'skaluj')); then in your skaluj action in your controller, take a look at debug($this-params); It should have the info you need and you should be able to do a join(), etc. On May 22, 9:26 am, ar2oor [EMAIL PROTECTED]

Re: Html Helper link onclick option question

2008-05-22 Thread fr3nch13
You have to turn off the escaping in the link functions, it auto escapes. Check out: http://www.donutczar.com/blog/?p=4 http://api.cakephp.org/1.2/class_html_helper.html On May 22, 4:56 am, jimbo [EMAIL PROTECTED] wrote: Hi, can anybody help me with this problem, I am creating a simple link

Re: Saving NOW() in model

2008-05-22 Thread fr3nch13
Most likely uses php's time (didn't check), but a good reason for this is to allow supporting of multiple databases (or even flat files) instead of db specific functions. On May 22, 10:25 am, Zifnab [EMAIL PROTECTED] wrote: Ok, well for consistency's sake, do you know if cakePHP's automatic

Re: Appending data in Session

2008-05-22 Thread fr3nch13
to add onto b logics, you can use the id as the key in an associative array as the sessions use the period as it's delim: writing: $this-Session-write('product.'.$id, $name); reading $products = $this-Session-read('product); On May 22, 10:26 am, b logica [EMAIL PROTECTED] wrote:

Re: Appending data in Session

2008-05-22 Thread fr3nch13
forgot, this also eliminates the need to check to see if it's there first. On May 22, 10:38 am, fr3nch13 [EMAIL PROTECTED] wrote: to add onto b logics, you can use the id as the key in an associative array as the sessions use the period as it's delim: writing: $this-Session-write('product

Awesome Cake!

2008-05-09 Thread fr3nch13
Shamelessly stolen from digg. http://digg.com/food_drink/Computer_Nerd_Birthday_Cake http://www.flickr.com/photos/chantastic/1590993819/sizes/l/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

PHP easter eggs/ undocumented feature.

2008-04-04 Thread fr3nch13
hey cake guys, long time no talkie for me. there is an undocumented feature in php that exposes itself. i tested it on an install of cakephp and it showed itself. ** This is no direct effect from cakephp code, but of just php *** Though you guys might want to know about it. This doesn't have

Paginate HABTM in the views question.

2008-01-19 Thread fr3nch13
I looked over group, blogs, bakery, api, code, etc. and i can't seem to figure this one out. I'm paginating like suggested here: http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-relationship/ But where the article ends/is missing is what do you do in your view?

Re: Paginate HABTM in the views question.

2008-01-19 Thread fr3nch13
seems like this isn't a new issue: https://trac.cakephp.org/ticket/1903 On Jan 19, 10:41 am, fr3nch13 [EMAIL PROTECTED] wrote: I looked over group, blogs, bakery, api, code, etc. and i can't seem to figure this one out. I'm paginating like suggested here:http://cakebaker.42dh.com/2007/10

Re: habtm or hasmany

2008-01-19 Thread fr3nch13
you could do it both ways technically, but IMO i would go with the HABTM way and then create a model on the join table and use the 'with' option in HABTM associations. Example: class Group extends AppModel { var $hasAndBelongsToMany = array('User' = array('with' = 'GroupsUser')); } class

Re: Paginate HABTM in the views question.

2008-01-19 Thread fr3nch13
Ok, i found a solution to this and submitted a diff for it: https://trac.cakephp.org/ticket/1903#comment:10 This should allow proper pagination of a HABTM associated model on the main model's view .ctp file Let me know what you guys think. On Jan 19, 12:16 pm, fr3nch13 [EMAIL PROTECTED] wrote

Cakephp and MySQL's REGEXP option

2008-01-11 Thread fr3nch13
off hand, does anyone here know if cakephp supports REGEXP inherently without having to explicitly call an sql string? http://dev.mysql.com/doc/refman/5.0/en/regexp.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Session lost using kcaptcha, after upgrading to new 1.2.0.6311

2008-01-10 Thread fr3nch13
This is 99% a whitespace issue IME's. Hint: Find where kcaptcha is writing the image headers header(...) comment them out and try to look at the image... it should be all garbled. Take a look at the source. It the first character is a space, you know that's your problem.

Re: How to run a background process in CakePhp

2007-10-17 Thread fr3nch13
hint - search this group for 'cron jobs' On Oct 17, 1:58 pm, Felix Geisendörfer [EMAIL PROTECTED] wrote: You might want to check out this extension if you you need things like this: http://www.vl-srm.net/doc/ However, you find it easier to have a queue table that is processed by a cron

Re: Rss time to Unix Time?

2007-09-21 Thread fr3nch13
http://api.cakephp.org/1.2/class_rss_helper.html#29f174f1137ce44cc7328f199c2fa231 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: AJAX InPlaceEditor with collection?

2007-09-19 Thread fr3nch13
maybe try this: ?php echo $ajax-editor('edit', '/cars/ajax_update/' . $car['Car'] ['id'], array('update' = 'edit', 'type' = 'synchronous', 'collection' = array('1'='Ferrari', '2'='Lamborghini'))); ? where you define the keys in your collection array. not tested but it may work for you. On Sep

Re: Display data from two related tables on one page

2007-09-18 Thread fr3nch13
http://manual.cakephp.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: 500 Errors

2007-09-17 Thread fr3nch13
You may be running out of the allowed memory for your script. in your php.ini, look for the setting: memory_limit. by default it's set to 8M, try upping it to like 16M, or even 23M not sure if this is your issue, but worth looking at. On Sep 17, 9:45 am, jsgriffin [EMAIL PROTECTED] wrote: Hi

Re: mysql union equivalent?

2007-09-13 Thread fr3nch13
You can use $this-Model-query(); However, it won't return any dependent models with it. http://manual.cakephp.org/chapter/models On Sep 13, 12:03 pm, Mike Green [EMAIL PROTECTED] wrote: Hi folks I want to query two tables at the same time, mysql lets me do this with: SELECT name,age FROM

Re: Admin Implementation.

2007-09-13 Thread fr3nch13
A simple way to do this is to use the admin routing. so /admin/users/index would look like so: ? UsersController extents AppController { function checkAdmin() { admin checking goes here (or put this method in your app_controller.php for other controllers to use, or a

Re: Can I access database or execute some sql inside views ?

2007-08-14 Thread fr3nch13
If you have your models setup correctly: hasAndBelongsToMany if the user can be a part of many groups, or User belongsTo Group | Group hasMany User if they only belong to one. Then in the method your controller: class GroupsController extends AppController { function index() {

Discussion on cake-apps-sites-in-the-wild

2007-05-16 Thread fr3nch13
Another Cake app. http://calculator.boxcart.com/ Calculates a quote for the Boxcart Company. Has an admin for the Client to modify every one of the options and their associations with each other to allow the calculator to evolve with the company.

Re: Update multiple div on one ajax call

2007-05-10 Thread fr3nch13
This should help you http://groups.google.com/group/cake-php/search?group=cake-phpq=multiple+div+ajax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: How to use a model in views?

2007-04-05 Thread fr3nch13
search this group for 'requestAction' or use the ajax helper. On Apr 5, 6:37 am, JuniorCMS [EMAIL PROTECTED] wrote: Hi to all, i need to have a view that use a model or a controller method to load some data like news or other. I'm implementing a simple template system for my cake blog and

Session variables in a model

2007-03-30 Thread fr3nch13
Is there a way to access the session component in a model? I store a user's information in the session [$this-Session- read('User')] and when the user edit's their information, i want it to be able to update the session. I would do it in the controller, but there are 3 different ways to edit a

Re: Ajax Sortable List Confusion

2007-03-30 Thread fr3nch13
You have: ?php echo $ajax-sortable('questions', array('url' ='saveOrder')); ? Shouldn't the url be /controller/action? so like this: ?php echo $ajax-sortable('questions', array('url' ='/faq/ saveorder/')); ? --~--~-~--~~~---~--~~ You received this message

Re: Showcasing www.votigo.com

2007-03-29 Thread fr3nch13
Yeah, awesome site and idea! I signed up. I made a suggestion to 'mike' about having rss feeds of your popular/ new/etc contests. I'm also interested in how you did the FLV video thing. I have a project coming up that may need this. Point us in the right direction would be great!

Re: Admin Routing Techniques

2007-03-26 Thread fr3nch13
Ir Even better just bake it... if you can't bake it then: (i haven't played with 1.2 yet, but unless it was drastically changed from 1.1.x, this is how you i do it:) change: turn on admin routing, then: http://www.domain.com/admin/controller/action class ControllerController extends

Re: View this page Cake Apps/Sites In The Wild

2007-03-23 Thread fr3nch13
This is pretty cool! I tried to export one of the articles ad ms word 2007 xml and it gave me an error saying 'Cannot Open File' On Mar 21, 11:28 pm, bingo [EMAIL PROTECTED] wrote: Hi bakers, I wanted to let all bakers know about my new application. It is an online bibliography management

Re: Problems with hasAndBelongsToMany

2007-03-06 Thread fr3nch13
Im not sure if this thread is relevant anymore, but it may help: http://groups.google.com/group/cake-php/browse_thread/thread/b01e21968ce9a151/1af66e7bae2685df search the group for habtm On Mar 6, 3:49 am, superjean [EMAIL PROTECTED] wrote: Hello all, I have some problems with that kind of

Re: Extending model

2007-03-02 Thread fr3nch13
If your using 1.1.x you can use app_model.php like you would use app_controller.php. I'm sure this has been talked about on this group before. search for app_model --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: multi-page forms

2007-03-02 Thread fr3nch13
not sure, but you could always invofe the $this- requestAction('othercontroller/othermethod/param1'); On Mar 2, 8:48 am, keymaster [EMAIL PROTECTED] wrote: Had another look at the form wizard. Studying the code in more detail helped me understand what can be abstracted out of routine

Re: Troubles with routes

2007-03-01 Thread fr3nch13
check to see if your mod_rewrite is working correctly On Mar 1, 2:39 pm, andy corpes [EMAIL PROTECTED] wrote: Hi Group, It seems that a recent installation of cake has broken some part of my configuration, I've gone through the original installation procedures, but cannot see where i have

Re: What editor do you use for CakePHP?

2007-02-13 Thread fr3nch13
I use dreamweaver 8 with their site settings for editing, etc. I'm stuck on windows cuz i have to test in IE too. blah! BTW, great resource: http://tredosoft.com/Multiple_IE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: What editor do you use for CakePHP?

2007-02-13 Thread fr3nch13
With DW8 and using their sites, all you have to do is hit [control]+ [shift]+u and it will save and upload the file. On Feb 13, 10:56 am, joel [EMAIL PROTECTED] wrote: Just yesterday I learned that about DockSend with Transmit - awesome! And there's even a bundle command for it in TextMate.

Re: is there a function exist($var) somewhere that I didn't find?

2007-02-13 Thread fr3nch13
yeah, isset(); if you wanna use your function in your post, you could rewite it like: function exist($var) { return isset($var); } which again would be the equivalent of just using isset() anyways On Feb 13, 10:42 am, DaddyCool78 [EMAIL PROTECTED] wrote: Hello to all the devs in here! I'm

Re: CakePHP CMS

2007-02-13 Thread fr3nch13
the only one i know of is OceanCMS and it's still in alpha: http://cakeforge.org/projects/ocean-cms/ On Feb 13, 10:11 am, rhet [EMAIL PROTECTED] wrote: Does anyone know of any good CMS for cake? I would like the application to be a plugin.