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' =
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
://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
] =
)
[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
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
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
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
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
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
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.
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
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',
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
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
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
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
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
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
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
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
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
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]
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
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
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:
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
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
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
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?
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
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
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
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
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.
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
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
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
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
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
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
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
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()
{
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.
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
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
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
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
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!
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
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
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
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
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
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
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
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.
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
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.
58 matches
Mail list logo